[2025-04-10 00:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 21:00:06 [end_date_ymd] => 2025-04-10 00:00:06 [RateCDR] => 1 ) [2025-04-10 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-04-09 21:00:06' and `end` < '2025-04-10 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-04-10 00:00:19] Production.INFO: count ==493 [2025-04-10 00:00:19] Production.ERROR: pbx CDR StartTime 2025-04-09 21:00:06 - End Time 2025-04-10 00:00:06 [2025-04-10 00:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873065', 'tblTempUsageDetail_20' ) start [2025-04-10 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873065', 'tblTempUsageDetail_20' ) end [2025-04-10 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873065', 'tblTempVendorCDR_20' ) start [2025-04-10 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873065', 'tblTempVendorCDR_20' ) end [2025-04-10 00:00:19] Production.INFO: ProcessCDR(1,14873065,1,1,2) [2025-04-10 00:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873065', 'tblTempUsageDetail_20' ) start [2025-04-10 00:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873065', 'tblTempUsageDetail_20' ) end [2025-04-10 00:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 00:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 00:00:24] Production.INFO: ==25837== Releasing lock... [2025-04-10 00:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 00:00:24] Production.INFO: 33 MB #Memory Used# [2025-04-10 00:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 21:01:06 [end_date_ymd] => 2025-04-10 00:01:06 [RateCDR] => 1 ) [2025-04-10 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-04-09 21:01:06' and `end` < '2025-04-10 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-04-10 00:01:28] Production.INFO: count ==502 [2025-04-10 00:01:28] Production.ERROR: pbx CDR StartTime 2025-04-09 21:01:06 - End Time 2025-04-10 00:01:06 [2025-04-10 00:01:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 00:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873070', 'tblTempUsageDetail_20' ) start [2025-04-10 00:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873070', 'tblTempUsageDetail_20' ) end [2025-04-10 00:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873070', 'tblTempVendorCDR_20' ) start [2025-04-10 00:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873070', 'tblTempVendorCDR_20' ) end [2025-04-10 00:01:28] Production.INFO: ProcessCDR(1,14873070,1,1,2) [2025-04-10 00:01:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:01:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:01:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:01:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:01:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873070', 'tblTempUsageDetail_20' ) start [2025-04-10 00:01:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873070', 'tblTempUsageDetail_20' ) end [2025-04-10 00:01:34] Production.ERROR: pbx prc_insertCDR start [2025-04-10 00:01:34] Production.ERROR: pbx prc_insertCDR end [2025-04-10 00:01:34] Production.INFO: ==25927== Releasing lock... [2025-04-10 00:01:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 00:01:34] Production.INFO: 31 MB #Memory Used# [2025-04-10 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 21:02:05 [end_date_ymd] => 2025-04-10 00:02:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 21:02:05' and `end` < '2025-04-10 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-04-10 00:02:18] Production.INFO: count ==100 [2025-04-10 00:02:18] Production.ERROR: pbx CDR StartTime 2025-04-09 21:02:05 - End Time 2025-04-10 00:02:05 [2025-04-10 00:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873075', 'tblTempUsageDetail_20' ) start [2025-04-10 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873075', 'tblTempUsageDetail_20' ) end [2025-04-10 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873075', 'tblTempVendorCDR_20' ) start [2025-04-10 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873075', 'tblTempVendorCDR_20' ) end [2025-04-10 00:02:18] Production.INFO: ProcessCDR(1,14873075,1,1,2) [2025-04-10 00:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873075', 'tblTempUsageDetail_20' ) start [2025-04-10 00:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873075', 'tblTempUsageDetail_20' ) end [2025-04-10 00:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 00:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 00:02:22] Production.INFO: ==25997== Releasing lock... [2025-04-10 00:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 00:02:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-10 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 21:03:05 [end_date_ymd] => 2025-04-10 00:03:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 21:03:05' and `end` < '2025-04-10 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-04-10 00:03:18] Production.INFO: count ==106 [2025-04-10 00:03:18] Production.ERROR: pbx CDR StartTime 2025-04-09 21:03:05 - End Time 2025-04-10 00:03:05 [2025-04-10 00:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873080', 'tblTempUsageDetail_20' ) start [2025-04-10 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873080', 'tblTempUsageDetail_20' ) end [2025-04-10 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873080', 'tblTempVendorCDR_20' ) start [2025-04-10 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873080', 'tblTempVendorCDR_20' ) end [2025-04-10 00:03:18] Production.INFO: ProcessCDR(1,14873080,1,1,2) [2025-04-10 00:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873080', 'tblTempUsageDetail_20' ) start [2025-04-10 00:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873080', 'tblTempUsageDetail_20' ) end [2025-04-10 00:03:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 00:03:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 00:03:23] Production.INFO: ==26072== Releasing lock... [2025-04-10 00:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 00:03:23] Production.INFO: 28.75 MB #Memory Used# [2025-04-10 00:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 21:04:06 [end_date_ymd] => 2025-04-10 00:04:06 [RateCDR] => 1 ) [2025-04-10 00:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 21:04:06' and `end` < '2025-04-10 00:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 00:04:19] Production.INFO: count ==111 [2025-04-10 00:04:19] Production.ERROR: pbx CDR StartTime 2025-04-09 21:04:06 - End Time 2025-04-10 00:04:06 [2025-04-10 00:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 00:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873085', 'tblTempUsageDetail_20' ) start [2025-04-10 00:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873085', 'tblTempUsageDetail_20' ) end [2025-04-10 00:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873085', 'tblTempVendorCDR_20' ) start [2025-04-10 00:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873085', 'tblTempVendorCDR_20' ) end [2025-04-10 00:04:19] Production.INFO: ProcessCDR(1,14873085,1,1,2) [2025-04-10 00:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873085', 'tblTempUsageDetail_20' ) start [2025-04-10 00:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873085', 'tblTempUsageDetail_20' ) end [2025-04-10 00:04:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 00:04:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 00:04:24] Production.INFO: ==26145== Releasing lock... [2025-04-10 00:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 00:04:24] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 00:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 21:05:05 [end_date_ymd] => 2025-04-10 00:05:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 21:05:05' and `end` < '2025-04-10 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-04-10 00:05:38] Production.INFO: count ==112 [2025-04-10 00:05:38] Production.ERROR: pbx CDR StartTime 2025-04-09 21:05:05 - End Time 2025-04-10 00:05:05 [2025-04-10 00:05:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 00:05:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873090', 'tblTempUsageDetail_20' ) start [2025-04-10 00:05:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873090', 'tblTempUsageDetail_20' ) end [2025-04-10 00:05:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873090', 'tblTempVendorCDR_20' ) start [2025-04-10 00:05:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873090', 'tblTempVendorCDR_20' ) end [2025-04-10 00:05:38] Production.INFO: ProcessCDR(1,14873090,1,1,2) [2025-04-10 00:05:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:05:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:05:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:05:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:05:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873090', 'tblTempUsageDetail_20' ) start [2025-04-10 00:05:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873090', 'tblTempUsageDetail_20' ) end [2025-04-10 00:05:43] Production.ERROR: pbx prc_insertCDR start [2025-04-10 00:05:43] Production.ERROR: pbx prc_insertCDR end [2025-04-10 00:05:43] Production.INFO: ==26216== Releasing lock... [2025-04-10 00:05:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 00:05:43] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 21:06:05 [end_date_ymd] => 2025-04-10 00:06:05 [RateCDR] => 1 ) [2025-04-10 00:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 21:06:05' and `end` < '2025-04-10 00:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 00:06:29] Production.INFO: count ==113 [2025-04-10 00:06:29] Production.ERROR: pbx CDR StartTime 2025-04-09 21:06:05 - End Time 2025-04-10 00:06:05 [2025-04-10 00:06:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 00:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873095', 'tblTempUsageDetail_20' ) start [2025-04-10 00:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873095', 'tblTempUsageDetail_20' ) end [2025-04-10 00:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873095', 'tblTempVendorCDR_20' ) start [2025-04-10 00:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873095', 'tblTempVendorCDR_20' ) end [2025-04-10 00:06:29] Production.INFO: ProcessCDR(1,14873095,1,1,2) [2025-04-10 00:06:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:06:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:06:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:06:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:06:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873095', 'tblTempUsageDetail_20' ) start [2025-04-10 00:06:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873095', 'tblTempUsageDetail_20' ) end [2025-04-10 00:06:34] Production.ERROR: pbx prc_insertCDR start [2025-04-10 00:06:34] Production.ERROR: pbx prc_insertCDR end [2025-04-10 00:06:34] Production.INFO: ==26288== Releasing lock... [2025-04-10 00:06:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 00:06:34] Production.INFO: 29.5 MB #Memory Used# [2025-04-10 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 21:07:05 [end_date_ymd] => 2025-04-10 00:07:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 21:07:05' and `end` < '2025-04-10 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-04-10 00:07:32] Production.INFO: count ==113 [2025-04-10 00:07:32] Production.ERROR: pbx CDR StartTime 2025-04-09 21:07:05 - End Time 2025-04-10 00:07:05 [2025-04-10 00:07:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 00:07:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873100', 'tblTempUsageDetail_20' ) start [2025-04-10 00:07:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873100', 'tblTempUsageDetail_20' ) end [2025-04-10 00:07:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873100', 'tblTempVendorCDR_20' ) start [2025-04-10 00:07:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873100', 'tblTempVendorCDR_20' ) end [2025-04-10 00:07:32] Production.INFO: ProcessCDR(1,14873100,1,1,2) [2025-04-10 00:07:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:07:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:07:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:07:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:07:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873100', 'tblTempUsageDetail_20' ) start [2025-04-10 00:07:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873100', 'tblTempUsageDetail_20' ) end [2025-04-10 00:07:35] Production.ERROR: pbx prc_insertCDR start [2025-04-10 00:07:35] Production.ERROR: pbx prc_insertCDR end [2025-04-10 00:07:35] Production.INFO: ==26360== Releasing lock... [2025-04-10 00:07:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 00:07:35] Production.INFO: 29.5 MB #Memory Used# [2025-04-10 00:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 21:08:05 [end_date_ymd] => 2025-04-10 00:08:05 [RateCDR] => 1 ) [2025-04-10 00:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 21:08:05' and `end` < '2025-04-10 00:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 00:08:23] Production.INFO: count ==113 [2025-04-10 00:08:23] Production.ERROR: pbx CDR StartTime 2025-04-09 21:08:05 - End Time 2025-04-10 00:08:05 [2025-04-10 00:08:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 00:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873105', 'tblTempUsageDetail_20' ) start [2025-04-10 00:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873105', 'tblTempUsageDetail_20' ) end [2025-04-10 00:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873105', 'tblTempVendorCDR_20' ) start [2025-04-10 00:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873105', 'tblTempVendorCDR_20' ) end [2025-04-10 00:08:23] Production.INFO: ProcessCDR(1,14873105,1,1,2) [2025-04-10 00:08:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873105', 'tblTempUsageDetail_20' ) start [2025-04-10 00:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873105', 'tblTempUsageDetail_20' ) end [2025-04-10 00:08:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 00:08:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 00:08:26] Production.INFO: ==26431== Releasing lock... [2025-04-10 00:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 00:08:26] Production.INFO: 29.5 MB #Memory Used# [2025-04-10 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 21:09:05 [end_date_ymd] => 2025-04-10 00:09:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 21:09:05' and `end` < '2025-04-10 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-04-10 00:09:19] Production.INFO: count ==113 [2025-04-10 00:09:19] Production.ERROR: pbx CDR StartTime 2025-04-09 21:09:05 - End Time 2025-04-10 00:09:05 [2025-04-10 00:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873110', 'tblTempUsageDetail_20' ) start [2025-04-10 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873110', 'tblTempUsageDetail_20' ) end [2025-04-10 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873110', 'tblTempVendorCDR_20' ) start [2025-04-10 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873110', 'tblTempVendorCDR_20' ) end [2025-04-10 00:09:19] Production.INFO: ProcessCDR(1,14873110,1,1,2) [2025-04-10 00:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873110', 'tblTempUsageDetail_20' ) start [2025-04-10 00:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873110', 'tblTempUsageDetail_20' ) end [2025-04-10 00:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 00:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 00:09:22] Production.INFO: ==26502== Releasing lock... [2025-04-10 00:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 00:09:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-10 00:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 21:10:05 [end_date_ymd] => 2025-04-10 00:10:05 [RateCDR] => 1 ) [2025-04-10 00: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-04-09 21:10:05' and `end` < '2025-04-10 00: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-04-10 00:10:18] Production.INFO: count ==121 [2025-04-10 00:10:18] Production.ERROR: pbx CDR StartTime 2025-04-09 21:10:05 - End Time 2025-04-10 00:10:05 [2025-04-10 00:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873115', 'tblTempUsageDetail_20' ) start [2025-04-10 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873115', 'tblTempUsageDetail_20' ) end [2025-04-10 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873115', 'tblTempVendorCDR_20' ) start [2025-04-10 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873115', 'tblTempVendorCDR_20' ) end [2025-04-10 00:10:18] Production.INFO: ProcessCDR(1,14873115,1,1,2) [2025-04-10 00:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873115', 'tblTempUsageDetail_20' ) start [2025-04-10 00:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873115', 'tblTempUsageDetail_20' ) end [2025-04-10 00:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 00:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 00:10:22] Production.INFO: ==26575== Releasing lock... [2025-04-10 00:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 00:10:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-10 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 21:11:05 [end_date_ymd] => 2025-04-10 00:11:05 [RateCDR] => 1 ) [2025-04-10 00:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 21:11:05' and `end` < '2025-04-10 00:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 00:11:18] Production.INFO: count ==133 [2025-04-10 00:11:18] Production.ERROR: pbx CDR StartTime 2025-04-09 21:11:05 - End Time 2025-04-10 00:11:05 [2025-04-10 00:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873121', 'tblTempUsageDetail_20' ) start [2025-04-10 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873121', 'tblTempUsageDetail_20' ) end [2025-04-10 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873121', 'tblTempVendorCDR_20' ) start [2025-04-10 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873121', 'tblTempVendorCDR_20' ) end [2025-04-10 00:11:18] Production.INFO: ProcessCDR(1,14873121,1,1,2) [2025-04-10 00:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873121', 'tblTempUsageDetail_20' ) start [2025-04-10 00:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873121', 'tblTempUsageDetail_20' ) end [2025-04-10 00:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 00:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 00:11:22] Production.INFO: ==26688== Releasing lock... [2025-04-10 00:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 00:11:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 00:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 21:12:05 [end_date_ymd] => 2025-04-10 00:12:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 21:12:05' and `end` < '2025-04-10 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-04-10 00:12:18] Production.INFO: count ==134 [2025-04-10 00:12:18] Production.ERROR: pbx CDR StartTime 2025-04-09 21:12:05 - End Time 2025-04-10 00:12:05 [2025-04-10 00:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873126', 'tblTempUsageDetail_20' ) start [2025-04-10 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873126', 'tblTempUsageDetail_20' ) end [2025-04-10 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873126', 'tblTempVendorCDR_20' ) start [2025-04-10 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873126', 'tblTempVendorCDR_20' ) end [2025-04-10 00:12:18] Production.INFO: ProcessCDR(1,14873126,1,1,2) [2025-04-10 00:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873126', 'tblTempUsageDetail_20' ) start [2025-04-10 00:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873126', 'tblTempUsageDetail_20' ) end [2025-04-10 00:12:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 00:12:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 00:12:24] Production.INFO: ==26759== Releasing lock... [2025-04-10 00:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 00:12:24] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 00:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 21:13:06 [end_date_ymd] => 2025-04-10 00:13:06 [RateCDR] => 1 ) [2025-04-10 00: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-04-09 21:13:06' and `end` < '2025-04-10 00: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-04-10 00:13:18] Production.INFO: count ==134 [2025-04-10 00:13:18] Production.ERROR: pbx CDR StartTime 2025-04-09 21:13:06 - End Time 2025-04-10 00:13:06 [2025-04-10 00:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873131', 'tblTempUsageDetail_20' ) start [2025-04-10 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873131', 'tblTempUsageDetail_20' ) end [2025-04-10 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873131', 'tblTempVendorCDR_20' ) start [2025-04-10 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873131', 'tblTempVendorCDR_20' ) end [2025-04-10 00:13:19] Production.INFO: ProcessCDR(1,14873131,1,1,2) [2025-04-10 00:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873131', 'tblTempUsageDetail_20' ) start [2025-04-10 00:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873131', 'tblTempUsageDetail_20' ) end [2025-04-10 00:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 00:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 00:13:22] Production.INFO: ==26828== Releasing lock... [2025-04-10 00:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 00:13:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 21:14:05 [end_date_ymd] => 2025-04-10 00:14:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 21:14:05' and `end` < '2025-04-10 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-04-10 00:14:18] Production.INFO: count ==134 [2025-04-10 00:14:18] Production.ERROR: pbx CDR StartTime 2025-04-09 21:14:05 - End Time 2025-04-10 00:14:05 [2025-04-10 00:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873136', 'tblTempUsageDetail_20' ) start [2025-04-10 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873136', 'tblTempUsageDetail_20' ) end [2025-04-10 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873136', 'tblTempVendorCDR_20' ) start [2025-04-10 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873136', 'tblTempVendorCDR_20' ) end [2025-04-10 00:14:18] Production.INFO: ProcessCDR(1,14873136,1,1,2) [2025-04-10 00:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873136', 'tblTempUsageDetail_20' ) start [2025-04-10 00:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873136', 'tblTempUsageDetail_20' ) end [2025-04-10 00:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 00:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 00:14:21] Production.INFO: ==26902== Releasing lock... [2025-04-10 00:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 00:14:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 21:15:05 [end_date_ymd] => 2025-04-10 00:15:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 21:15:05' and `end` < '2025-04-10 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-04-10 00:15:18] Production.INFO: count ==134 [2025-04-10 00:15:18] Production.ERROR: pbx CDR StartTime 2025-04-09 21:15:05 - End Time 2025-04-10 00:15:05 [2025-04-10 00:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873141', 'tblTempUsageDetail_20' ) start [2025-04-10 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873141', 'tblTempUsageDetail_20' ) end [2025-04-10 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873141', 'tblTempVendorCDR_20' ) start [2025-04-10 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873141', 'tblTempVendorCDR_20' ) end [2025-04-10 00:15:18] Production.INFO: ProcessCDR(1,14873141,1,1,2) [2025-04-10 00:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873141', 'tblTempUsageDetail_20' ) start [2025-04-10 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873141', 'tblTempUsageDetail_20' ) end [2025-04-10 00:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 00:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 00:15:21] Production.INFO: ==26974== Releasing lock... [2025-04-10 00:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 00:15:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 21:16:05 [end_date_ymd] => 2025-04-10 00:16:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 21:16:05' and `end` < '2025-04-10 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-04-10 00:16:18] Production.INFO: count ==132 [2025-04-10 00:16:18] Production.ERROR: pbx CDR StartTime 2025-04-09 21:16:05 - End Time 2025-04-10 00:16:05 [2025-04-10 00:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873146', 'tblTempUsageDetail_20' ) start [2025-04-10 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873146', 'tblTempUsageDetail_20' ) end [2025-04-10 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873146', 'tblTempVendorCDR_20' ) start [2025-04-10 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873146', 'tblTempVendorCDR_20' ) end [2025-04-10 00:16:18] Production.INFO: ProcessCDR(1,14873146,1,1,2) [2025-04-10 00:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873146', 'tblTempUsageDetail_20' ) start [2025-04-10 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873146', 'tblTempUsageDetail_20' ) end [2025-04-10 00:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 00:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 00:16:21] Production.INFO: ==27044== Releasing lock... [2025-04-10 00:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 00:16:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 00:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 21:17:06 [end_date_ymd] => 2025-04-10 00:17:06 [RateCDR] => 1 ) [2025-04-10 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-04-09 21:17:06' and `end` < '2025-04-10 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-04-10 00:17:19] Production.INFO: count ==131 [2025-04-10 00:17:19] Production.ERROR: pbx CDR StartTime 2025-04-09 21:17:06 - End Time 2025-04-10 00:17:06 [2025-04-10 00:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 00:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873151', 'tblTempUsageDetail_20' ) start [2025-04-10 00:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873151', 'tblTempUsageDetail_20' ) end [2025-04-10 00:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873151', 'tblTempVendorCDR_20' ) start [2025-04-10 00:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873151', 'tblTempVendorCDR_20' ) end [2025-04-10 00:17:19] Production.INFO: ProcessCDR(1,14873151,1,1,2) [2025-04-10 00:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873151', 'tblTempUsageDetail_20' ) start [2025-04-10 00:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873151', 'tblTempUsageDetail_20' ) end [2025-04-10 00:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 00:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 00:17:22] Production.INFO: ==27115== Releasing lock... [2025-04-10 00:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 00:17:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-10 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 21:18:05 [end_date_ymd] => 2025-04-10 00:18:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 21:18:05' and `end` < '2025-04-10 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-04-10 00:18:18] Production.INFO: count ==131 [2025-04-10 00:18:18] Production.ERROR: pbx CDR StartTime 2025-04-09 21:18:05 - End Time 2025-04-10 00:18:05 [2025-04-10 00:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873156', 'tblTempUsageDetail_20' ) start [2025-04-10 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873156', 'tblTempUsageDetail_20' ) end [2025-04-10 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873156', 'tblTempVendorCDR_20' ) start [2025-04-10 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873156', 'tblTempVendorCDR_20' ) end [2025-04-10 00:18:18] Production.INFO: ProcessCDR(1,14873156,1,1,2) [2025-04-10 00:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873156', 'tblTempUsageDetail_20' ) start [2025-04-10 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873156', 'tblTempUsageDetail_20' ) end [2025-04-10 00:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 00:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 00:18:21] Production.INFO: ==27187== Releasing lock... [2025-04-10 00:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 00:18:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-10 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 21:19:05 [end_date_ymd] => 2025-04-10 00:19:05 [RateCDR] => 1 ) [2025-04-10 00:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 21:19:05' and `end` < '2025-04-10 00:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 00:19:18] Production.INFO: count ==131 [2025-04-10 00:19:18] Production.ERROR: pbx CDR StartTime 2025-04-09 21:19:05 - End Time 2025-04-10 00:19:05 [2025-04-10 00:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873161', 'tblTempUsageDetail_20' ) start [2025-04-10 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873161', 'tblTempUsageDetail_20' ) end [2025-04-10 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873161', 'tblTempVendorCDR_20' ) start [2025-04-10 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873161', 'tblTempVendorCDR_20' ) end [2025-04-10 00:19:18] Production.INFO: ProcessCDR(1,14873161,1,1,2) [2025-04-10 00:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873161', 'tblTempUsageDetail_20' ) start [2025-04-10 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873161', 'tblTempUsageDetail_20' ) end [2025-04-10 00:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 00:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 00:19:21] Production.INFO: ==27258== Releasing lock... [2025-04-10 00:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 00:19:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-10 00:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 21:20:05 [end_date_ymd] => 2025-04-10 00:20:05 [RateCDR] => 1 ) [2025-04-10 00:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 21:20:05' and `end` < '2025-04-10 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-04-10 00:20:18] Production.INFO: count ==130 [2025-04-10 00:20:18] Production.ERROR: pbx CDR StartTime 2025-04-09 21:20:05 - End Time 2025-04-10 00:20:05 [2025-04-10 00:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873166', 'tblTempUsageDetail_20' ) start [2025-04-10 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873166', 'tblTempUsageDetail_20' ) end [2025-04-10 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873166', 'tblTempVendorCDR_20' ) start [2025-04-10 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873166', 'tblTempVendorCDR_20' ) end [2025-04-10 00:20:18] Production.INFO: ProcessCDR(1,14873166,1,1,2) [2025-04-10 00:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873166', 'tblTempUsageDetail_20' ) start [2025-04-10 00:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873166', 'tblTempUsageDetail_20' ) end [2025-04-10 00:20:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 00:20:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 00:20:21] Production.INFO: ==27329== Releasing lock... [2025-04-10 00:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 00:20:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-10 00:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 21:21:05 [end_date_ymd] => 2025-04-10 00:21:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 21:21:05' and `end` < '2025-04-10 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-04-10 00:21:18] Production.INFO: count ==130 [2025-04-10 00:21:18] Production.ERROR: pbx CDR StartTime 2025-04-09 21:21:05 - End Time 2025-04-10 00:21:05 [2025-04-10 00:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873172', 'tblTempUsageDetail_20' ) start [2025-04-10 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873172', 'tblTempUsageDetail_20' ) end [2025-04-10 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873172', 'tblTempVendorCDR_20' ) start [2025-04-10 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873172', 'tblTempVendorCDR_20' ) end [2025-04-10 00:21:18] Production.INFO: ProcessCDR(1,14873172,1,1,2) [2025-04-10 00:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873172', 'tblTempUsageDetail_20' ) start [2025-04-10 00:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873172', 'tblTempUsageDetail_20' ) end [2025-04-10 00:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 00:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 00:21:22] Production.INFO: ==27403== Releasing lock... [2025-04-10 00:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 00:21:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-10 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 21:22:05 [end_date_ymd] => 2025-04-10 00:22:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 21:22:05' and `end` < '2025-04-10 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-04-10 00:22:17] Production.INFO: count ==131 [2025-04-10 00:22:17] Production.ERROR: pbx CDR StartTime 2025-04-09 21:22:05 - End Time 2025-04-10 00:22:05 [2025-04-10 00:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873177', 'tblTempUsageDetail_20' ) start [2025-04-10 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873177', 'tblTempUsageDetail_20' ) end [2025-04-10 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873177', 'tblTempVendorCDR_20' ) start [2025-04-10 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873177', 'tblTempVendorCDR_20' ) end [2025-04-10 00:22:17] Production.INFO: ProcessCDR(1,14873177,1,1,2) [2025-04-10 00:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873177', 'tblTempUsageDetail_20' ) start [2025-04-10 00:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873177', 'tblTempUsageDetail_20' ) end [2025-04-10 00:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 00:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 00:22:23] Production.INFO: ==27474== Releasing lock... [2025-04-10 00:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 00:22:23] Production.INFO: 29.5 MB #Memory Used# [2025-04-10 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 21:23:05 [end_date_ymd] => 2025-04-10 00:23:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 21:23:05' and `end` < '2025-04-10 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-04-10 00:23:18] Production.INFO: count ==130 [2025-04-10 00:23:18] Production.ERROR: pbx CDR StartTime 2025-04-09 21:23:05 - End Time 2025-04-10 00:23:05 [2025-04-10 00:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873182', 'tblTempUsageDetail_20' ) start [2025-04-10 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873182', 'tblTempUsageDetail_20' ) end [2025-04-10 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873182', 'tblTempVendorCDR_20' ) start [2025-04-10 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873182', 'tblTempVendorCDR_20' ) end [2025-04-10 00:23:18] Production.INFO: ProcessCDR(1,14873182,1,1,2) [2025-04-10 00:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873182', 'tblTempUsageDetail_20' ) start [2025-04-10 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873182', 'tblTempUsageDetail_20' ) end [2025-04-10 00:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 00:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 00:23:21] Production.INFO: ==27544== Releasing lock... [2025-04-10 00:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 00:23:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-10 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 21:24:05 [end_date_ymd] => 2025-04-10 00:24:05 [RateCDR] => 1 ) [2025-04-10 00:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 21:24:05' and `end` < '2025-04-10 00:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 00:24:17] Production.INFO: count ==130 [2025-04-10 00:24:17] Production.ERROR: pbx CDR StartTime 2025-04-09 21:24:05 - End Time 2025-04-10 00:24:05 [2025-04-10 00:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873187', 'tblTempUsageDetail_20' ) start [2025-04-10 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873187', 'tblTempUsageDetail_20' ) end [2025-04-10 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873187', 'tblTempVendorCDR_20' ) start [2025-04-10 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873187', 'tblTempVendorCDR_20' ) end [2025-04-10 00:24:17] Production.INFO: ProcessCDR(1,14873187,1,1,2) [2025-04-10 00:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873187', 'tblTempUsageDetail_20' ) start [2025-04-10 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873187', 'tblTempUsageDetail_20' ) end [2025-04-10 00:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 00:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 00:24:21] Production.INFO: ==27614== Releasing lock... [2025-04-10 00:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 00:24:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-10 00:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 21:25:06 [end_date_ymd] => 2025-04-10 00:25:06 [RateCDR] => 1 ) [2025-04-10 00:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 21:25:06' and `end` < '2025-04-10 00:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 00:25:19] Production.INFO: count ==127 [2025-04-10 00:25:19] Production.ERROR: pbx CDR StartTime 2025-04-09 21:25:06 - End Time 2025-04-10 00:25:06 [2025-04-10 00:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873192', 'tblTempUsageDetail_20' ) start [2025-04-10 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873192', 'tblTempUsageDetail_20' ) end [2025-04-10 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873192', 'tblTempVendorCDR_20' ) start [2025-04-10 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873192', 'tblTempVendorCDR_20' ) end [2025-04-10 00:25:19] Production.INFO: ProcessCDR(1,14873192,1,1,2) [2025-04-10 00:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873192', 'tblTempUsageDetail_20' ) start [2025-04-10 00:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873192', 'tblTempUsageDetail_20' ) end [2025-04-10 00:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 00:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 00:25:22] Production.INFO: ==27685== Releasing lock... [2025-04-10 00:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 00:25:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-10 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 21:26:05 [end_date_ymd] => 2025-04-10 00:26:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 21:26:05' and `end` < '2025-04-10 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-04-10 00:26:18] Production.INFO: count ==126 [2025-04-10 00:26:18] Production.ERROR: pbx CDR StartTime 2025-04-09 21:26:05 - End Time 2025-04-10 00:26:05 [2025-04-10 00:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873197', 'tblTempUsageDetail_20' ) start [2025-04-10 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873197', 'tblTempUsageDetail_20' ) end [2025-04-10 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873197', 'tblTempVendorCDR_20' ) start [2025-04-10 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873197', 'tblTempVendorCDR_20' ) end [2025-04-10 00:26:18] Production.INFO: ProcessCDR(1,14873197,1,1,2) [2025-04-10 00:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873197', 'tblTempUsageDetail_20' ) start [2025-04-10 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873197', 'tblTempUsageDetail_20' ) end [2025-04-10 00:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 00:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 00:26:21] Production.INFO: ==27797== Releasing lock... [2025-04-10 00:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 00:26:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 21:27:05 [end_date_ymd] => 2025-04-10 00:27:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 21:27:05' and `end` < '2025-04-10 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-04-10 00:27:18] Production.INFO: count ==126 [2025-04-10 00:27:18] Production.ERROR: pbx CDR StartTime 2025-04-09 21:27:05 - End Time 2025-04-10 00:27:05 [2025-04-10 00:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873202', 'tblTempUsageDetail_20' ) start [2025-04-10 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873202', 'tblTempUsageDetail_20' ) end [2025-04-10 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873202', 'tblTempVendorCDR_20' ) start [2025-04-10 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873202', 'tblTempVendorCDR_20' ) end [2025-04-10 00:27:18] Production.INFO: ProcessCDR(1,14873202,1,1,2) [2025-04-10 00:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873202', 'tblTempUsageDetail_20' ) start [2025-04-10 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873202', 'tblTempUsageDetail_20' ) end [2025-04-10 00:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 00:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 00:27:21] Production.INFO: ==27877== Releasing lock... [2025-04-10 00:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 00:27:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 00:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 21:28:06 [end_date_ymd] => 2025-04-10 00:28:06 [RateCDR] => 1 ) [2025-04-10 00:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 21:28:06' and `end` < '2025-04-10 00:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 00:28:19] Production.INFO: count ==123 [2025-04-10 00:28:19] Production.ERROR: pbx CDR StartTime 2025-04-09 21:28:06 - End Time 2025-04-10 00:28:06 [2025-04-10 00:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 00:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873207', 'tblTempUsageDetail_20' ) start [2025-04-10 00:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873207', 'tblTempUsageDetail_20' ) end [2025-04-10 00:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873207', 'tblTempVendorCDR_20' ) start [2025-04-10 00:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873207', 'tblTempVendorCDR_20' ) end [2025-04-10 00:28:19] Production.INFO: ProcessCDR(1,14873207,1,1,2) [2025-04-10 00:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873207', 'tblTempUsageDetail_20' ) start [2025-04-10 00:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873207', 'tblTempUsageDetail_20' ) end [2025-04-10 00:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 00:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 00:28:22] Production.INFO: ==27949== Releasing lock... [2025-04-10 00:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 00:28:22] Production.INFO: 29 MB #Memory Used# [2025-04-10 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 21:29:05 [end_date_ymd] => 2025-04-10 00:29:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 21:29:05' and `end` < '2025-04-10 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-04-10 00:29:17] Production.INFO: count ==123 [2025-04-10 00:29:18] Production.ERROR: pbx CDR StartTime 2025-04-09 21:29:05 - End Time 2025-04-10 00:29:05 [2025-04-10 00:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873212', 'tblTempUsageDetail_20' ) start [2025-04-10 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873212', 'tblTempUsageDetail_20' ) end [2025-04-10 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873212', 'tblTempVendorCDR_20' ) start [2025-04-10 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873212', 'tblTempVendorCDR_20' ) end [2025-04-10 00:29:18] Production.INFO: ProcessCDR(1,14873212,1,1,2) [2025-04-10 00:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873212', 'tblTempUsageDetail_20' ) start [2025-04-10 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873212', 'tblTempUsageDetail_20' ) end [2025-04-10 00:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 00:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 00:29:21] Production.INFO: ==28018== Releasing lock... [2025-04-10 00:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 00:29:21] Production.INFO: 29 MB #Memory Used# [2025-04-10 00:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 21:30:06 [end_date_ymd] => 2025-04-10 00:30:06 [RateCDR] => 1 ) [2025-04-10 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-04-09 21:30:06' and `end` < '2025-04-10 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-04-10 00:30:19] Production.INFO: count ==130 [2025-04-10 00:30:19] Production.ERROR: pbx CDR StartTime 2025-04-09 21:30:06 - End Time 2025-04-10 00:30:06 [2025-04-10 00:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873218', 'tblTempUsageDetail_20' ) start [2025-04-10 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873218', 'tblTempUsageDetail_20' ) end [2025-04-10 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873218', 'tblTempVendorCDR_20' ) start [2025-04-10 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873218', 'tblTempVendorCDR_20' ) end [2025-04-10 00:30:19] Production.INFO: ProcessCDR(1,14873218,1,1,2) [2025-04-10 00:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873218', 'tblTempUsageDetail_20' ) start [2025-04-10 00:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873218', 'tblTempUsageDetail_20' ) end [2025-04-10 00:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 00:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 00:30:23] Production.INFO: ==28089== Releasing lock... [2025-04-10 00:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 00:30:23] Production.INFO: 29.5 MB #Memory Used# [2025-04-10 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 21:31:05 [end_date_ymd] => 2025-04-10 00:31:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 21:31:05' and `end` < '2025-04-10 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-04-10 00:31:18] Production.INFO: count ==139 [2025-04-10 00:31:18] Production.ERROR: pbx CDR StartTime 2025-04-09 21:31:05 - End Time 2025-04-10 00:31:05 [2025-04-10 00:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873223', 'tblTempUsageDetail_20' ) start [2025-04-10 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873223', 'tblTempUsageDetail_20' ) end [2025-04-10 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873223', 'tblTempVendorCDR_20' ) start [2025-04-10 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873223', 'tblTempVendorCDR_20' ) end [2025-04-10 00:31:18] Production.INFO: ProcessCDR(1,14873223,1,1,2) [2025-04-10 00:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873223', 'tblTempUsageDetail_20' ) start [2025-04-10 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873223', 'tblTempUsageDetail_20' ) end [2025-04-10 00:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 00:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 00:31:21] Production.INFO: ==28162== Releasing lock... [2025-04-10 00:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 00:31:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-10 00:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 21:32:06 [end_date_ymd] => 2025-04-10 00:32:06 [RateCDR] => 1 ) [2025-04-10 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-04-09 21:32:06' and `end` < '2025-04-10 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-04-10 00:32:18] Production.INFO: count ==136 [2025-04-10 00:32:18] Production.ERROR: pbx CDR StartTime 2025-04-09 21:32:06 - End Time 2025-04-10 00:32:06 [2025-04-10 00:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873228', 'tblTempUsageDetail_20' ) start [2025-04-10 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873228', 'tblTempUsageDetail_20' ) end [2025-04-10 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873228', 'tblTempVendorCDR_20' ) start [2025-04-10 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873228', 'tblTempVendorCDR_20' ) end [2025-04-10 00:32:18] Production.INFO: ProcessCDR(1,14873228,1,1,2) [2025-04-10 00:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873228', 'tblTempUsageDetail_20' ) start [2025-04-10 00:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873228', 'tblTempUsageDetail_20' ) end [2025-04-10 00:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 00:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 00:32:22] Production.INFO: ==28237== Releasing lock... [2025-04-10 00:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 00:32:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 21:33:05 [end_date_ymd] => 2025-04-10 00:33:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 21:33:05' and `end` < '2025-04-10 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-04-10 00:33:17] Production.INFO: count ==134 [2025-04-10 00:33:17] Production.ERROR: pbx CDR StartTime 2025-04-09 21:33:05 - End Time 2025-04-10 00:33:05 [2025-04-10 00:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873233', 'tblTempUsageDetail_20' ) start [2025-04-10 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873233', 'tblTempUsageDetail_20' ) end [2025-04-10 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873233', 'tblTempVendorCDR_20' ) start [2025-04-10 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873233', 'tblTempVendorCDR_20' ) end [2025-04-10 00:33:17] Production.INFO: ProcessCDR(1,14873233,1,1,2) [2025-04-10 00:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873233', 'tblTempUsageDetail_20' ) start [2025-04-10 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873233', 'tblTempUsageDetail_20' ) end [2025-04-10 00:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 00:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 00:33:21] Production.INFO: ==28316== Releasing lock... [2025-04-10 00:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 00:33:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 21:34:05 [end_date_ymd] => 2025-04-10 00:34:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 21:34:05' and `end` < '2025-04-10 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-04-10 00:34:18] Production.INFO: count ==132 [2025-04-10 00:34:18] Production.ERROR: pbx CDR StartTime 2025-04-09 21:34:05 - End Time 2025-04-10 00:34:05 [2025-04-10 00:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873238', 'tblTempUsageDetail_20' ) start [2025-04-10 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873238', 'tblTempUsageDetail_20' ) end [2025-04-10 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873238', 'tblTempVendorCDR_20' ) start [2025-04-10 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873238', 'tblTempVendorCDR_20' ) end [2025-04-10 00:34:18] Production.INFO: ProcessCDR(1,14873238,1,1,2) [2025-04-10 00:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873238', 'tblTempUsageDetail_20' ) start [2025-04-10 00:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873238', 'tblTempUsageDetail_20' ) end [2025-04-10 00:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 00:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 00:34:22] Production.INFO: ==28397== Releasing lock... [2025-04-10 00:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 00:34:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 21:35:05 [end_date_ymd] => 2025-04-10 00:35:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 21:35:05' and `end` < '2025-04-10 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-04-10 00:35:18] Production.INFO: count ==132 [2025-04-10 00:35:18] Production.ERROR: pbx CDR StartTime 2025-04-09 21:35:05 - End Time 2025-04-10 00:35:05 [2025-04-10 00:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873243', 'tblTempUsageDetail_20' ) start [2025-04-10 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873243', 'tblTempUsageDetail_20' ) end [2025-04-10 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873243', 'tblTempVendorCDR_20' ) start [2025-04-10 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873243', 'tblTempVendorCDR_20' ) end [2025-04-10 00:35:18] Production.INFO: ProcessCDR(1,14873243,1,1,2) [2025-04-10 00:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873243', 'tblTempUsageDetail_20' ) start [2025-04-10 00:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873243', 'tblTempUsageDetail_20' ) end [2025-04-10 00:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 00:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 00:35:21] Production.INFO: ==28472== Releasing lock... [2025-04-10 00:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 00:35:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 21:36:05 [end_date_ymd] => 2025-04-10 00:36:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 21:36:05' and `end` < '2025-04-10 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-04-10 00:36:18] Production.INFO: count ==132 [2025-04-10 00:36:18] Production.ERROR: pbx CDR StartTime 2025-04-09 21:36:05 - End Time 2025-04-10 00:36:05 [2025-04-10 00:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873248', 'tblTempUsageDetail_20' ) start [2025-04-10 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873248', 'tblTempUsageDetail_20' ) end [2025-04-10 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873248', 'tblTempVendorCDR_20' ) start [2025-04-10 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873248', 'tblTempVendorCDR_20' ) end [2025-04-10 00:36:18] Production.INFO: ProcessCDR(1,14873248,1,1,2) [2025-04-10 00:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873248', 'tblTempUsageDetail_20' ) start [2025-04-10 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873248', 'tblTempUsageDetail_20' ) end [2025-04-10 00:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 00:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 00:36:21] Production.INFO: ==28554== Releasing lock... [2025-04-10 00:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 00:36:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 21:37:05 [end_date_ymd] => 2025-04-10 00:37:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 21:37:05' and `end` < '2025-04-10 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-04-10 00:37:18] Production.INFO: count ==132 [2025-04-10 00:37:18] Production.ERROR: pbx CDR StartTime 2025-04-09 21:37:05 - End Time 2025-04-10 00:37:05 [2025-04-10 00:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873253', 'tblTempUsageDetail_20' ) start [2025-04-10 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873253', 'tblTempUsageDetail_20' ) end [2025-04-10 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873253', 'tblTempVendorCDR_20' ) start [2025-04-10 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873253', 'tblTempVendorCDR_20' ) end [2025-04-10 00:37:18] Production.INFO: ProcessCDR(1,14873253,1,1,2) [2025-04-10 00:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873253', 'tblTempUsageDetail_20' ) start [2025-04-10 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873253', 'tblTempUsageDetail_20' ) end [2025-04-10 00:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 00:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 00:37:21] Production.INFO: ==28633== Releasing lock... [2025-04-10 00:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 00:37:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 21:38:05 [end_date_ymd] => 2025-04-10 00:38:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 21:38:05' and `end` < '2025-04-10 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-04-10 00:38:18] Production.INFO: count ==132 [2025-04-10 00:38:18] Production.ERROR: pbx CDR StartTime 2025-04-09 21:38:05 - End Time 2025-04-10 00:38:05 [2025-04-10 00:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873258', 'tblTempUsageDetail_20' ) start [2025-04-10 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873258', 'tblTempUsageDetail_20' ) end [2025-04-10 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873258', 'tblTempVendorCDR_20' ) start [2025-04-10 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873258', 'tblTempVendorCDR_20' ) end [2025-04-10 00:38:18] Production.INFO: ProcessCDR(1,14873258,1,1,2) [2025-04-10 00:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873258', 'tblTempUsageDetail_20' ) start [2025-04-10 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873258', 'tblTempUsageDetail_20' ) end [2025-04-10 00:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 00:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 00:38:21] Production.INFO: ==28704== Releasing lock... [2025-04-10 00:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 00:38:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 21:39:05 [end_date_ymd] => 2025-04-10 00:39:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 21:39:05' and `end` < '2025-04-10 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-04-10 00:39:18] Production.INFO: count ==132 [2025-04-10 00:39:18] Production.ERROR: pbx CDR StartTime 2025-04-09 21:39:05 - End Time 2025-04-10 00:39:05 [2025-04-10 00:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873263', 'tblTempUsageDetail_20' ) start [2025-04-10 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873263', 'tblTempUsageDetail_20' ) end [2025-04-10 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873263', 'tblTempVendorCDR_20' ) start [2025-04-10 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873263', 'tblTempVendorCDR_20' ) end [2025-04-10 00:39:18] Production.INFO: ProcessCDR(1,14873263,1,1,2) [2025-04-10 00:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873263', 'tblTempUsageDetail_20' ) start [2025-04-10 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873263', 'tblTempUsageDetail_20' ) end [2025-04-10 00:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 00:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 00:39:21] Production.INFO: ==28776== Releasing lock... [2025-04-10 00:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 00:39:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 00:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 21:40:06 [end_date_ymd] => 2025-04-10 00:40:06 [RateCDR] => 1 ) [2025-04-10 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-04-09 21:40:06' and `end` < '2025-04-10 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-04-10 00:40:18] Production.INFO: count ==147 [2025-04-10 00:40:18] Production.ERROR: pbx CDR StartTime 2025-04-09 21:40:06 - End Time 2025-04-10 00:40:06 [2025-04-10 00:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873268', 'tblTempUsageDetail_20' ) start [2025-04-10 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873268', 'tblTempUsageDetail_20' ) end [2025-04-10 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873268', 'tblTempVendorCDR_20' ) start [2025-04-10 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873268', 'tblTempVendorCDR_20' ) end [2025-04-10 00:40:18] Production.INFO: ProcessCDR(1,14873268,1,1,2) [2025-04-10 00:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873268', 'tblTempUsageDetail_20' ) start [2025-04-10 00:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873268', 'tblTempUsageDetail_20' ) end [2025-04-10 00:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 00:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 00:40:23] Production.INFO: ==28855== Releasing lock... [2025-04-10 00:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 00:40:23] Production.INFO: 29.5 MB #Memory Used# [2025-04-10 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 21:41:05 [end_date_ymd] => 2025-04-10 00:41:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 21:41:05' and `end` < '2025-04-10 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-04-10 00:41:18] Production.INFO: count ==169 [2025-04-10 00:41:18] Production.ERROR: pbx CDR StartTime 2025-04-09 21:41:05 - End Time 2025-04-10 00:41:05 [2025-04-10 00:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873274', 'tblTempUsageDetail_20' ) start [2025-04-10 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873274', 'tblTempUsageDetail_20' ) end [2025-04-10 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873274', 'tblTempVendorCDR_20' ) start [2025-04-10 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873274', 'tblTempVendorCDR_20' ) end [2025-04-10 00:41:18] Production.INFO: ProcessCDR(1,14873274,1,1,2) [2025-04-10 00:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873274', 'tblTempUsageDetail_20' ) start [2025-04-10 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873274', 'tblTempUsageDetail_20' ) end [2025-04-10 00:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 00:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 00:41:21] Production.INFO: ==28936== Releasing lock... [2025-04-10 00:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 00:41:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 21:42:05 [end_date_ymd] => 2025-04-10 00:42:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 21:42:05' and `end` < '2025-04-10 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-04-10 00:42:18] Production.INFO: count ==168 [2025-04-10 00:42:18] Production.ERROR: pbx CDR StartTime 2025-04-09 21:42:05 - End Time 2025-04-10 00:42:05 [2025-04-10 00:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873279', 'tblTempUsageDetail_20' ) start [2025-04-10 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873279', 'tblTempUsageDetail_20' ) end [2025-04-10 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873279', 'tblTempVendorCDR_20' ) start [2025-04-10 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873279', 'tblTempVendorCDR_20' ) end [2025-04-10 00:42:18] Production.INFO: ProcessCDR(1,14873279,1,1,2) [2025-04-10 00:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873279', 'tblTempUsageDetail_20' ) start [2025-04-10 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873279', 'tblTempUsageDetail_20' ) end [2025-04-10 00:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 00:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 00:42:21] Production.INFO: ==29047== Releasing lock... [2025-04-10 00:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 00:42:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 00:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 21:43:05 [end_date_ymd] => 2025-04-10 00:43:05 [RateCDR] => 1 ) [2025-04-10 00:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 21:43:05' and `end` < '2025-04-10 00:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 00:43:17] Production.INFO: count ==166 [2025-04-10 00:43:17] Production.ERROR: pbx CDR StartTime 2025-04-09 21:43:05 - End Time 2025-04-10 00:43:05 [2025-04-10 00:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873284', 'tblTempUsageDetail_20' ) start [2025-04-10 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873284', 'tblTempUsageDetail_20' ) end [2025-04-10 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873284', 'tblTempVendorCDR_20' ) start [2025-04-10 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873284', 'tblTempVendorCDR_20' ) end [2025-04-10 00:43:17] Production.INFO: ProcessCDR(1,14873284,1,1,2) [2025-04-10 00:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873284', 'tblTempUsageDetail_20' ) start [2025-04-10 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873284', 'tblTempUsageDetail_20' ) end [2025-04-10 00:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 00:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 00:43:21] Production.INFO: ==29118== Releasing lock... [2025-04-10 00:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 00:43:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-10 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 21:44:05 [end_date_ymd] => 2025-04-10 00:44:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 21:44:05' and `end` < '2025-04-10 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-04-10 00:44:18] Production.INFO: count ==166 [2025-04-10 00:44:18] Production.ERROR: pbx CDR StartTime 2025-04-09 21:44:05 - End Time 2025-04-10 00:44:05 [2025-04-10 00:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873289', 'tblTempUsageDetail_20' ) start [2025-04-10 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873289', 'tblTempUsageDetail_20' ) end [2025-04-10 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873289', 'tblTempVendorCDR_20' ) start [2025-04-10 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873289', 'tblTempVendorCDR_20' ) end [2025-04-10 00:44:18] Production.INFO: ProcessCDR(1,14873289,1,1,2) [2025-04-10 00:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873289', 'tblTempUsageDetail_20' ) start [2025-04-10 00:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873289', 'tblTempUsageDetail_20' ) end [2025-04-10 00:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 00:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 00:44:22] Production.INFO: ==29190== Releasing lock... [2025-04-10 00:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 00:44:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-10 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 21:45:05 [end_date_ymd] => 2025-04-10 00:45:05 [RateCDR] => 1 ) [2025-04-10 00:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 21:45:05' and `end` < '2025-04-10 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-04-10 00:45:18] Production.INFO: count ==166 [2025-04-10 00:45:18] Production.ERROR: pbx CDR StartTime 2025-04-09 21:45:05 - End Time 2025-04-10 00:45:05 [2025-04-10 00:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873294', 'tblTempUsageDetail_20' ) start [2025-04-10 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873294', 'tblTempUsageDetail_20' ) end [2025-04-10 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873294', 'tblTempVendorCDR_20' ) start [2025-04-10 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873294', 'tblTempVendorCDR_20' ) end [2025-04-10 00:45:18] Production.INFO: ProcessCDR(1,14873294,1,1,2) [2025-04-10 00:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873294', 'tblTempUsageDetail_20' ) start [2025-04-10 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873294', 'tblTempUsageDetail_20' ) end [2025-04-10 00:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 00:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 00:45:21] Production.INFO: ==29259== Releasing lock... [2025-04-10 00:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 00:45:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-10 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 21:46:05 [end_date_ymd] => 2025-04-10 00:46:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 21:46:05' and `end` < '2025-04-10 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-04-10 00:46:18] Production.INFO: count ==166 [2025-04-10 00:46:18] Production.ERROR: pbx CDR StartTime 2025-04-09 21:46:05 - End Time 2025-04-10 00:46:05 [2025-04-10 00:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873299', 'tblTempUsageDetail_20' ) start [2025-04-10 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873299', 'tblTempUsageDetail_20' ) end [2025-04-10 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873299', 'tblTempVendorCDR_20' ) start [2025-04-10 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873299', 'tblTempVendorCDR_20' ) end [2025-04-10 00:46:18] Production.INFO: ProcessCDR(1,14873299,1,1,2) [2025-04-10 00:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873299', 'tblTempUsageDetail_20' ) start [2025-04-10 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873299', 'tblTempUsageDetail_20' ) end [2025-04-10 00:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 00:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 00:46:21] Production.INFO: ==29331== Releasing lock... [2025-04-10 00:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 00:46:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-10 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 21:47:05 [end_date_ymd] => 2025-04-10 00:47:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 21:47:05' and `end` < '2025-04-10 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-04-10 00:47:18] Production.INFO: count ==168 [2025-04-10 00:47:18] Production.ERROR: pbx CDR StartTime 2025-04-09 21:47:05 - End Time 2025-04-10 00:47:05 [2025-04-10 00:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873304', 'tblTempUsageDetail_20' ) start [2025-04-10 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873304', 'tblTempUsageDetail_20' ) end [2025-04-10 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873304', 'tblTempVendorCDR_20' ) start [2025-04-10 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873304', 'tblTempVendorCDR_20' ) end [2025-04-10 00:47:18] Production.INFO: ProcessCDR(1,14873304,1,1,2) [2025-04-10 00:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873304', 'tblTempUsageDetail_20' ) start [2025-04-10 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873304', 'tblTempUsageDetail_20' ) end [2025-04-10 00:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 00:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 00:47:21] Production.INFO: ==29403== Releasing lock... [2025-04-10 00:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 00:47:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-10 00:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 21:48:06 [end_date_ymd] => 2025-04-10 00:48:06 [RateCDR] => 1 ) [2025-04-10 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-04-09 21:48:06' and `end` < '2025-04-10 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-04-10 00:48:19] Production.INFO: count ==168 [2025-04-10 00:48:19] Production.ERROR: pbx CDR StartTime 2025-04-09 21:48:06 - End Time 2025-04-10 00:48:06 [2025-04-10 00:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 00:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873309', 'tblTempUsageDetail_20' ) start [2025-04-10 00:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873309', 'tblTempUsageDetail_20' ) end [2025-04-10 00:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873309', 'tblTempVendorCDR_20' ) start [2025-04-10 00:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873309', 'tblTempVendorCDR_20' ) end [2025-04-10 00:48:19] Production.INFO: ProcessCDR(1,14873309,1,1,2) [2025-04-10 00:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873309', 'tblTempUsageDetail_20' ) start [2025-04-10 00:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873309', 'tblTempUsageDetail_20' ) end [2025-04-10 00:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 00:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 00:48:22] Production.INFO: ==29473== Releasing lock... [2025-04-10 00:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 00:48:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-10 00:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 21:49:04 [end_date_ymd] => 2025-04-10 00:49:04 [RateCDR] => 1 ) [2025-04-10 00: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-04-09 21:49:04' and `end` < '2025-04-10 00: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-04-10 00:49:17] Production.INFO: count ==168 [2025-04-10 00:49:17] Production.ERROR: pbx CDR StartTime 2025-04-09 21:49:04 - End Time 2025-04-10 00:49:04 [2025-04-10 00:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873312', 'tblTempUsageDetail_20' ) start [2025-04-10 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873312', 'tblTempUsageDetail_20' ) end [2025-04-10 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873312', 'tblTempVendorCDR_20' ) start [2025-04-10 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873312', 'tblTempVendorCDR_20' ) end [2025-04-10 00:49:17] Production.INFO: ProcessCDR(1,14873312,1,1,2) [2025-04-10 00:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873312', 'tblTempUsageDetail_20' ) start [2025-04-10 00:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873312', 'tblTempUsageDetail_20' ) end [2025-04-10 00:49:20] Production.ERROR: pbx prc_insertCDR start [2025-04-10 00:49:20] Production.ERROR: pbx prc_insertCDR end [2025-04-10 00:49:20] Production.INFO: ==29543== Releasing lock... [2025-04-10 00:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 00:49:20] Production.INFO: 29.5 MB #Memory Used# [2025-04-10 00:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 21:50:06 [end_date_ymd] => 2025-04-10 00:50:06 [RateCDR] => 1 ) [2025-04-10 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-04-09 21:50:06' and `end` < '2025-04-10 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-04-10 00:50:19] Production.INFO: count ==163 [2025-04-10 00:50:19] Production.ERROR: pbx CDR StartTime 2025-04-09 21:50:06 - End Time 2025-04-10 00:50:06 [2025-04-10 00:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873320', 'tblTempUsageDetail_20' ) start [2025-04-10 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873320', 'tblTempUsageDetail_20' ) end [2025-04-10 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873320', 'tblTempVendorCDR_20' ) start [2025-04-10 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873320', 'tblTempVendorCDR_20' ) end [2025-04-10 00:50:19] Production.INFO: ProcessCDR(1,14873320,1,1,2) [2025-04-10 00:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873320', 'tblTempUsageDetail_20' ) start [2025-04-10 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873320', 'tblTempUsageDetail_20' ) end [2025-04-10 00:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 00:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 00:50:23] Production.INFO: ==29618== Releasing lock... [2025-04-10 00:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 00:50:23] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 00:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 21:51:05 [end_date_ymd] => 2025-04-10 00:51:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 21:51:05' and `end` < '2025-04-10 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-04-10 00:51:18] Production.INFO: count ==161 [2025-04-10 00:51:18] Production.ERROR: pbx CDR StartTime 2025-04-09 21:51:05 - End Time 2025-04-10 00:51:05 [2025-04-10 00:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873325', 'tblTempUsageDetail_20' ) start [2025-04-10 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873325', 'tblTempUsageDetail_20' ) end [2025-04-10 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873325', 'tblTempVendorCDR_20' ) start [2025-04-10 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873325', 'tblTempVendorCDR_20' ) end [2025-04-10 00:51:18] Production.INFO: ProcessCDR(1,14873325,1,1,2) [2025-04-10 00:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873325', 'tblTempUsageDetail_20' ) start [2025-04-10 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873325', 'tblTempUsageDetail_20' ) end [2025-04-10 00:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 00:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 00:51:21] Production.INFO: ==29691== Releasing lock... [2025-04-10 00:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 00:51:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 21:52:05 [end_date_ymd] => 2025-04-10 00:52:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 21:52:05' and `end` < '2025-04-10 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-04-10 00:52:18] Production.INFO: count ==155 [2025-04-10 00:52:18] Production.ERROR: pbx CDR StartTime 2025-04-09 21:52:05 - End Time 2025-04-10 00:52:05 [2025-04-10 00:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873330', 'tblTempUsageDetail_20' ) start [2025-04-10 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873330', 'tblTempUsageDetail_20' ) end [2025-04-10 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873330', 'tblTempVendorCDR_20' ) start [2025-04-10 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873330', 'tblTempVendorCDR_20' ) end [2025-04-10 00:52:18] Production.INFO: ProcessCDR(1,14873330,1,1,2) [2025-04-10 00:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873330', 'tblTempUsageDetail_20' ) start [2025-04-10 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873330', 'tblTempUsageDetail_20' ) end [2025-04-10 00:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 00:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 00:52:21] Production.INFO: ==29762== Releasing lock... [2025-04-10 00:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 00:52:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 21:53:05 [end_date_ymd] => 2025-04-10 00:53:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 21:53:05' and `end` < '2025-04-10 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-04-10 00:53:18] Production.INFO: count ==155 [2025-04-10 00:53:18] Production.ERROR: pbx CDR StartTime 2025-04-09 21:53:05 - End Time 2025-04-10 00:53:05 [2025-04-10 00:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873335', 'tblTempUsageDetail_20' ) start [2025-04-10 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873335', 'tblTempUsageDetail_20' ) end [2025-04-10 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873335', 'tblTempVendorCDR_20' ) start [2025-04-10 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873335', 'tblTempVendorCDR_20' ) end [2025-04-10 00:53:18] Production.INFO: ProcessCDR(1,14873335,1,1,2) [2025-04-10 00:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873335', 'tblTempUsageDetail_20' ) start [2025-04-10 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873335', 'tblTempUsageDetail_20' ) end [2025-04-10 00:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 00:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 00:53:21] Production.INFO: ==29832== Releasing lock... [2025-04-10 00:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 00:53:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 21:54:05 [end_date_ymd] => 2025-04-10 00:54:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 21:54:05' and `end` < '2025-04-10 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-04-10 00:54:18] Production.INFO: count ==155 [2025-04-10 00:54:18] Production.ERROR: pbx CDR StartTime 2025-04-09 21:54:05 - End Time 2025-04-10 00:54:05 [2025-04-10 00:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873340', 'tblTempUsageDetail_20' ) start [2025-04-10 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873340', 'tblTempUsageDetail_20' ) end [2025-04-10 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873340', 'tblTempVendorCDR_20' ) start [2025-04-10 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873340', 'tblTempVendorCDR_20' ) end [2025-04-10 00:54:18] Production.INFO: ProcessCDR(1,14873340,1,1,2) [2025-04-10 00:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873340', 'tblTempUsageDetail_20' ) start [2025-04-10 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873340', 'tblTempUsageDetail_20' ) end [2025-04-10 00:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 00:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 00:54:21] Production.INFO: ==29931== Releasing lock... [2025-04-10 00:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 00:54:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 00:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 21:55:04 [end_date_ymd] => 2025-04-10 00:55:04 [RateCDR] => 1 ) [2025-04-10 00:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 21:55:04' and `end` < '2025-04-10 00:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 00:55:17] Production.INFO: count ==155 [2025-04-10 00:55:17] Production.ERROR: pbx CDR StartTime 2025-04-09 21:55:04 - End Time 2025-04-10 00:55:04 [2025-04-10 00:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873345', 'tblTempUsageDetail_20' ) start [2025-04-10 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873345', 'tblTempUsageDetail_20' ) end [2025-04-10 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873345', 'tblTempVendorCDR_20' ) start [2025-04-10 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873345', 'tblTempVendorCDR_20' ) end [2025-04-10 00:55:17] Production.INFO: ProcessCDR(1,14873345,1,1,2) [2025-04-10 00:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873345', 'tblTempUsageDetail_20' ) start [2025-04-10 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873345', 'tblTempUsageDetail_20' ) end [2025-04-10 00:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 00:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 00:55:21] Production.INFO: ==30010== Releasing lock... [2025-04-10 00:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 00:55:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 21:56:05 [end_date_ymd] => 2025-04-10 00:56:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 21:56:05' and `end` < '2025-04-10 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-04-10 00:56:18] Production.INFO: count ==154 [2025-04-10 00:56:18] Production.ERROR: pbx CDR StartTime 2025-04-09 21:56:05 - End Time 2025-04-10 00:56:05 [2025-04-10 00:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873350', 'tblTempUsageDetail_20' ) start [2025-04-10 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873350', 'tblTempUsageDetail_20' ) end [2025-04-10 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873350', 'tblTempVendorCDR_20' ) start [2025-04-10 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873350', 'tblTempVendorCDR_20' ) end [2025-04-10 00:56:18] Production.INFO: ProcessCDR(1,14873350,1,1,2) [2025-04-10 00:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873350', 'tblTempUsageDetail_20' ) start [2025-04-10 00:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873350', 'tblTempUsageDetail_20' ) end [2025-04-10 00:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 00:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 00:56:22] Production.INFO: ==30081== Releasing lock... [2025-04-10 00:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 00:56:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 00:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 21:57:04 [end_date_ymd] => 2025-04-10 00:57:04 [RateCDR] => 1 ) [2025-04-10 00: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-04-09 21:57:04' and `end` < '2025-04-10 00: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-04-10 00:57:17] Production.INFO: count ==153 [2025-04-10 00:57:17] Production.ERROR: pbx CDR StartTime 2025-04-09 21:57:04 - End Time 2025-04-10 00:57:04 [2025-04-10 00:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873355', 'tblTempUsageDetail_20' ) start [2025-04-10 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873355', 'tblTempUsageDetail_20' ) end [2025-04-10 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873355', 'tblTempVendorCDR_20' ) start [2025-04-10 00:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873355', 'tblTempVendorCDR_20' ) end [2025-04-10 00:57:17] Production.INFO: ProcessCDR(1,14873355,1,1,2) [2025-04-10 00:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873355', 'tblTempUsageDetail_20' ) start [2025-04-10 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873355', 'tblTempUsageDetail_20' ) end [2025-04-10 00:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 00:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 00:57:22] Production.INFO: ==30194== Releasing lock... [2025-04-10 00:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 00:57:22] Production.INFO: 29 MB #Memory Used# [2025-04-10 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 21:58:05 [end_date_ymd] => 2025-04-10 00:58:05 [RateCDR] => 1 ) [2025-04-10 00:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 21:58:05' and `end` < '2025-04-10 00:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 00:58:18] Production.INFO: count ==152 [2025-04-10 00:58:18] Production.ERROR: pbx CDR StartTime 2025-04-09 21:58:05 - End Time 2025-04-10 00:58:05 [2025-04-10 00:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873360', 'tblTempUsageDetail_20' ) start [2025-04-10 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873360', 'tblTempUsageDetail_20' ) end [2025-04-10 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873360', 'tblTempVendorCDR_20' ) start [2025-04-10 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873360', 'tblTempVendorCDR_20' ) end [2025-04-10 00:58:18] Production.INFO: ProcessCDR(1,14873360,1,1,2) [2025-04-10 00:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873360', 'tblTempUsageDetail_20' ) start [2025-04-10 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873360', 'tblTempUsageDetail_20' ) end [2025-04-10 00:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 00:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 00:58:21] Production.INFO: ==30264== Releasing lock... [2025-04-10 00:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 00:58:21] Production.INFO: 29 MB #Memory Used# [2025-04-10 00:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 21:59:06 [end_date_ymd] => 2025-04-10 00:59:06 [RateCDR] => 1 ) [2025-04-10 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-04-09 21:59:06' and `end` < '2025-04-10 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-04-10 00:59:19] Production.INFO: count ==151 [2025-04-10 00:59:19] Production.ERROR: pbx CDR StartTime 2025-04-09 21:59:06 - End Time 2025-04-10 00:59:06 [2025-04-10 00:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 00:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873365', 'tblTempUsageDetail_20' ) start [2025-04-10 00:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873365', 'tblTempUsageDetail_20' ) end [2025-04-10 00:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873365', 'tblTempVendorCDR_20' ) start [2025-04-10 00:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873365', 'tblTempVendorCDR_20' ) end [2025-04-10 00:59:19] Production.INFO: ProcessCDR(1,14873365,1,1,2) [2025-04-10 00:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 00:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 00:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873365', 'tblTempUsageDetail_20' ) start [2025-04-10 00:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873365', 'tblTempUsageDetail_20' ) end [2025-04-10 00:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 00:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 00:59:22] Production.INFO: ==30337== Releasing lock... [2025-04-10 00:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 00:59:22] Production.INFO: 29 MB #Memory Used# [2025-04-10 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 22:00:06 [end_date_ymd] => 2025-04-10 01:00:06 [RateCDR] => 1 ) [2025-04-10 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-04-09 22:00:06' and `end` < '2025-04-10 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-04-10 01:00:19] Production.INFO: count ==167 [2025-04-10 01:00:19] Production.ERROR: pbx CDR StartTime 2025-04-09 22:00:06 - End Time 2025-04-10 01:00:06 [2025-04-10 01:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873371', 'tblTempUsageDetail_20' ) start [2025-04-10 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873371', 'tblTempUsageDetail_20' ) end [2025-04-10 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873371', 'tblTempVendorCDR_20' ) start [2025-04-10 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873371', 'tblTempVendorCDR_20' ) end [2025-04-10 01:00:19] Production.INFO: ProcessCDR(1,14873371,1,1,2) [2025-04-10 01:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873371', 'tblTempUsageDetail_20' ) start [2025-04-10 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873371', 'tblTempUsageDetail_20' ) end [2025-04-10 01:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 01:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 01:00:22] Production.INFO: ==30410== Releasing lock... [2025-04-10 01:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 01:00:22] Production.INFO: 29 MB #Memory Used# [2025-04-10 01:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 22:01:06 [end_date_ymd] => 2025-04-10 01:01:06 [RateCDR] => 1 ) [2025-04-10 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-04-09 22:01:06' and `end` < '2025-04-10 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-04-10 01:01:18] Production.INFO: count ==169 [2025-04-10 01:01:19] Production.ERROR: pbx CDR StartTime 2025-04-09 22:01:06 - End Time 2025-04-10 01:01:06 [2025-04-10 01:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873376', 'tblTempUsageDetail_20' ) start [2025-04-10 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873376', 'tblTempUsageDetail_20' ) end [2025-04-10 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873376', 'tblTempVendorCDR_20' ) start [2025-04-10 01:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873376', 'tblTempVendorCDR_20' ) end [2025-04-10 01:01:19] Production.INFO: ProcessCDR(1,14873376,1,1,2) [2025-04-10 01:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873376', 'tblTempUsageDetail_20' ) start [2025-04-10 01:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873376', 'tblTempUsageDetail_20' ) end [2025-04-10 01:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 01:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 01:01:22] Production.INFO: ==30497== Releasing lock... [2025-04-10 01:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 01:01:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 01:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 22:02:06 [end_date_ymd] => 2025-04-10 01:02:06 [RateCDR] => 1 ) [2025-04-10 01:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 22:02:06' and `end` < '2025-04-10 01:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 01:02:19] Production.INFO: count ==169 [2025-04-10 01:02:19] Production.ERROR: pbx CDR StartTime 2025-04-09 22:02:06 - End Time 2025-04-10 01:02:06 [2025-04-10 01:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873381', 'tblTempUsageDetail_20' ) start [2025-04-10 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873381', 'tblTempUsageDetail_20' ) end [2025-04-10 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873381', 'tblTempVendorCDR_20' ) start [2025-04-10 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873381', 'tblTempVendorCDR_20' ) end [2025-04-10 01:02:19] Production.INFO: ProcessCDR(1,14873381,1,1,2) [2025-04-10 01:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873381', 'tblTempUsageDetail_20' ) start [2025-04-10 01:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873381', 'tblTempUsageDetail_20' ) end [2025-04-10 01:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 01:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 01:02:22] Production.INFO: ==30568== Releasing lock... [2025-04-10 01:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 01:02:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 22:03:05 [end_date_ymd] => 2025-04-10 01:03:05 [RateCDR] => 1 ) [2025-04-10 01:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 22:03:05' and `end` < '2025-04-10 01:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 01:03:18] Production.INFO: count ==169 [2025-04-10 01:03:18] Production.ERROR: pbx CDR StartTime 2025-04-09 22:03:05 - End Time 2025-04-10 01:03:05 [2025-04-10 01:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873386', 'tblTempUsageDetail_20' ) start [2025-04-10 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873386', 'tblTempUsageDetail_20' ) end [2025-04-10 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873386', 'tblTempVendorCDR_20' ) start [2025-04-10 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873386', 'tblTempVendorCDR_20' ) end [2025-04-10 01:03:18] Production.INFO: ProcessCDR(1,14873386,1,1,2) [2025-04-10 01:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873386', 'tblTempUsageDetail_20' ) start [2025-04-10 01:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873386', 'tblTempUsageDetail_20' ) end [2025-04-10 01:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 01:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 01:03:22] Production.INFO: ==30637== Releasing lock... [2025-04-10 01:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 01:03:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 22:04:05 [end_date_ymd] => 2025-04-10 01:04:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 22:04:05' and `end` < '2025-04-10 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-04-10 01:04:18] Production.INFO: count ==169 [2025-04-10 01:04:18] Production.ERROR: pbx CDR StartTime 2025-04-09 22:04:05 - End Time 2025-04-10 01:04:05 [2025-04-10 01:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873391', 'tblTempUsageDetail_20' ) start [2025-04-10 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873391', 'tblTempUsageDetail_20' ) end [2025-04-10 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873391', 'tblTempVendorCDR_20' ) start [2025-04-10 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873391', 'tblTempVendorCDR_20' ) end [2025-04-10 01:04:18] Production.INFO: ProcessCDR(1,14873391,1,1,2) [2025-04-10 01:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873391', 'tblTempUsageDetail_20' ) start [2025-04-10 01:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873391', 'tblTempUsageDetail_20' ) end [2025-04-10 01:04:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 01:04:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 01:04:23] Production.INFO: ==30707== Releasing lock... [2025-04-10 01:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 01:04:23] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 22:05:05 [end_date_ymd] => 2025-04-10 01:05:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 22:05:05' and `end` < '2025-04-10 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-04-10 01:05:17] Production.INFO: count ==168 [2025-04-10 01:05:17] Production.ERROR: pbx CDR StartTime 2025-04-09 22:05:05 - End Time 2025-04-10 01:05:05 [2025-04-10 01:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873396', 'tblTempUsageDetail_20' ) start [2025-04-10 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873396', 'tblTempUsageDetail_20' ) end [2025-04-10 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873396', 'tblTempVendorCDR_20' ) start [2025-04-10 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873396', 'tblTempVendorCDR_20' ) end [2025-04-10 01:05:17] Production.INFO: ProcessCDR(1,14873396,1,1,2) [2025-04-10 01:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873396', 'tblTempUsageDetail_20' ) start [2025-04-10 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873396', 'tblTempUsageDetail_20' ) end [2025-04-10 01:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 01:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 01:05:21] Production.INFO: ==30776== Releasing lock... [2025-04-10 01:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 01:05:21] Production.INFO: 29 MB #Memory Used# [2025-04-10 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 22:06:05 [end_date_ymd] => 2025-04-10 01:06:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 22:06:05' and `end` < '2025-04-10 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-04-10 01:06:18] Production.INFO: count ==168 [2025-04-10 01:06:18] Production.ERROR: pbx CDR StartTime 2025-04-09 22:06:05 - End Time 2025-04-10 01:06:05 [2025-04-10 01:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873401', 'tblTempUsageDetail_20' ) start [2025-04-10 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873401', 'tblTempUsageDetail_20' ) end [2025-04-10 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873401', 'tblTempVendorCDR_20' ) start [2025-04-10 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873401', 'tblTempVendorCDR_20' ) end [2025-04-10 01:06:18] Production.INFO: ProcessCDR(1,14873401,1,1,2) [2025-04-10 01:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873401', 'tblTempUsageDetail_20' ) start [2025-04-10 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873401', 'tblTempUsageDetail_20' ) end [2025-04-10 01:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 01:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 01:06:21] Production.INFO: ==30847== Releasing lock... [2025-04-10 01:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 01:06:21] Production.INFO: 29 MB #Memory Used# [2025-04-10 01:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 22:07:04 [end_date_ymd] => 2025-04-10 01:07:04 [RateCDR] => 1 ) [2025-04-10 01:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 22:07:04' and `end` < '2025-04-10 01:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 01:07:17] Production.INFO: count ==166 [2025-04-10 01:07:17] Production.ERROR: pbx CDR StartTime 2025-04-09 22:07:04 - End Time 2025-04-10 01:07:04 [2025-04-10 01:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873406', 'tblTempUsageDetail_20' ) start [2025-04-10 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873406', 'tblTempUsageDetail_20' ) end [2025-04-10 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873406', 'tblTempVendorCDR_20' ) start [2025-04-10 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873406', 'tblTempVendorCDR_20' ) end [2025-04-10 01:07:17] Production.INFO: ProcessCDR(1,14873406,1,1,2) [2025-04-10 01:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873406', 'tblTempUsageDetail_20' ) start [2025-04-10 01:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873406', 'tblTempUsageDetail_20' ) end [2025-04-10 01:07:20] Production.ERROR: pbx prc_insertCDR start [2025-04-10 01:07:20] Production.ERROR: pbx prc_insertCDR end [2025-04-10 01:07:20] Production.INFO: ==30920== Releasing lock... [2025-04-10 01:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 01:07:20] Production.INFO: 29 MB #Memory Used# [2025-04-10 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 22:08:05 [end_date_ymd] => 2025-04-10 01:08:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 22:08:05' and `end` < '2025-04-10 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-04-10 01:08:18] Production.INFO: count ==165 [2025-04-10 01:08:18] Production.ERROR: pbx CDR StartTime 2025-04-09 22:08:05 - End Time 2025-04-10 01:08:05 [2025-04-10 01:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873411', 'tblTempUsageDetail_20' ) start [2025-04-10 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873411', 'tblTempUsageDetail_20' ) end [2025-04-10 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873411', 'tblTempVendorCDR_20' ) start [2025-04-10 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873411', 'tblTempVendorCDR_20' ) end [2025-04-10 01:08:18] Production.INFO: ProcessCDR(1,14873411,1,1,2) [2025-04-10 01:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873411', 'tblTempUsageDetail_20' ) start [2025-04-10 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873411', 'tblTempUsageDetail_20' ) end [2025-04-10 01:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 01:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 01:08:21] Production.INFO: ==30998== Releasing lock... [2025-04-10 01:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 01:08:21] Production.INFO: 29 MB #Memory Used# [2025-04-10 01:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 22:09:05 [end_date_ymd] => 2025-04-10 01:09:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 22:09:05' and `end` < '2025-04-10 01:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 01:09:18] Production.INFO: count ==163 [2025-04-10 01:09:18] Production.ERROR: pbx CDR StartTime 2025-04-09 22:09:05 - End Time 2025-04-10 01:09:05 [2025-04-10 01:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873416', 'tblTempUsageDetail_20' ) start [2025-04-10 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873416', 'tblTempUsageDetail_20' ) end [2025-04-10 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873416', 'tblTempVendorCDR_20' ) start [2025-04-10 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873416', 'tblTempVendorCDR_20' ) end [2025-04-10 01:09:18] Production.INFO: ProcessCDR(1,14873416,1,1,2) [2025-04-10 01:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873416', 'tblTempUsageDetail_20' ) start [2025-04-10 01:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873416', 'tblTempUsageDetail_20' ) end [2025-04-10 01:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 01:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 01:09:22] Production.INFO: ==31071== Releasing lock... [2025-04-10 01:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 01:09:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 01:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 22:10:06 [end_date_ymd] => 2025-04-10 01:10:06 [RateCDR] => 1 ) [2025-04-10 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-04-09 22:10:06' and `end` < '2025-04-10 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-04-10 01:10:19] Production.INFO: count ==171 [2025-04-10 01:10:19] Production.ERROR: pbx CDR StartTime 2025-04-09 22:10:06 - End Time 2025-04-10 01:10:06 [2025-04-10 01:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873422', 'tblTempUsageDetail_20' ) start [2025-04-10 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873422', 'tblTempUsageDetail_20' ) end [2025-04-10 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873422', 'tblTempVendorCDR_20' ) start [2025-04-10 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873422', 'tblTempVendorCDR_20' ) end [2025-04-10 01:10:19] Production.INFO: ProcessCDR(1,14873422,1,1,2) [2025-04-10 01:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873422', 'tblTempUsageDetail_20' ) start [2025-04-10 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873422', 'tblTempUsageDetail_20' ) end [2025-04-10 01:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 01:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 01:10:22] Production.INFO: ==31143== Releasing lock... [2025-04-10 01:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 01:10:22] Production.INFO: 29 MB #Memory Used# [2025-04-10 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 22:11:05 [end_date_ymd] => 2025-04-10 01:11:05 [RateCDR] => 1 ) [2025-04-10 01:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 22:11:05' and `end` < '2025-04-10 01:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 01:11:18] Production.INFO: count ==171 [2025-04-10 01:11:18] Production.ERROR: pbx CDR StartTime 2025-04-09 22:11:05 - End Time 2025-04-10 01:11:05 [2025-04-10 01:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873427', 'tblTempUsageDetail_20' ) start [2025-04-10 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873427', 'tblTempUsageDetail_20' ) end [2025-04-10 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873427', 'tblTempVendorCDR_20' ) start [2025-04-10 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873427', 'tblTempVendorCDR_20' ) end [2025-04-10 01:11:18] Production.INFO: ProcessCDR(1,14873427,1,1,2) [2025-04-10 01:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873427', 'tblTempUsageDetail_20' ) start [2025-04-10 01:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873427', 'tblTempUsageDetail_20' ) end [2025-04-10 01:11:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 01:11:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 01:11:23] Production.INFO: ==31216== Releasing lock... [2025-04-10 01:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 01:11:23] Production.INFO: 29 MB #Memory Used# [2025-04-10 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 22:12:05 [end_date_ymd] => 2025-04-10 01:12:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 22:12:05' and `end` < '2025-04-10 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-04-10 01:12:18] Production.INFO: count ==169 [2025-04-10 01:12:18] Production.ERROR: pbx CDR StartTime 2025-04-09 22:12:05 - End Time 2025-04-10 01:12:05 [2025-04-10 01:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873432', 'tblTempUsageDetail_20' ) start [2025-04-10 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873432', 'tblTempUsageDetail_20' ) end [2025-04-10 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873432', 'tblTempVendorCDR_20' ) start [2025-04-10 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873432', 'tblTempVendorCDR_20' ) end [2025-04-10 01:12:18] Production.INFO: ProcessCDR(1,14873432,1,1,2) [2025-04-10 01:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873432', 'tblTempUsageDetail_20' ) start [2025-04-10 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873432', 'tblTempUsageDetail_20' ) end [2025-04-10 01:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 01:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 01:12:21] Production.INFO: ==31289== Releasing lock... [2025-04-10 01:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 01:12:21] Production.INFO: 29 MB #Memory Used# [2025-04-10 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 22:13:05 [end_date_ymd] => 2025-04-10 01:13:05 [RateCDR] => 1 ) [2025-04-10 01:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 22:13:05' and `end` < '2025-04-10 01:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 01:13:18] Production.INFO: count ==167 [2025-04-10 01:13:18] Production.ERROR: pbx CDR StartTime 2025-04-09 22:13:05 - End Time 2025-04-10 01:13:05 [2025-04-10 01:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873437', 'tblTempUsageDetail_20' ) start [2025-04-10 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873437', 'tblTempUsageDetail_20' ) end [2025-04-10 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873437', 'tblTempVendorCDR_20' ) start [2025-04-10 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873437', 'tblTempVendorCDR_20' ) end [2025-04-10 01:13:18] Production.INFO: ProcessCDR(1,14873437,1,1,2) [2025-04-10 01:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873437', 'tblTempUsageDetail_20' ) start [2025-04-10 01:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873437', 'tblTempUsageDetail_20' ) end [2025-04-10 01:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 01:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 01:13:22] Production.INFO: ==31401== Releasing lock... [2025-04-10 01:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 01:13:22] Production.INFO: 29 MB #Memory Used# [2025-04-10 01:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 22:14:04 [end_date_ymd] => 2025-04-10 01:14:04 [RateCDR] => 1 ) [2025-04-10 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-04-09 22:14:04' and `end` < '2025-04-10 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-04-10 01:14:17] Production.INFO: count ==167 [2025-04-10 01:14:17] Production.ERROR: pbx CDR StartTime 2025-04-09 22:14:04 - End Time 2025-04-10 01:14:04 [2025-04-10 01:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873442', 'tblTempUsageDetail_20' ) start [2025-04-10 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873442', 'tblTempUsageDetail_20' ) end [2025-04-10 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873442', 'tblTempVendorCDR_20' ) start [2025-04-10 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873442', 'tblTempVendorCDR_20' ) end [2025-04-10 01:14:17] Production.INFO: ProcessCDR(1,14873442,1,1,2) [2025-04-10 01:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873442', 'tblTempUsageDetail_20' ) start [2025-04-10 01:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873442', 'tblTempUsageDetail_20' ) end [2025-04-10 01:14:20] Production.ERROR: pbx prc_insertCDR start [2025-04-10 01:14:20] Production.ERROR: pbx prc_insertCDR end [2025-04-10 01:14:20] Production.INFO: ==31470== Releasing lock... [2025-04-10 01:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 01:14:20] Production.INFO: 29 MB #Memory Used# [2025-04-10 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 22:15:05 [end_date_ymd] => 2025-04-10 01:15:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 22:15:05' and `end` < '2025-04-10 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-04-10 01:15:18] Production.INFO: count ==167 [2025-04-10 01:15:18] Production.ERROR: pbx CDR StartTime 2025-04-09 22:15:05 - End Time 2025-04-10 01:15:05 [2025-04-10 01:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873447', 'tblTempUsageDetail_20' ) start [2025-04-10 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873447', 'tblTempUsageDetail_20' ) end [2025-04-10 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873447', 'tblTempVendorCDR_20' ) start [2025-04-10 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873447', 'tblTempVendorCDR_20' ) end [2025-04-10 01:15:18] Production.INFO: ProcessCDR(1,14873447,1,1,2) [2025-04-10 01:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873447', 'tblTempUsageDetail_20' ) start [2025-04-10 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873447', 'tblTempUsageDetail_20' ) end [2025-04-10 01:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 01:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 01:15:21] Production.INFO: ==31540== Releasing lock... [2025-04-10 01:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 01:15:21] Production.INFO: 29 MB #Memory Used# [2025-04-10 01:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 22:16:04 [end_date_ymd] => 2025-04-10 01:16:04 [RateCDR] => 1 ) [2025-04-10 01:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 22:16:04' and `end` < '2025-04-10 01:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 01:16:17] Production.INFO: count ==167 [2025-04-10 01:16:17] Production.ERROR: pbx CDR StartTime 2025-04-09 22:16:04 - End Time 2025-04-10 01:16:04 [2025-04-10 01:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873452', 'tblTempUsageDetail_20' ) start [2025-04-10 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873452', 'tblTempUsageDetail_20' ) end [2025-04-10 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873452', 'tblTempVendorCDR_20' ) start [2025-04-10 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873452', 'tblTempVendorCDR_20' ) end [2025-04-10 01:16:17] Production.INFO: ProcessCDR(1,14873452,1,1,2) [2025-04-10 01:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873452', 'tblTempUsageDetail_20' ) start [2025-04-10 01:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873452', 'tblTempUsageDetail_20' ) end [2025-04-10 01:16:20] Production.ERROR: pbx prc_insertCDR start [2025-04-10 01:16:20] Production.ERROR: pbx prc_insertCDR end [2025-04-10 01:16:20] Production.INFO: ==31613== Releasing lock... [2025-04-10 01:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 01:16:20] Production.INFO: 29 MB #Memory Used# [2025-04-10 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 22:17:05 [end_date_ymd] => 2025-04-10 01:17:05 [RateCDR] => 1 ) [2025-04-10 01:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 22:17:05' and `end` < '2025-04-10 01:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 01:17:18] Production.INFO: count ==167 [2025-04-10 01:17:18] Production.ERROR: pbx CDR StartTime 2025-04-09 22:17:05 - End Time 2025-04-10 01:17:05 [2025-04-10 01:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873457', 'tblTempUsageDetail_20' ) start [2025-04-10 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873457', 'tblTempUsageDetail_20' ) end [2025-04-10 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873457', 'tblTempVendorCDR_20' ) start [2025-04-10 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873457', 'tblTempVendorCDR_20' ) end [2025-04-10 01:17:18] Production.INFO: ProcessCDR(1,14873457,1,1,2) [2025-04-10 01:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873457', 'tblTempUsageDetail_20' ) start [2025-04-10 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873457', 'tblTempUsageDetail_20' ) end [2025-04-10 01:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 01:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 01:17:21] Production.INFO: ==31684== Releasing lock... [2025-04-10 01:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 01:17:21] Production.INFO: 29 MB #Memory Used# [2025-04-10 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 22:18:05 [end_date_ymd] => 2025-04-10 01:18:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 22:18:05' and `end` < '2025-04-10 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-04-10 01:18:18] Production.INFO: count ==165 [2025-04-10 01:18:18] Production.ERROR: pbx CDR StartTime 2025-04-09 22:18:05 - End Time 2025-04-10 01:18:05 [2025-04-10 01:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873462', 'tblTempUsageDetail_20' ) start [2025-04-10 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873462', 'tblTempUsageDetail_20' ) end [2025-04-10 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873462', 'tblTempVendorCDR_20' ) start [2025-04-10 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873462', 'tblTempVendorCDR_20' ) end [2025-04-10 01:18:18] Production.INFO: ProcessCDR(1,14873462,1,1,2) [2025-04-10 01:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873462', 'tblTempUsageDetail_20' ) start [2025-04-10 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873462', 'tblTempUsageDetail_20' ) end [2025-04-10 01:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 01:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 01:18:21] Production.INFO: ==31765== Releasing lock... [2025-04-10 01:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 01:18:21] Production.INFO: 29 MB #Memory Used# [2025-04-10 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 22:19:05 [end_date_ymd] => 2025-04-10 01:19:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 22:19:05' and `end` < '2025-04-10 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-04-10 01:19:18] Production.INFO: count ==165 [2025-04-10 01:19:18] Production.ERROR: pbx CDR StartTime 2025-04-09 22:19:05 - End Time 2025-04-10 01:19:05 [2025-04-10 01:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873467', 'tblTempUsageDetail_20' ) start [2025-04-10 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873467', 'tblTempUsageDetail_20' ) end [2025-04-10 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873467', 'tblTempVendorCDR_20' ) start [2025-04-10 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873467', 'tblTempVendorCDR_20' ) end [2025-04-10 01:19:18] Production.INFO: ProcessCDR(1,14873467,1,1,2) [2025-04-10 01:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873467', 'tblTempUsageDetail_20' ) start [2025-04-10 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873467', 'tblTempUsageDetail_20' ) end [2025-04-10 01:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 01:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 01:19:21] Production.INFO: ==31835== Releasing lock... [2025-04-10 01:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 01:19:21] Production.INFO: 29 MB #Memory Used# [2025-04-10 01:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 22:20:06 [end_date_ymd] => 2025-04-10 01:20:06 [RateCDR] => 1 ) [2025-04-10 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-04-09 22:20:06' and `end` < '2025-04-10 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-04-10 01:20:19] Production.INFO: count ==165 [2025-04-10 01:20:19] Production.ERROR: pbx CDR StartTime 2025-04-09 22:20:06 - End Time 2025-04-10 01:20:06 [2025-04-10 01:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873472', 'tblTempUsageDetail_20' ) start [2025-04-10 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873472', 'tblTempUsageDetail_20' ) end [2025-04-10 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873472', 'tblTempVendorCDR_20' ) start [2025-04-10 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873472', 'tblTempVendorCDR_20' ) end [2025-04-10 01:20:19] Production.INFO: ProcessCDR(1,14873472,1,1,2) [2025-04-10 01:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873472', 'tblTempUsageDetail_20' ) start [2025-04-10 01:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873472', 'tblTempUsageDetail_20' ) end [2025-04-10 01:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 01:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 01:20:23] Production.INFO: ==31907== Releasing lock... [2025-04-10 01:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 01:20:23] Production.INFO: 29 MB #Memory Used# [2025-04-10 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 22:21:05 [end_date_ymd] => 2025-04-10 01:21:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 22:21:05' and `end` < '2025-04-10 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-04-10 01:21:18] Production.INFO: count ==167 [2025-04-10 01:21:18] Production.ERROR: pbx CDR StartTime 2025-04-09 22:21:05 - End Time 2025-04-10 01:21:05 [2025-04-10 01:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873478', 'tblTempUsageDetail_20' ) start [2025-04-10 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873478', 'tblTempUsageDetail_20' ) end [2025-04-10 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873478', 'tblTempVendorCDR_20' ) start [2025-04-10 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873478', 'tblTempVendorCDR_20' ) end [2025-04-10 01:21:18] Production.INFO: ProcessCDR(1,14873478,1,1,2) [2025-04-10 01:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873478', 'tblTempUsageDetail_20' ) start [2025-04-10 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873478', 'tblTempUsageDetail_20' ) end [2025-04-10 01:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 01:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 01:21:21] Production.INFO: ==31981== Releasing lock... [2025-04-10 01:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 01:21:21] Production.INFO: 29 MB #Memory Used# [2025-04-10 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 22:22:05 [end_date_ymd] => 2025-04-10 01:22:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 22:22:05' and `end` < '2025-04-10 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-04-10 01:22:18] Production.INFO: count ==167 [2025-04-10 01:22:18] Production.ERROR: pbx CDR StartTime 2025-04-09 22:22:05 - End Time 2025-04-10 01:22:05 [2025-04-10 01:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873483', 'tblTempUsageDetail_20' ) start [2025-04-10 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873483', 'tblTempUsageDetail_20' ) end [2025-04-10 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873483', 'tblTempVendorCDR_20' ) start [2025-04-10 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873483', 'tblTempVendorCDR_20' ) end [2025-04-10 01:22:18] Production.INFO: ProcessCDR(1,14873483,1,1,2) [2025-04-10 01:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873483', 'tblTempUsageDetail_20' ) start [2025-04-10 01:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873483', 'tblTempUsageDetail_20' ) end [2025-04-10 01:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 01:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 01:22:22] Production.INFO: ==32059== Releasing lock... [2025-04-10 01:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 01:22:22] Production.INFO: 29 MB #Memory Used# [2025-04-10 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 22:23:05 [end_date_ymd] => 2025-04-10 01:23:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 22:23:05' and `end` < '2025-04-10 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-04-10 01:23:17] Production.INFO: count ==167 [2025-04-10 01:23:17] Production.ERROR: pbx CDR StartTime 2025-04-09 22:23:05 - End Time 2025-04-10 01:23:05 [2025-04-10 01:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873488', 'tblTempUsageDetail_20' ) start [2025-04-10 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873488', 'tblTempUsageDetail_20' ) end [2025-04-10 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873488', 'tblTempVendorCDR_20' ) start [2025-04-10 01:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873488', 'tblTempVendorCDR_20' ) end [2025-04-10 01:23:17] Production.INFO: ProcessCDR(1,14873488,1,1,2) [2025-04-10 01:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873488', 'tblTempUsageDetail_20' ) start [2025-04-10 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873488', 'tblTempUsageDetail_20' ) end [2025-04-10 01:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 01:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 01:23:21] Production.INFO: ==32134== Releasing lock... [2025-04-10 01:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 01:23:21] Production.INFO: 29 MB #Memory Used# [2025-04-10 01:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 22:24:05 [end_date_ymd] => 2025-04-10 01:24:05 [RateCDR] => 1 ) [2025-04-10 01:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 22:24:05' and `end` < '2025-04-10 01:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 01:24:18] Production.INFO: count ==169 [2025-04-10 01:24:18] Production.ERROR: pbx CDR StartTime 2025-04-09 22:24:05 - End Time 2025-04-10 01:24:05 [2025-04-10 01:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873493', 'tblTempUsageDetail_20' ) start [2025-04-10 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873493', 'tblTempUsageDetail_20' ) end [2025-04-10 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873493', 'tblTempVendorCDR_20' ) start [2025-04-10 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873493', 'tblTempVendorCDR_20' ) end [2025-04-10 01:24:18] Production.INFO: ProcessCDR(1,14873493,1,1,2) [2025-04-10 01:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873493', 'tblTempUsageDetail_20' ) start [2025-04-10 01:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873493', 'tblTempUsageDetail_20' ) end [2025-04-10 01:24:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 01:24:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 01:24:23] Production.INFO: ==32204== Releasing lock... [2025-04-10 01:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 01:24:23] Production.INFO: 29 MB #Memory Used# [2025-04-10 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 22:25:05 [end_date_ymd] => 2025-04-10 01:25:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 22:25:05' and `end` < '2025-04-10 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-04-10 01:25:18] Production.INFO: count ==168 [2025-04-10 01:25:18] Production.ERROR: pbx CDR StartTime 2025-04-09 22:25:05 - End Time 2025-04-10 01:25:05 [2025-04-10 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873498', 'tblTempUsageDetail_20' ) start [2025-04-10 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873498', 'tblTempUsageDetail_20' ) end [2025-04-10 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873498', 'tblTempVendorCDR_20' ) start [2025-04-10 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873498', 'tblTempVendorCDR_20' ) end [2025-04-10 01:25:18] Production.INFO: ProcessCDR(1,14873498,1,1,2) [2025-04-10 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873498', 'tblTempUsageDetail_20' ) start [2025-04-10 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873498', 'tblTempUsageDetail_20' ) end [2025-04-10 01:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 01:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 01:25:21] Production.INFO: ==32274== Releasing lock... [2025-04-10 01:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 01:25:21] Production.INFO: 29 MB #Memory Used# [2025-04-10 01:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 22:26:06 [end_date_ymd] => 2025-04-10 01:26:06 [RateCDR] => 1 ) [2025-04-10 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-04-09 22:26:06' and `end` < '2025-04-10 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-04-10 01:26:19] Production.INFO: count ==168 [2025-04-10 01:26:19] Production.ERROR: pbx CDR StartTime 2025-04-09 22:26:06 - End Time 2025-04-10 01:26:06 [2025-04-10 01:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 01:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873503', 'tblTempUsageDetail_20' ) start [2025-04-10 01:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873503', 'tblTempUsageDetail_20' ) end [2025-04-10 01:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873503', 'tblTempVendorCDR_20' ) start [2025-04-10 01:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873503', 'tblTempVendorCDR_20' ) end [2025-04-10 01:26:19] Production.INFO: ProcessCDR(1,14873503,1,1,2) [2025-04-10 01:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873503', 'tblTempUsageDetail_20' ) start [2025-04-10 01:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873503', 'tblTempUsageDetail_20' ) end [2025-04-10 01:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 01:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 01:26:22] Production.INFO: ==32345== Releasing lock... [2025-04-10 01:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 01:26:22] Production.INFO: 29 MB #Memory Used# [2025-04-10 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 22:27:05 [end_date_ymd] => 2025-04-10 01:27:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 22:27:05' and `end` < '2025-04-10 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-04-10 01:27:17] Production.INFO: count ==168 [2025-04-10 01:27:18] Production.ERROR: pbx CDR StartTime 2025-04-09 22:27:05 - End Time 2025-04-10 01:27:05 [2025-04-10 01:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873508', 'tblTempUsageDetail_20' ) start [2025-04-10 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873508', 'tblTempUsageDetail_20' ) end [2025-04-10 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873508', 'tblTempVendorCDR_20' ) start [2025-04-10 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873508', 'tblTempVendorCDR_20' ) end [2025-04-10 01:27:18] Production.INFO: ProcessCDR(1,14873508,1,1,2) [2025-04-10 01:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873508', 'tblTempUsageDetail_20' ) start [2025-04-10 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873508', 'tblTempUsageDetail_20' ) end [2025-04-10 01:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 01:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 01:27:21] Production.INFO: ==32415== Releasing lock... [2025-04-10 01:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 01:27:21] Production.INFO: 29 MB #Memory Used# [2025-04-10 01:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 22:28:05 [end_date_ymd] => 2025-04-10 01:28:05 [RateCDR] => 1 ) [2025-04-10 01:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 22:28:05' and `end` < '2025-04-10 01:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 01:28:18] Production.INFO: count ==168 [2025-04-10 01:28:18] Production.ERROR: pbx CDR StartTime 2025-04-09 22:28:05 - End Time 2025-04-10 01:28:05 [2025-04-10 01:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873513', 'tblTempUsageDetail_20' ) start [2025-04-10 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873513', 'tblTempUsageDetail_20' ) end [2025-04-10 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873513', 'tblTempVendorCDR_20' ) start [2025-04-10 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873513', 'tblTempVendorCDR_20' ) end [2025-04-10 01:28:18] Production.INFO: ProcessCDR(1,14873513,1,1,2) [2025-04-10 01:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873513', 'tblTempUsageDetail_20' ) start [2025-04-10 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873513', 'tblTempUsageDetail_20' ) end [2025-04-10 01:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 01:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 01:28:21] Production.INFO: ==32526== Releasing lock... [2025-04-10 01:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 01:28:21] Production.INFO: 29 MB #Memory Used# [2025-04-10 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 22:29:05 [end_date_ymd] => 2025-04-10 01:29:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 22:29:05' and `end` < '2025-04-10 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-04-10 01:29:17] Production.INFO: count ==169 [2025-04-10 01:29:18] Production.ERROR: pbx CDR StartTime 2025-04-09 22:29:05 - End Time 2025-04-10 01:29:05 [2025-04-10 01:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873518', 'tblTempUsageDetail_20' ) start [2025-04-10 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873518', 'tblTempUsageDetail_20' ) end [2025-04-10 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873518', 'tblTempVendorCDR_20' ) start [2025-04-10 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873518', 'tblTempVendorCDR_20' ) end [2025-04-10 01:29:18] Production.INFO: ProcessCDR(1,14873518,1,1,2) [2025-04-10 01:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873518', 'tblTempUsageDetail_20' ) start [2025-04-10 01:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873518', 'tblTempUsageDetail_20' ) end [2025-04-10 01:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 01:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 01:29:22] Production.INFO: ==32598== Releasing lock... [2025-04-10 01:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 01:29:22] Production.INFO: 29 MB #Memory Used# [2025-04-10 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 22:30:06 [end_date_ymd] => 2025-04-10 01:30:06 [RateCDR] => 1 ) [2025-04-10 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-04-09 22:30:06' and `end` < '2025-04-10 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-04-10 01:30:19] Production.INFO: count ==171 [2025-04-10 01:30:19] Production.ERROR: pbx CDR StartTime 2025-04-09 22:30:06 - End Time 2025-04-10 01:30:06 [2025-04-10 01:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873524', 'tblTempUsageDetail_20' ) start [2025-04-10 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873524', 'tblTempUsageDetail_20' ) end [2025-04-10 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873524', 'tblTempVendorCDR_20' ) start [2025-04-10 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873524', 'tblTempVendorCDR_20' ) end [2025-04-10 01:30:19] Production.INFO: ProcessCDR(1,14873524,1,1,2) [2025-04-10 01:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873524', 'tblTempUsageDetail_20' ) start [2025-04-10 01:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873524', 'tblTempUsageDetail_20' ) end [2025-04-10 01:30:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 01:30:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 01:30:24] Production.INFO: ==32670== Releasing lock... [2025-04-10 01:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 01:30:24] Production.INFO: 29 MB #Memory Used# [2025-04-10 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 22:31:05 [end_date_ymd] => 2025-04-10 01:31:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 22:31:05' and `end` < '2025-04-10 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-04-10 01:31:18] Production.INFO: count ==171 [2025-04-10 01:31:18] Production.ERROR: pbx CDR StartTime 2025-04-09 22:31:05 - End Time 2025-04-10 01:31:05 [2025-04-10 01:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873529', 'tblTempUsageDetail_20' ) start [2025-04-10 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873529', 'tblTempUsageDetail_20' ) end [2025-04-10 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873529', 'tblTempVendorCDR_20' ) start [2025-04-10 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873529', 'tblTempVendorCDR_20' ) end [2025-04-10 01:31:18] Production.INFO: ProcessCDR(1,14873529,1,1,2) [2025-04-10 01:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873529', 'tblTempUsageDetail_20' ) start [2025-04-10 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873529', 'tblTempUsageDetail_20' ) end [2025-04-10 01:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 01:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 01:31:21] Production.INFO: ==32744== Releasing lock... [2025-04-10 01:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 01:31:21] Production.INFO: 29 MB #Memory Used# [2025-04-10 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 22:32:05 [end_date_ymd] => 2025-04-10 01:32:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 22:32:05' and `end` < '2025-04-10 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-04-10 01:32:18] Production.INFO: count ==171 [2025-04-10 01:32:18] Production.ERROR: pbx CDR StartTime 2025-04-09 22:32:05 - End Time 2025-04-10 01:32:05 [2025-04-10 01:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873532', 'tblTempUsageDetail_20' ) start [2025-04-10 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873532', 'tblTempUsageDetail_20' ) end [2025-04-10 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873532', 'tblTempVendorCDR_20' ) start [2025-04-10 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873532', 'tblTempVendorCDR_20' ) end [2025-04-10 01:32:18] Production.INFO: ProcessCDR(1,14873532,1,1,2) [2025-04-10 01:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873532', 'tblTempUsageDetail_20' ) start [2025-04-10 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873532', 'tblTempUsageDetail_20' ) end [2025-04-10 01:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 01:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 01:32:21] Production.INFO: ==368== Releasing lock... [2025-04-10 01:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 01:32:21] Production.INFO: 29 MB #Memory Used# [2025-04-10 01:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 22:33:05 [end_date_ymd] => 2025-04-10 01:33:05 [RateCDR] => 1 ) [2025-04-10 01:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 22:33:05' and `end` < '2025-04-10 01:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 01:33:18] Production.INFO: count ==171 [2025-04-10 01:33:18] Production.ERROR: pbx CDR StartTime 2025-04-09 22:33:05 - End Time 2025-04-10 01:33:05 [2025-04-10 01:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873539', 'tblTempUsageDetail_20' ) start [2025-04-10 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873539', 'tblTempUsageDetail_20' ) end [2025-04-10 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873539', 'tblTempVendorCDR_20' ) start [2025-04-10 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873539', 'tblTempVendorCDR_20' ) end [2025-04-10 01:33:18] Production.INFO: ProcessCDR(1,14873539,1,1,2) [2025-04-10 01:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873539', 'tblTempUsageDetail_20' ) start [2025-04-10 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873539', 'tblTempUsageDetail_20' ) end [2025-04-10 01:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 01:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 01:33:21] Production.INFO: ==438== Releasing lock... [2025-04-10 01:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 01:33:21] Production.INFO: 29 MB #Memory Used# [2025-04-10 01:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 22:34:05 [end_date_ymd] => 2025-04-10 01:34:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 22:34:05' and `end` < '2025-04-10 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-04-10 01:34:18] Production.INFO: count ==171 [2025-04-10 01:34:18] Production.ERROR: pbx CDR StartTime 2025-04-09 22:34:05 - End Time 2025-04-10 01:34:05 [2025-04-10 01:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873544', 'tblTempUsageDetail_20' ) start [2025-04-10 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873544', 'tblTempUsageDetail_20' ) end [2025-04-10 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873544', 'tblTempVendorCDR_20' ) start [2025-04-10 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873544', 'tblTempVendorCDR_20' ) end [2025-04-10 01:34:18] Production.INFO: ProcessCDR(1,14873544,1,1,2) [2025-04-10 01:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873544', 'tblTempUsageDetail_20' ) start [2025-04-10 01:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873544', 'tblTempUsageDetail_20' ) end [2025-04-10 01:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 01:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 01:34:22] Production.INFO: ==513== Releasing lock... [2025-04-10 01:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 01:34:22] Production.INFO: 29 MB #Memory Used# [2025-04-10 01:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 22:35:04 [end_date_ymd] => 2025-04-10 01:35:04 [RateCDR] => 1 ) [2025-04-10 01:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 22:35:04' and `end` < '2025-04-10 01:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 01:35:17] Production.INFO: count ==171 [2025-04-10 01:35:17] Production.ERROR: pbx CDR StartTime 2025-04-09 22:35:04 - End Time 2025-04-10 01:35:04 [2025-04-10 01:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873549', 'tblTempUsageDetail_20' ) start [2025-04-10 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873549', 'tblTempUsageDetail_20' ) end [2025-04-10 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873549', 'tblTempVendorCDR_20' ) start [2025-04-10 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873549', 'tblTempVendorCDR_20' ) end [2025-04-10 01:35:17] Production.INFO: ProcessCDR(1,14873549,1,1,2) [2025-04-10 01:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873549', 'tblTempUsageDetail_20' ) start [2025-04-10 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873549', 'tblTempUsageDetail_20' ) end [2025-04-10 01:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 01:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 01:35:21] Production.INFO: ==589== Releasing lock... [2025-04-10 01:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 01:35:21] Production.INFO: 29 MB #Memory Used# [2025-04-10 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 22:36:05 [end_date_ymd] => 2025-04-10 01:36:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 22:36:05' and `end` < '2025-04-10 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-04-10 01:36:18] Production.INFO: count ==171 [2025-04-10 01:36:18] Production.ERROR: pbx CDR StartTime 2025-04-09 22:36:05 - End Time 2025-04-10 01:36:05 [2025-04-10 01:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873554', 'tblTempUsageDetail_20' ) start [2025-04-10 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873554', 'tblTempUsageDetail_20' ) end [2025-04-10 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873554', 'tblTempVendorCDR_20' ) start [2025-04-10 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873554', 'tblTempVendorCDR_20' ) end [2025-04-10 01:36:18] Production.INFO: ProcessCDR(1,14873554,1,1,2) [2025-04-10 01:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873554', 'tblTempUsageDetail_20' ) start [2025-04-10 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873554', 'tblTempUsageDetail_20' ) end [2025-04-10 01:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 01:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 01:36:22] Production.INFO: ==683== Releasing lock... [2025-04-10 01:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 01:36:22] Production.INFO: 29 MB #Memory Used# [2025-04-10 01:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 22:37:05 [end_date_ymd] => 2025-04-10 01:37:05 [RateCDR] => 1 ) [2025-04-10 01:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 22:37:05' and `end` < '2025-04-10 01:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 01:37:17] Production.INFO: count ==171 [2025-04-10 01:37:17] Production.ERROR: pbx CDR StartTime 2025-04-09 22:37:05 - End Time 2025-04-10 01:37:05 [2025-04-10 01:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873559', 'tblTempUsageDetail_20' ) start [2025-04-10 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873559', 'tblTempUsageDetail_20' ) end [2025-04-10 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873559', 'tblTempVendorCDR_20' ) start [2025-04-10 01:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873559', 'tblTempVendorCDR_20' ) end [2025-04-10 01:37:17] Production.INFO: ProcessCDR(1,14873559,1,1,2) [2025-04-10 01:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873559', 'tblTempUsageDetail_20' ) start [2025-04-10 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873559', 'tblTempUsageDetail_20' ) end [2025-04-10 01:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 01:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 01:37:21] Production.INFO: ==774== Releasing lock... [2025-04-10 01:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 01:37:21] Production.INFO: 29 MB #Memory Used# [2025-04-10 01:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 22:38:06 [end_date_ymd] => 2025-04-10 01:38:06 [RateCDR] => 1 ) [2025-04-10 01:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 22:38:06' and `end` < '2025-04-10 01:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 01:38:18] Production.INFO: count ==171 [2025-04-10 01:38:18] Production.ERROR: pbx CDR StartTime 2025-04-09 22:38:06 - End Time 2025-04-10 01:38:06 [2025-04-10 01:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873564', 'tblTempUsageDetail_20' ) start [2025-04-10 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873564', 'tblTempUsageDetail_20' ) end [2025-04-10 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873564', 'tblTempVendorCDR_20' ) start [2025-04-10 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873564', 'tblTempVendorCDR_20' ) end [2025-04-10 01:38:18] Production.INFO: ProcessCDR(1,14873564,1,1,2) [2025-04-10 01:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873564', 'tblTempUsageDetail_20' ) start [2025-04-10 01:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873564', 'tblTempUsageDetail_20' ) end [2025-04-10 01:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 01:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 01:38:22] Production.INFO: ==846== Releasing lock... [2025-04-10 01:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 01:38:22] Production.INFO: 29 MB #Memory Used# [2025-04-10 01:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 22:39:05 [end_date_ymd] => 2025-04-10 01:39:05 [RateCDR] => 1 ) [2025-04-10 01:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 22:39:05' and `end` < '2025-04-10 01:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 01:39:18] Production.INFO: count ==170 [2025-04-10 01:39:18] Production.ERROR: pbx CDR StartTime 2025-04-09 22:39:05 - End Time 2025-04-10 01:39:05 [2025-04-10 01:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873569', 'tblTempUsageDetail_20' ) start [2025-04-10 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873569', 'tblTempUsageDetail_20' ) end [2025-04-10 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873569', 'tblTempVendorCDR_20' ) start [2025-04-10 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873569', 'tblTempVendorCDR_20' ) end [2025-04-10 01:39:18] Production.INFO: ProcessCDR(1,14873569,1,1,2) [2025-04-10 01:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873569', 'tblTempUsageDetail_20' ) start [2025-04-10 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873569', 'tblTempUsageDetail_20' ) end [2025-04-10 01:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 01:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 01:39:21] Production.INFO: ==916== Releasing lock... [2025-04-10 01:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 01:39:21] Production.INFO: 29 MB #Memory Used# [2025-04-10 01:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 22:40:06 [end_date_ymd] => 2025-04-10 01:40:06 [RateCDR] => 1 ) [2025-04-10 01:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 22:40:06' and `end` < '2025-04-10 01:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 01:40:19] Production.INFO: count ==177 [2025-04-10 01:40:19] Production.ERROR: pbx CDR StartTime 2025-04-09 22:40:06 - End Time 2025-04-10 01:40:06 [2025-04-10 01:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873575', 'tblTempUsageDetail_20' ) start [2025-04-10 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873575', 'tblTempUsageDetail_20' ) end [2025-04-10 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873575', 'tblTempVendorCDR_20' ) start [2025-04-10 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873575', 'tblTempVendorCDR_20' ) end [2025-04-10 01:40:19] Production.INFO: ProcessCDR(1,14873575,1,1,2) [2025-04-10 01:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873575', 'tblTempUsageDetail_20' ) start [2025-04-10 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873575', 'tblTempUsageDetail_20' ) end [2025-04-10 01:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 01:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 01:40:22] Production.INFO: ==990== Releasing lock... [2025-04-10 01:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 01:40:22] Production.INFO: 29 MB #Memory Used# [2025-04-10 01:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 22:41:06 [end_date_ymd] => 2025-04-10 01:41:06 [RateCDR] => 1 ) [2025-04-10 01:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 22:41:06' and `end` < '2025-04-10 01:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 01:41:19] Production.INFO: count ==176 [2025-04-10 01:41:19] Production.ERROR: pbx CDR StartTime 2025-04-09 22:41:06 - End Time 2025-04-10 01:41:06 [2025-04-10 01:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873580', 'tblTempUsageDetail_20' ) start [2025-04-10 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873580', 'tblTempUsageDetail_20' ) end [2025-04-10 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873580', 'tblTempVendorCDR_20' ) start [2025-04-10 01:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873580', 'tblTempVendorCDR_20' ) end [2025-04-10 01:41:19] Production.INFO: ProcessCDR(1,14873580,1,1,2) [2025-04-10 01:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873580', 'tblTempUsageDetail_20' ) start [2025-04-10 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873580', 'tblTempUsageDetail_20' ) end [2025-04-10 01:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 01:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 01:41:22] Production.INFO: ==1064== Releasing lock... [2025-04-10 01:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 01:41:22] Production.INFO: 29 MB #Memory Used# [2025-04-10 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 22:42:05 [end_date_ymd] => 2025-04-10 01:42:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 22:42:05' and `end` < '2025-04-10 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-04-10 01:42:18] Production.INFO: count ==178 [2025-04-10 01:42:18] Production.ERROR: pbx CDR StartTime 2025-04-09 22:42:05 - End Time 2025-04-10 01:42:05 [2025-04-10 01:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873585', 'tblTempUsageDetail_20' ) start [2025-04-10 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873585', 'tblTempUsageDetail_20' ) end [2025-04-10 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873585', 'tblTempVendorCDR_20' ) start [2025-04-10 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873585', 'tblTempVendorCDR_20' ) end [2025-04-10 01:42:18] Production.INFO: ProcessCDR(1,14873585,1,1,2) [2025-04-10 01:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873585', 'tblTempUsageDetail_20' ) start [2025-04-10 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873585', 'tblTempUsageDetail_20' ) end [2025-04-10 01:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 01:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 01:42:21] Production.INFO: ==1138== Releasing lock... [2025-04-10 01:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 01:42:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 01:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 22:43:06 [end_date_ymd] => 2025-04-10 01:43:06 [RateCDR] => 1 ) [2025-04-10 01:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 22:43:06' and `end` < '2025-04-10 01:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 01:43:19] Production.INFO: count ==178 [2025-04-10 01:43:19] Production.ERROR: pbx CDR StartTime 2025-04-09 22:43:06 - End Time 2025-04-10 01:43:06 [2025-04-10 01:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873590', 'tblTempUsageDetail_20' ) start [2025-04-10 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873590', 'tblTempUsageDetail_20' ) end [2025-04-10 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873590', 'tblTempVendorCDR_20' ) start [2025-04-10 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873590', 'tblTempVendorCDR_20' ) end [2025-04-10 01:43:19] Production.INFO: ProcessCDR(1,14873590,1,1,2) [2025-04-10 01:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873590', 'tblTempUsageDetail_20' ) start [2025-04-10 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873590', 'tblTempUsageDetail_20' ) end [2025-04-10 01:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 01:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 01:43:22] Production.INFO: ==1263== Releasing lock... [2025-04-10 01:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 01:43:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 01:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 22:44:05 [end_date_ymd] => 2025-04-10 01:44:05 [RateCDR] => 1 ) [2025-04-10 01:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 22:44:05' and `end` < '2025-04-10 01:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 01:44:18] Production.INFO: count ==178 [2025-04-10 01:44:18] Production.ERROR: pbx CDR StartTime 2025-04-09 22:44:05 - End Time 2025-04-10 01:44:05 [2025-04-10 01:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873595', 'tblTempUsageDetail_20' ) start [2025-04-10 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873595', 'tblTempUsageDetail_20' ) end [2025-04-10 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873595', 'tblTempVendorCDR_20' ) start [2025-04-10 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873595', 'tblTempVendorCDR_20' ) end [2025-04-10 01:44:18] Production.INFO: ProcessCDR(1,14873595,1,1,2) [2025-04-10 01:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873595', 'tblTempUsageDetail_20' ) start [2025-04-10 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873595', 'tblTempUsageDetail_20' ) end [2025-04-10 01:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 01:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 01:44:21] Production.INFO: ==1334== Releasing lock... [2025-04-10 01:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 01:44:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 01:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 22:45:05 [end_date_ymd] => 2025-04-10 01:45:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 22:45:05' and `end` < '2025-04-10 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-04-10 01:45:18] Production.INFO: count ==178 [2025-04-10 01:45:18] Production.ERROR: pbx CDR StartTime 2025-04-09 22:45:05 - End Time 2025-04-10 01:45:05 [2025-04-10 01:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873600', 'tblTempUsageDetail_20' ) start [2025-04-10 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873600', 'tblTempUsageDetail_20' ) end [2025-04-10 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873600', 'tblTempVendorCDR_20' ) start [2025-04-10 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873600', 'tblTempVendorCDR_20' ) end [2025-04-10 01:45:18] Production.INFO: ProcessCDR(1,14873600,1,1,2) [2025-04-10 01:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873600', 'tblTempUsageDetail_20' ) start [2025-04-10 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873600', 'tblTempUsageDetail_20' ) end [2025-04-10 01:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 01:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 01:45:21] Production.INFO: ==1407== Releasing lock... [2025-04-10 01:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 01:45:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 01:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 22:46:05 [end_date_ymd] => 2025-04-10 01:46:05 [RateCDR] => 1 ) [2025-04-10 01:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 22:46:05' and `end` < '2025-04-10 01:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 01:46:18] Production.INFO: count ==179 [2025-04-10 01:46:18] Production.ERROR: pbx CDR StartTime 2025-04-09 22:46:05 - End Time 2025-04-10 01:46:05 [2025-04-10 01:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873605', 'tblTempUsageDetail_20' ) start [2025-04-10 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873605', 'tblTempUsageDetail_20' ) end [2025-04-10 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873605', 'tblTempVendorCDR_20' ) start [2025-04-10 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873605', 'tblTempVendorCDR_20' ) end [2025-04-10 01:46:18] Production.INFO: ProcessCDR(1,14873605,1,1,2) [2025-04-10 01:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873605', 'tblTempUsageDetail_20' ) start [2025-04-10 01:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873605', 'tblTempUsageDetail_20' ) end [2025-04-10 01:46:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 01:46:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 01:46:23] Production.INFO: ==1477== Releasing lock... [2025-04-10 01:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 01:46:23] Production.INFO: 29 MB #Memory Used# [2025-04-10 01:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 22:47:05 [end_date_ymd] => 2025-04-10 01:47:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 22:47:05' and `end` < '2025-04-10 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-04-10 01:47:18] Production.INFO: count ==179 [2025-04-10 01:47:18] Production.ERROR: pbx CDR StartTime 2025-04-09 22:47:05 - End Time 2025-04-10 01:47:05 [2025-04-10 01:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873610', 'tblTempUsageDetail_20' ) start [2025-04-10 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873610', 'tblTempUsageDetail_20' ) end [2025-04-10 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873610', 'tblTempVendorCDR_20' ) start [2025-04-10 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873610', 'tblTempVendorCDR_20' ) end [2025-04-10 01:47:18] Production.INFO: ProcessCDR(1,14873610,1,1,2) [2025-04-10 01:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873610', 'tblTempUsageDetail_20' ) start [2025-04-10 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873610', 'tblTempUsageDetail_20' ) end [2025-04-10 01:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 01:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 01:47:22] Production.INFO: ==1584== Releasing lock... [2025-04-10 01:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 01:47:22] Production.INFO: 29 MB #Memory Used# [2025-04-10 01:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 22:48:05 [end_date_ymd] => 2025-04-10 01:48:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 22:48:05' and `end` < '2025-04-10 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-04-10 01:48:18] Production.INFO: count ==179 [2025-04-10 01:48:18] Production.ERROR: pbx CDR StartTime 2025-04-09 22:48:05 - End Time 2025-04-10 01:48:05 [2025-04-10 01:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873615', 'tblTempUsageDetail_20' ) start [2025-04-10 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873615', 'tblTempUsageDetail_20' ) end [2025-04-10 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873615', 'tblTempVendorCDR_20' ) start [2025-04-10 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873615', 'tblTempVendorCDR_20' ) end [2025-04-10 01:48:18] Production.INFO: ProcessCDR(1,14873615,1,1,2) [2025-04-10 01:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873615', 'tblTempUsageDetail_20' ) start [2025-04-10 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873615', 'tblTempUsageDetail_20' ) end [2025-04-10 01:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 01:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 01:48:21] Production.INFO: ==1653== Releasing lock... [2025-04-10 01:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 01:48:21] Production.INFO: 29 MB #Memory Used# [2025-04-10 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 22:49:05 [end_date_ymd] => 2025-04-10 01:49:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 22:49:05' and `end` < '2025-04-10 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-04-10 01:49:18] Production.INFO: count ==179 [2025-04-10 01:49:18] Production.ERROR: pbx CDR StartTime 2025-04-09 22:49:05 - End Time 2025-04-10 01:49:05 [2025-04-10 01:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873620', 'tblTempUsageDetail_20' ) start [2025-04-10 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873620', 'tblTempUsageDetail_20' ) end [2025-04-10 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873620', 'tblTempVendorCDR_20' ) start [2025-04-10 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873620', 'tblTempVendorCDR_20' ) end [2025-04-10 01:49:18] Production.INFO: ProcessCDR(1,14873620,1,1,2) [2025-04-10 01:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873620', 'tblTempUsageDetail_20' ) start [2025-04-10 01:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873620', 'tblTempUsageDetail_20' ) end [2025-04-10 01:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 01:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 01:49:22] Production.INFO: ==1729== Releasing lock... [2025-04-10 01:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 01:49:22] Production.INFO: 29 MB #Memory Used# [2025-04-10 01:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 22:50:06 [end_date_ymd] => 2025-04-10 01:50:06 [RateCDR] => 1 ) [2025-04-10 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-04-09 22:50:06' and `end` < '2025-04-10 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-04-10 01:50:19] Production.INFO: count ==187 [2025-04-10 01:50:19] Production.ERROR: pbx CDR StartTime 2025-04-09 22:50:06 - End Time 2025-04-10 01:50:06 [2025-04-10 01:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873626', 'tblTempUsageDetail_20' ) start [2025-04-10 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873626', 'tblTempUsageDetail_20' ) end [2025-04-10 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873626', 'tblTempVendorCDR_20' ) start [2025-04-10 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873626', 'tblTempVendorCDR_20' ) end [2025-04-10 01:50:19] Production.INFO: ProcessCDR(1,14873626,1,1,2) [2025-04-10 01:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873626', 'tblTempUsageDetail_20' ) start [2025-04-10 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873626', 'tblTempUsageDetail_20' ) end [2025-04-10 01:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 01:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 01:50:22] Production.INFO: ==1802== Releasing lock... [2025-04-10 01:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 01:50:22] Production.INFO: 29 MB #Memory Used# [2025-04-10 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 22:51:05 [end_date_ymd] => 2025-04-10 01:51:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 22:51:05' and `end` < '2025-04-10 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-04-10 01:51:18] Production.INFO: count ==191 [2025-04-10 01:51:18] Production.ERROR: pbx CDR StartTime 2025-04-09 22:51:05 - End Time 2025-04-10 01:51:05 [2025-04-10 01:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873631', 'tblTempUsageDetail_20' ) start [2025-04-10 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873631', 'tblTempUsageDetail_20' ) end [2025-04-10 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873631', 'tblTempVendorCDR_20' ) start [2025-04-10 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873631', 'tblTempVendorCDR_20' ) end [2025-04-10 01:51:18] Production.INFO: ProcessCDR(1,14873631,1,1,2) [2025-04-10 01:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873631', 'tblTempUsageDetail_20' ) start [2025-04-10 01:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873631', 'tblTempUsageDetail_20' ) end [2025-04-10 01:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 01:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 01:51:22] Production.INFO: ==1879== Releasing lock... [2025-04-10 01:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 01:51:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 01:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 22:52:05 [end_date_ymd] => 2025-04-10 01:52:05 [RateCDR] => 1 ) [2025-04-10 01:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 22:52:05' and `end` < '2025-04-10 01:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 01:52:18] Production.INFO: count ==187 [2025-04-10 01:52:18] Production.ERROR: pbx CDR StartTime 2025-04-09 22:52:05 - End Time 2025-04-10 01:52:05 [2025-04-10 01:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873636', 'tblTempUsageDetail_20' ) start [2025-04-10 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873636', 'tblTempUsageDetail_20' ) end [2025-04-10 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873636', 'tblTempVendorCDR_20' ) start [2025-04-10 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873636', 'tblTempVendorCDR_20' ) end [2025-04-10 01:52:18] Production.INFO: ProcessCDR(1,14873636,1,1,2) [2025-04-10 01:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873636', 'tblTempUsageDetail_20' ) start [2025-04-10 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873636', 'tblTempUsageDetail_20' ) end [2025-04-10 01:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 01:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 01:52:21] Production.INFO: ==1954== Releasing lock... [2025-04-10 01:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 01:52:21] Production.INFO: 29 MB #Memory Used# [2025-04-10 01:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 22:53:06 [end_date_ymd] => 2025-04-10 01:53:06 [RateCDR] => 1 ) [2025-04-10 01:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 22:53:06' and `end` < '2025-04-10 01:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 01:53:19] Production.INFO: count ==187 [2025-04-10 01:53:19] Production.ERROR: pbx CDR StartTime 2025-04-09 22:53:06 - End Time 2025-04-10 01:53:06 [2025-04-10 01:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873641', 'tblTempUsageDetail_20' ) start [2025-04-10 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873641', 'tblTempUsageDetail_20' ) end [2025-04-10 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873641', 'tblTempVendorCDR_20' ) start [2025-04-10 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873641', 'tblTempVendorCDR_20' ) end [2025-04-10 01:53:19] Production.INFO: ProcessCDR(1,14873641,1,1,2) [2025-04-10 01:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873641', 'tblTempUsageDetail_20' ) start [2025-04-10 01:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873641', 'tblTempUsageDetail_20' ) end [2025-04-10 01:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 01:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 01:53:22] Production.INFO: ==2026== Releasing lock... [2025-04-10 01:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 01:53:22] Production.INFO: 29 MB #Memory Used# [2025-04-10 01:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 22:54:05 [end_date_ymd] => 2025-04-10 01:54:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 22:54:05' and `end` < '2025-04-10 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-04-10 01:54:18] Production.INFO: count ==187 [2025-04-10 01:54:18] Production.ERROR: pbx CDR StartTime 2025-04-09 22:54:05 - End Time 2025-04-10 01:54:05 [2025-04-10 01:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873646', 'tblTempUsageDetail_20' ) start [2025-04-10 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873646', 'tblTempUsageDetail_20' ) end [2025-04-10 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873646', 'tblTempVendorCDR_20' ) start [2025-04-10 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873646', 'tblTempVendorCDR_20' ) end [2025-04-10 01:54:18] Production.INFO: ProcessCDR(1,14873646,1,1,2) [2025-04-10 01:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873646', 'tblTempUsageDetail_20' ) start [2025-04-10 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873646', 'tblTempUsageDetail_20' ) end [2025-04-10 01:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 01:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 01:54:22] Production.INFO: ==2098== Releasing lock... [2025-04-10 01:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 01:54:22] Production.INFO: 29 MB #Memory Used# [2025-04-10 01:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 22:55:06 [end_date_ymd] => 2025-04-10 01:55:06 [RateCDR] => 1 ) [2025-04-10 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-04-09 22:55:06' and `end` < '2025-04-10 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-04-10 01:55:19] Production.INFO: count ==187 [2025-04-10 01:55:19] Production.ERROR: pbx CDR StartTime 2025-04-09 22:55:06 - End Time 2025-04-10 01:55:06 [2025-04-10 01:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873651', 'tblTempUsageDetail_20' ) start [2025-04-10 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873651', 'tblTempUsageDetail_20' ) end [2025-04-10 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873651', 'tblTempVendorCDR_20' ) start [2025-04-10 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873651', 'tblTempVendorCDR_20' ) end [2025-04-10 01:55:19] Production.INFO: ProcessCDR(1,14873651,1,1,2) [2025-04-10 01:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873651', 'tblTempUsageDetail_20' ) start [2025-04-10 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873651', 'tblTempUsageDetail_20' ) end [2025-04-10 01:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 01:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 01:55:22] Production.INFO: ==2171== Releasing lock... [2025-04-10 01:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 01:55:22] Production.INFO: 29 MB #Memory Used# [2025-04-10 01:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 22:56:05 [end_date_ymd] => 2025-04-10 01:56:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 22:56:05' and `end` < '2025-04-10 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-04-10 01:56:18] Production.INFO: count ==187 [2025-04-10 01:56:18] Production.ERROR: pbx CDR StartTime 2025-04-09 22:56:05 - End Time 2025-04-10 01:56:05 [2025-04-10 01:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873656', 'tblTempUsageDetail_20' ) start [2025-04-10 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873656', 'tblTempUsageDetail_20' ) end [2025-04-10 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873656', 'tblTempVendorCDR_20' ) start [2025-04-10 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873656', 'tblTempVendorCDR_20' ) end [2025-04-10 01:56:18] Production.INFO: ProcessCDR(1,14873656,1,1,2) [2025-04-10 01:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873656', 'tblTempUsageDetail_20' ) start [2025-04-10 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873656', 'tblTempUsageDetail_20' ) end [2025-04-10 01:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 01:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 01:56:21] Production.INFO: ==2241== Releasing lock... [2025-04-10 01:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 01:56:21] Production.INFO: 29 MB #Memory Used# [2025-04-10 01:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 22:57:06 [end_date_ymd] => 2025-04-10 01:57:06 [RateCDR] => 1 ) [2025-04-10 01:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 22:57:06' and `end` < '2025-04-10 01:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 01:57:19] Production.INFO: count ==186 [2025-04-10 01:57:19] Production.ERROR: pbx CDR StartTime 2025-04-09 22:57:06 - End Time 2025-04-10 01:57:06 [2025-04-10 01:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873661', 'tblTempUsageDetail_20' ) start [2025-04-10 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873661', 'tblTempUsageDetail_20' ) end [2025-04-10 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873661', 'tblTempVendorCDR_20' ) start [2025-04-10 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873661', 'tblTempVendorCDR_20' ) end [2025-04-10 01:57:19] Production.INFO: ProcessCDR(1,14873661,1,1,2) [2025-04-10 01:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873661', 'tblTempUsageDetail_20' ) start [2025-04-10 01:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873661', 'tblTempUsageDetail_20' ) end [2025-04-10 01:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 01:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 01:57:22] Production.INFO: ==2314== Releasing lock... [2025-04-10 01:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 01:57:22] Production.INFO: 29 MB #Memory Used# [2025-04-10 01:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 22:58:05 [end_date_ymd] => 2025-04-10 01:58:05 [RateCDR] => 1 ) [2025-04-10 01:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 22:58:05' and `end` < '2025-04-10 01:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 01:58:18] Production.INFO: count ==188 [2025-04-10 01:58:18] Production.ERROR: pbx CDR StartTime 2025-04-09 22:58:05 - End Time 2025-04-10 01:58:05 [2025-04-10 01:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873666', 'tblTempUsageDetail_20' ) start [2025-04-10 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873666', 'tblTempUsageDetail_20' ) end [2025-04-10 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873666', 'tblTempVendorCDR_20' ) start [2025-04-10 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873666', 'tblTempVendorCDR_20' ) end [2025-04-10 01:58:18] Production.INFO: ProcessCDR(1,14873666,1,1,2) [2025-04-10 01:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873666', 'tblTempUsageDetail_20' ) start [2025-04-10 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873666', 'tblTempUsageDetail_20' ) end [2025-04-10 01:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 01:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 01:58:21] Production.INFO: ==2382== Releasing lock... [2025-04-10 01:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 01:58:21] Production.INFO: 29 MB #Memory Used# [2025-04-10 01:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 22:59:05 [end_date_ymd] => 2025-04-10 01:59:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 22:59:05' and `end` < '2025-04-10 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-04-10 01:59:18] Production.INFO: count ==187 [2025-04-10 01:59:18] Production.ERROR: pbx CDR StartTime 2025-04-09 22:59:05 - End Time 2025-04-10 01:59:05 [2025-04-10 01:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873671', 'tblTempUsageDetail_20' ) start [2025-04-10 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873671', 'tblTempUsageDetail_20' ) end [2025-04-10 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873671', 'tblTempVendorCDR_20' ) start [2025-04-10 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873671', 'tblTempVendorCDR_20' ) end [2025-04-10 01:59:18] Production.INFO: ProcessCDR(1,14873671,1,1,2) [2025-04-10 01:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 01:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 01:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873671', 'tblTempUsageDetail_20' ) start [2025-04-10 01:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873671', 'tblTempUsageDetail_20' ) end [2025-04-10 01:59:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 01:59:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 01:59:23] Production.INFO: ==2492== Releasing lock... [2025-04-10 01:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 01:59:23] Production.INFO: 29 MB #Memory Used# [2025-04-10 02:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 23:00:05 [end_date_ymd] => 2025-04-10 02:00:05 [RateCDR] => 1 ) [2025-04-10 02: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-04-09 23:00:05' and `end` < '2025-04-10 02: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-04-10 02:00:18] Production.INFO: count ==191 [2025-04-10 02:00:18] Production.ERROR: pbx CDR StartTime 2025-04-09 23:00:05 - End Time 2025-04-10 02:00:05 [2025-04-10 02:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873676', 'tblTempUsageDetail_20' ) start [2025-04-10 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873676', 'tblTempUsageDetail_20' ) end [2025-04-10 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873676', 'tblTempVendorCDR_20' ) start [2025-04-10 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873676', 'tblTempVendorCDR_20' ) end [2025-04-10 02:00:18] Production.INFO: ProcessCDR(1,14873676,1,1,2) [2025-04-10 02:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873676', 'tblTempUsageDetail_20' ) start [2025-04-10 02:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873676', 'tblTempUsageDetail_20' ) end [2025-04-10 02:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 02:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 02:00:23] Production.INFO: ==2563== Releasing lock... [2025-04-10 02:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 02:00:23] Production.INFO: 29 MB #Memory Used# [2025-04-10 02:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 23:01:06 [end_date_ymd] => 2025-04-10 02:01:06 [RateCDR] => 1 ) [2025-04-10 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-04-09 23:01:06' and `end` < '2025-04-10 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-04-10 02:01:19] Production.INFO: count ==191 [2025-04-10 02:01:19] Production.ERROR: pbx CDR StartTime 2025-04-09 23:01:06 - End Time 2025-04-10 02:01:06 [2025-04-10 02:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873682', 'tblTempUsageDetail_20' ) start [2025-04-10 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873682', 'tblTempUsageDetail_20' ) end [2025-04-10 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873682', 'tblTempVendorCDR_20' ) start [2025-04-10 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873682', 'tblTempVendorCDR_20' ) end [2025-04-10 02:01:19] Production.INFO: ProcessCDR(1,14873682,1,1,2) [2025-04-10 02:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873682', 'tblTempUsageDetail_20' ) start [2025-04-10 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873682', 'tblTempUsageDetail_20' ) end [2025-04-10 02:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 02:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 02:01:22] Production.INFO: ==2652== Releasing lock... [2025-04-10 02:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 02:01:22] Production.INFO: 29 MB #Memory Used# [2025-04-10 02:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 23:02:04 [end_date_ymd] => 2025-04-10 02:02:04 [RateCDR] => 1 ) [2025-04-10 02:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 23:02:04' and `end` < '2025-04-10 02:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 02:02:17] Production.INFO: count ==191 [2025-04-10 02:02:17] Production.ERROR: pbx CDR StartTime 2025-04-09 23:02:04 - End Time 2025-04-10 02:02:04 [2025-04-10 02:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873687', 'tblTempUsageDetail_20' ) start [2025-04-10 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873687', 'tblTempUsageDetail_20' ) end [2025-04-10 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873687', 'tblTempVendorCDR_20' ) start [2025-04-10 02:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873687', 'tblTempVendorCDR_20' ) end [2025-04-10 02:02:17] Production.INFO: ProcessCDR(1,14873687,1,1,2) [2025-04-10 02:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873687', 'tblTempUsageDetail_20' ) start [2025-04-10 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873687', 'tblTempUsageDetail_20' ) end [2025-04-10 02:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 02:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 02:02:21] Production.INFO: ==2808== Releasing lock... [2025-04-10 02:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 02:02:21] Production.INFO: 29 MB #Memory Used# [2025-04-10 02:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 23:03:05 [end_date_ymd] => 2025-04-10 02:03:05 [RateCDR] => 1 ) [2025-04-10 02:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 23:03:05' and `end` < '2025-04-10 02:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 02:03:18] Production.INFO: count ==191 [2025-04-10 02:03:18] Production.ERROR: pbx CDR StartTime 2025-04-09 23:03:05 - End Time 2025-04-10 02:03:05 [2025-04-10 02:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873692', 'tblTempUsageDetail_20' ) start [2025-04-10 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873692', 'tblTempUsageDetail_20' ) end [2025-04-10 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873692', 'tblTempVendorCDR_20' ) start [2025-04-10 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873692', 'tblTempVendorCDR_20' ) end [2025-04-10 02:03:18] Production.INFO: ProcessCDR(1,14873692,1,1,2) [2025-04-10 02:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873692', 'tblTempUsageDetail_20' ) start [2025-04-10 02:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873692', 'tblTempUsageDetail_20' ) end [2025-04-10 02:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 02:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 02:03:22] Production.INFO: ==2885== Releasing lock... [2025-04-10 02:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 02:03:22] Production.INFO: 29 MB #Memory Used# [2025-04-10 02:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 23:04:05 [end_date_ymd] => 2025-04-10 02:04:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 23:04:05' and `end` < '2025-04-10 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-04-10 02:04:18] Production.INFO: count ==193 [2025-04-10 02:04:18] Production.ERROR: pbx CDR StartTime 2025-04-09 23:04:05 - End Time 2025-04-10 02:04:05 [2025-04-10 02:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873697', 'tblTempUsageDetail_20' ) start [2025-04-10 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873697', 'tblTempUsageDetail_20' ) end [2025-04-10 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873697', 'tblTempVendorCDR_20' ) start [2025-04-10 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873697', 'tblTempVendorCDR_20' ) end [2025-04-10 02:04:18] Production.INFO: ProcessCDR(1,14873697,1,1,2) [2025-04-10 02:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873697', 'tblTempUsageDetail_20' ) start [2025-04-10 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873697', 'tblTempUsageDetail_20' ) end [2025-04-10 02:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 02:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 02:04:22] Production.INFO: ==2955== Releasing lock... [2025-04-10 02:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 02:04:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 23:05:05 [end_date_ymd] => 2025-04-10 02:05:05 [RateCDR] => 1 ) [2025-04-10 02:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 23:05:05' and `end` < '2025-04-10 02:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 02:05:18] Production.INFO: count ==195 [2025-04-10 02:05:18] Production.ERROR: pbx CDR StartTime 2025-04-09 23:05:05 - End Time 2025-04-10 02:05:05 [2025-04-10 02:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873702', 'tblTempUsageDetail_20' ) start [2025-04-10 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873702', 'tblTempUsageDetail_20' ) end [2025-04-10 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873702', 'tblTempVendorCDR_20' ) start [2025-04-10 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873702', 'tblTempVendorCDR_20' ) end [2025-04-10 02:05:18] Production.INFO: ProcessCDR(1,14873702,1,1,2) [2025-04-10 02:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873702', 'tblTempUsageDetail_20' ) start [2025-04-10 02:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873702', 'tblTempUsageDetail_20' ) end [2025-04-10 02:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 02:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 02:05:22] Production.INFO: ==3027== Releasing lock... [2025-04-10 02:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 02:05:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 02:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 23:06:05 [end_date_ymd] => 2025-04-10 02:06:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 23:06:05' and `end` < '2025-04-10 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-04-10 02:06:18] Production.INFO: count ==195 [2025-04-10 02:06:18] Production.ERROR: pbx CDR StartTime 2025-04-09 23:06:05 - End Time 2025-04-10 02:06:05 [2025-04-10 02:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873707', 'tblTempUsageDetail_20' ) start [2025-04-10 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873707', 'tblTempUsageDetail_20' ) end [2025-04-10 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873707', 'tblTempVendorCDR_20' ) start [2025-04-10 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873707', 'tblTempVendorCDR_20' ) end [2025-04-10 02:06:18] Production.INFO: ProcessCDR(1,14873707,1,1,2) [2025-04-10 02:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873707', 'tblTempUsageDetail_20' ) start [2025-04-10 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873707', 'tblTempUsageDetail_20' ) end [2025-04-10 02:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 02:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 02:06:21] Production.INFO: ==3106== Releasing lock... [2025-04-10 02:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 02:06:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 23:07:05 [end_date_ymd] => 2025-04-10 02:07:05 [RateCDR] => 1 ) [2025-04-10 02:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 23:07:05' and `end` < '2025-04-10 02:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 02:07:18] Production.INFO: count ==195 [2025-04-10 02:07:18] Production.ERROR: pbx CDR StartTime 2025-04-09 23:07:05 - End Time 2025-04-10 02:07:05 [2025-04-10 02:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873712', 'tblTempUsageDetail_20' ) start [2025-04-10 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873712', 'tblTempUsageDetail_20' ) end [2025-04-10 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873712', 'tblTempVendorCDR_20' ) start [2025-04-10 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873712', 'tblTempVendorCDR_20' ) end [2025-04-10 02:07:18] Production.INFO: ProcessCDR(1,14873712,1,1,2) [2025-04-10 02:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873712', 'tblTempUsageDetail_20' ) start [2025-04-10 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873712', 'tblTempUsageDetail_20' ) end [2025-04-10 02:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 02:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 02:07:21] Production.INFO: ==3180== Releasing lock... [2025-04-10 02:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 02:07:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 02:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 23:08:06 [end_date_ymd] => 2025-04-10 02:08:06 [RateCDR] => 1 ) [2025-04-10 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-04-09 23:08:06' and `end` < '2025-04-10 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-04-10 02:08:19] Production.INFO: count ==195 [2025-04-10 02:08:19] Production.ERROR: pbx CDR StartTime 2025-04-09 23:08:06 - End Time 2025-04-10 02:08:06 [2025-04-10 02:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873717', 'tblTempUsageDetail_20' ) start [2025-04-10 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873717', 'tblTempUsageDetail_20' ) end [2025-04-10 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873717', 'tblTempVendorCDR_20' ) start [2025-04-10 02:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873717', 'tblTempVendorCDR_20' ) end [2025-04-10 02:08:19] Production.INFO: ProcessCDR(1,14873717,1,1,2) [2025-04-10 02:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873717', 'tblTempUsageDetail_20' ) start [2025-04-10 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873717', 'tblTempUsageDetail_20' ) end [2025-04-10 02:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 02:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 02:08:22] Production.INFO: ==3251== Releasing lock... [2025-04-10 02:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 02:08:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 23:09:05 [end_date_ymd] => 2025-04-10 02:09:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 23:09:05' and `end` < '2025-04-10 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-04-10 02:09:18] Production.INFO: count ==195 [2025-04-10 02:09:18] Production.ERROR: pbx CDR StartTime 2025-04-09 23:09:05 - End Time 2025-04-10 02:09:05 [2025-04-10 02:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873722', 'tblTempUsageDetail_20' ) start [2025-04-10 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873722', 'tblTempUsageDetail_20' ) end [2025-04-10 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873722', 'tblTempVendorCDR_20' ) start [2025-04-10 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873722', 'tblTempVendorCDR_20' ) end [2025-04-10 02:09:18] Production.INFO: ProcessCDR(1,14873722,1,1,2) [2025-04-10 02:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873722', 'tblTempUsageDetail_20' ) start [2025-04-10 02:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873722', 'tblTempUsageDetail_20' ) end [2025-04-10 02:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 02:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 02:09:22] Production.INFO: ==3322== Releasing lock... [2025-04-10 02:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 02:09:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 02:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 23:10:06 [end_date_ymd] => 2025-04-10 02:10:06 [RateCDR] => 1 ) [2025-04-10 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-04-09 23:10:06' and `end` < '2025-04-10 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-04-10 02:10:19] Production.INFO: count ==195 [2025-04-10 02:10:19] Production.ERROR: pbx CDR StartTime 2025-04-09 23:10:06 - End Time 2025-04-10 02:10:06 [2025-04-10 02:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873727', 'tblTempUsageDetail_20' ) start [2025-04-10 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873727', 'tblTempUsageDetail_20' ) end [2025-04-10 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873727', 'tblTempVendorCDR_20' ) start [2025-04-10 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873727', 'tblTempVendorCDR_20' ) end [2025-04-10 02:10:19] Production.INFO: ProcessCDR(1,14873727,1,1,2) [2025-04-10 02:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873727', 'tblTempUsageDetail_20' ) start [2025-04-10 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873727', 'tblTempUsageDetail_20' ) end [2025-04-10 02:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 02:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 02:10:22] Production.INFO: ==3394== Releasing lock... [2025-04-10 02:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 02:10:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 23:11:05 [end_date_ymd] => 2025-04-10 02:11:05 [RateCDR] => 1 ) [2025-04-10 02:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 23:11:05' and `end` < '2025-04-10 02:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 02:11:18] Production.INFO: count ==195 [2025-04-10 02:11:18] Production.ERROR: pbx CDR StartTime 2025-04-09 23:11:05 - End Time 2025-04-10 02:11:05 [2025-04-10 02:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873733', 'tblTempUsageDetail_20' ) start [2025-04-10 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873733', 'tblTempUsageDetail_20' ) end [2025-04-10 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873733', 'tblTempVendorCDR_20' ) start [2025-04-10 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873733', 'tblTempVendorCDR_20' ) end [2025-04-10 02:11:18] Production.INFO: ProcessCDR(1,14873733,1,1,2) [2025-04-10 02:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873733', 'tblTempUsageDetail_20' ) start [2025-04-10 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873733', 'tblTempUsageDetail_20' ) end [2025-04-10 02:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 02:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 02:11:21] Production.INFO: ==3465== Releasing lock... [2025-04-10 02:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 02:11:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 02:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 23:12:06 [end_date_ymd] => 2025-04-10 02:12:06 [RateCDR] => 1 ) [2025-04-10 02: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-04-09 23:12:06' and `end` < '2025-04-10 02: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-04-10 02:12:19] Production.INFO: count ==195 [2025-04-10 02:12:19] Production.ERROR: pbx CDR StartTime 2025-04-09 23:12:06 - End Time 2025-04-10 02:12:06 [2025-04-10 02:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873738', 'tblTempUsageDetail_20' ) start [2025-04-10 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873738', 'tblTempUsageDetail_20' ) end [2025-04-10 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873738', 'tblTempVendorCDR_20' ) start [2025-04-10 02:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873738', 'tblTempVendorCDR_20' ) end [2025-04-10 02:12:19] Production.INFO: ProcessCDR(1,14873738,1,1,2) [2025-04-10 02:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873738', 'tblTempUsageDetail_20' ) start [2025-04-10 02:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873738', 'tblTempUsageDetail_20' ) end [2025-04-10 02:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 02:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 02:12:22] Production.INFO: ==3537== Releasing lock... [2025-04-10 02:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 02:12:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 23:13:05 [end_date_ymd] => 2025-04-10 02:13:05 [RateCDR] => 1 ) [2025-04-10 02:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 23:13:05' and `end` < '2025-04-10 02:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 02:13:18] Production.INFO: count ==195 [2025-04-10 02:13:18] Production.ERROR: pbx CDR StartTime 2025-04-09 23:13:05 - End Time 2025-04-10 02:13:05 [2025-04-10 02:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873743', 'tblTempUsageDetail_20' ) start [2025-04-10 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873743', 'tblTempUsageDetail_20' ) end [2025-04-10 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873743', 'tblTempVendorCDR_20' ) start [2025-04-10 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873743', 'tblTempVendorCDR_20' ) end [2025-04-10 02:13:18] Production.INFO: ProcessCDR(1,14873743,1,1,2) [2025-04-10 02:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873743', 'tblTempUsageDetail_20' ) start [2025-04-10 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873743', 'tblTempUsageDetail_20' ) end [2025-04-10 02:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 02:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 02:13:22] Production.INFO: ==3607== Releasing lock... [2025-04-10 02:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 02:13:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 02:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 23:14:06 [end_date_ymd] => 2025-04-10 02:14:06 [RateCDR] => 1 ) [2025-04-10 02:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 23:14:06' and `end` < '2025-04-10 02:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 02:14:18] Production.INFO: count ==195 [2025-04-10 02:14:18] Production.ERROR: pbx CDR StartTime 2025-04-09 23:14:06 - End Time 2025-04-10 02:14:06 [2025-04-10 02:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873748', 'tblTempUsageDetail_20' ) start [2025-04-10 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873748', 'tblTempUsageDetail_20' ) end [2025-04-10 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873748', 'tblTempVendorCDR_20' ) start [2025-04-10 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873748', 'tblTempVendorCDR_20' ) end [2025-04-10 02:14:18] Production.INFO: ProcessCDR(1,14873748,1,1,2) [2025-04-10 02:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873748', 'tblTempUsageDetail_20' ) start [2025-04-10 02:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873748', 'tblTempUsageDetail_20' ) end [2025-04-10 02:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 02:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 02:14:22] Production.INFO: ==3719== Releasing lock... [2025-04-10 02:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 02:14:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 02:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 23:15:04 [end_date_ymd] => 2025-04-10 02:15:04 [RateCDR] => 1 ) [2025-04-10 02:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 23:15:04' and `end` < '2025-04-10 02:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 02:15:17] Production.INFO: count ==195 [2025-04-10 02:15:17] Production.ERROR: pbx CDR StartTime 2025-04-09 23:15:04 - End Time 2025-04-10 02:15:04 [2025-04-10 02:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873753', 'tblTempUsageDetail_20' ) start [2025-04-10 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873753', 'tblTempUsageDetail_20' ) end [2025-04-10 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873753', 'tblTempVendorCDR_20' ) start [2025-04-10 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873753', 'tblTempVendorCDR_20' ) end [2025-04-10 02:15:17] Production.INFO: ProcessCDR(1,14873753,1,1,2) [2025-04-10 02:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873753', 'tblTempUsageDetail_20' ) start [2025-04-10 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873753', 'tblTempUsageDetail_20' ) end [2025-04-10 02:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 02:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 02:15:21] Production.INFO: ==3791== Releasing lock... [2025-04-10 02:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 02:15:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 23:16:05 [end_date_ymd] => 2025-04-10 02:16:05 [RateCDR] => 1 ) [2025-04-10 02:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 23:16:05' and `end` < '2025-04-10 02:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 02:16:18] Production.INFO: count ==195 [2025-04-10 02:16:18] Production.ERROR: pbx CDR StartTime 2025-04-09 23:16:05 - End Time 2025-04-10 02:16:05 [2025-04-10 02:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873758', 'tblTempUsageDetail_20' ) start [2025-04-10 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873758', 'tblTempUsageDetail_20' ) end [2025-04-10 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873758', 'tblTempVendorCDR_20' ) start [2025-04-10 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873758', 'tblTempVendorCDR_20' ) end [2025-04-10 02:16:18] Production.INFO: ProcessCDR(1,14873758,1,1,2) [2025-04-10 02:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873758', 'tblTempUsageDetail_20' ) start [2025-04-10 02:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873758', 'tblTempUsageDetail_20' ) end [2025-04-10 02:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 02:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 02:16:22] Production.INFO: ==3866== Releasing lock... [2025-04-10 02:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 02:16:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 02:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 23:17:05 [end_date_ymd] => 2025-04-10 02:17:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 23:17:05' and `end` < '2025-04-10 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-04-10 02:17:18] Production.INFO: count ==195 [2025-04-10 02:17:18] Production.ERROR: pbx CDR StartTime 2025-04-09 23:17:05 - End Time 2025-04-10 02:17:05 [2025-04-10 02:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873763', 'tblTempUsageDetail_20' ) start [2025-04-10 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873763', 'tblTempUsageDetail_20' ) end [2025-04-10 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873763', 'tblTempVendorCDR_20' ) start [2025-04-10 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873763', 'tblTempVendorCDR_20' ) end [2025-04-10 02:17:18] Production.INFO: ProcessCDR(1,14873763,1,1,2) [2025-04-10 02:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873763', 'tblTempUsageDetail_20' ) start [2025-04-10 02:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873763', 'tblTempUsageDetail_20' ) end [2025-04-10 02:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 02:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 02:17:21] Production.INFO: ==3937== Releasing lock... [2025-04-10 02:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 02:17:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 02:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 23:18:06 [end_date_ymd] => 2025-04-10 02:18:06 [RateCDR] => 1 ) [2025-04-10 02:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 23:18:06' and `end` < '2025-04-10 02:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 02:18:18] Production.INFO: count ==195 [2025-04-10 02:18:19] Production.ERROR: pbx CDR StartTime 2025-04-09 23:18:06 - End Time 2025-04-10 02:18:06 [2025-04-10 02:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873768', 'tblTempUsageDetail_20' ) start [2025-04-10 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873768', 'tblTempUsageDetail_20' ) end [2025-04-10 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873768', 'tblTempVendorCDR_20' ) start [2025-04-10 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873768', 'tblTempVendorCDR_20' ) end [2025-04-10 02:18:19] Production.INFO: ProcessCDR(1,14873768,1,1,2) [2025-04-10 02:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873768', 'tblTempUsageDetail_20' ) start [2025-04-10 02:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873768', 'tblTempUsageDetail_20' ) end [2025-04-10 02:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 02:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 02:18:22] Production.INFO: ==4006== Releasing lock... [2025-04-10 02:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 02:18:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 23:19:05 [end_date_ymd] => 2025-04-10 02:19:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 23:19:05' and `end` < '2025-04-10 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-04-10 02:19:18] Production.INFO: count ==195 [2025-04-10 02:19:18] Production.ERROR: pbx CDR StartTime 2025-04-09 23:19:05 - End Time 2025-04-10 02:19:05 [2025-04-10 02:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873773', 'tblTempUsageDetail_20' ) start [2025-04-10 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873773', 'tblTempUsageDetail_20' ) end [2025-04-10 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873773', 'tblTempVendorCDR_20' ) start [2025-04-10 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873773', 'tblTempVendorCDR_20' ) end [2025-04-10 02:19:18] Production.INFO: ProcessCDR(1,14873773,1,1,2) [2025-04-10 02:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873773', 'tblTempUsageDetail_20' ) start [2025-04-10 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873773', 'tblTempUsageDetail_20' ) end [2025-04-10 02:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 02:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 02:19:21] Production.INFO: ==4079== Releasing lock... [2025-04-10 02:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 02:19:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 23:20:06 [end_date_ymd] => 2025-04-10 02:20:06 [RateCDR] => 1 ) [2025-04-10 02:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 23:20:06' and `end` < '2025-04-10 02:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 02:20:18] Production.INFO: count ==203 [2025-04-10 02:20:18] Production.ERROR: pbx CDR StartTime 2025-04-09 23:20:06 - End Time 2025-04-10 02:20:06 [2025-04-10 02:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873778', 'tblTempUsageDetail_20' ) start [2025-04-10 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873778', 'tblTempUsageDetail_20' ) end [2025-04-10 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873778', 'tblTempVendorCDR_20' ) start [2025-04-10 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873778', 'tblTempVendorCDR_20' ) end [2025-04-10 02:20:18] Production.INFO: ProcessCDR(1,14873778,1,1,2) [2025-04-10 02:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873778', 'tblTempUsageDetail_20' ) start [2025-04-10 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873778', 'tblTempUsageDetail_20' ) end [2025-04-10 02:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 02:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 02:20:22] Production.INFO: ==4156== Releasing lock... [2025-04-10 02:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 02:20:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 23:21:05 [end_date_ymd] => 2025-04-10 02:21:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 23:21:05' and `end` < '2025-04-10 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-04-10 02:21:18] Production.INFO: count ==205 [2025-04-10 02:21:18] Production.ERROR: pbx CDR StartTime 2025-04-09 23:21:05 - End Time 2025-04-10 02:21:05 [2025-04-10 02:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873784', 'tblTempUsageDetail_20' ) start [2025-04-10 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873784', 'tblTempUsageDetail_20' ) end [2025-04-10 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873784', 'tblTempVendorCDR_20' ) start [2025-04-10 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873784', 'tblTempVendorCDR_20' ) end [2025-04-10 02:21:18] Production.INFO: ProcessCDR(1,14873784,1,1,2) [2025-04-10 02:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873784', 'tblTempUsageDetail_20' ) start [2025-04-10 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873784', 'tblTempUsageDetail_20' ) end [2025-04-10 02:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 02:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 02:21:21] Production.INFO: ==4228== Releasing lock... [2025-04-10 02:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 02:21:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 02:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 23:22:06 [end_date_ymd] => 2025-04-10 02:22:06 [RateCDR] => 1 ) [2025-04-10 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-04-09 23:22:06' and `end` < '2025-04-10 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-04-10 02:22:18] Production.INFO: count ==207 [2025-04-10 02:22:18] Production.ERROR: pbx CDR StartTime 2025-04-09 23:22:06 - End Time 2025-04-10 02:22:06 [2025-04-10 02:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873789', 'tblTempUsageDetail_20' ) start [2025-04-10 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873789', 'tblTempUsageDetail_20' ) end [2025-04-10 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873789', 'tblTempVendorCDR_20' ) start [2025-04-10 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873789', 'tblTempVendorCDR_20' ) end [2025-04-10 02:22:18] Production.INFO: ProcessCDR(1,14873789,1,1,2) [2025-04-10 02:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873789', 'tblTempUsageDetail_20' ) start [2025-04-10 02:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873789', 'tblTempUsageDetail_20' ) end [2025-04-10 02:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 02:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 02:22:22] Production.INFO: ==4300== Releasing lock... [2025-04-10 02:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 02:22:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-10 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 23:23:05 [end_date_ymd] => 2025-04-10 02:23:05 [RateCDR] => 1 ) [2025-04-10 02:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 23:23:05' and `end` < '2025-04-10 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-04-10 02:23:17] Production.INFO: count ==202 [2025-04-10 02:23:17] Production.ERROR: pbx CDR StartTime 2025-04-09 23:23:05 - End Time 2025-04-10 02:23:05 [2025-04-10 02:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873794', 'tblTempUsageDetail_20' ) start [2025-04-10 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873794', 'tblTempUsageDetail_20' ) end [2025-04-10 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873794', 'tblTempVendorCDR_20' ) start [2025-04-10 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873794', 'tblTempVendorCDR_20' ) end [2025-04-10 02:23:17] Production.INFO: ProcessCDR(1,14873794,1,1,2) [2025-04-10 02:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873794', 'tblTempUsageDetail_20' ) start [2025-04-10 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873794', 'tblTempUsageDetail_20' ) end [2025-04-10 02:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 02:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 02:23:21] Production.INFO: ==4371== Releasing lock... [2025-04-10 02:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 02:23:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 02:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 23:24:06 [end_date_ymd] => 2025-04-10 02:24:06 [RateCDR] => 1 ) [2025-04-10 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-04-09 23:24:06' and `end` < '2025-04-10 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-04-10 02:24:19] Production.INFO: count ==202 [2025-04-10 02:24:19] Production.ERROR: pbx CDR StartTime 2025-04-09 23:24:06 - End Time 2025-04-10 02:24:06 [2025-04-10 02:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873799', 'tblTempUsageDetail_20' ) start [2025-04-10 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873799', 'tblTempUsageDetail_20' ) end [2025-04-10 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873799', 'tblTempVendorCDR_20' ) start [2025-04-10 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873799', 'tblTempVendorCDR_20' ) end [2025-04-10 02:24:19] Production.INFO: ProcessCDR(1,14873799,1,1,2) [2025-04-10 02:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873799', 'tblTempUsageDetail_20' ) start [2025-04-10 02:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873799', 'tblTempUsageDetail_20' ) end [2025-04-10 02:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 02:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 02:24:22] Production.INFO: ==4443== Releasing lock... [2025-04-10 02:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 02:24:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 23:25:05 [end_date_ymd] => 2025-04-10 02:25:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 23:25:05' and `end` < '2025-04-10 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-04-10 02:25:18] Production.INFO: count ==202 [2025-04-10 02:25:18] Production.ERROR: pbx CDR StartTime 2025-04-09 23:25:05 - End Time 2025-04-10 02:25:05 [2025-04-10 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873804', 'tblTempUsageDetail_20' ) start [2025-04-10 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873804', 'tblTempUsageDetail_20' ) end [2025-04-10 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873804', 'tblTempVendorCDR_20' ) start [2025-04-10 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873804', 'tblTempVendorCDR_20' ) end [2025-04-10 02:25:18] Production.INFO: ProcessCDR(1,14873804,1,1,2) [2025-04-10 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873804', 'tblTempUsageDetail_20' ) start [2025-04-10 02:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873804', 'tblTempUsageDetail_20' ) end [2025-04-10 02:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 02:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 02:25:22] Production.INFO: ==4514== Releasing lock... [2025-04-10 02:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 02:25:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 02:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 23:26:04 [end_date_ymd] => 2025-04-10 02:26:04 [RateCDR] => 1 ) [2025-04-10 02:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 23:26:04' and `end` < '2025-04-10 02:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 02:26:17] Production.INFO: count ==201 [2025-04-10 02:26:17] Production.ERROR: pbx CDR StartTime 2025-04-09 23:26:04 - End Time 2025-04-10 02:26:04 [2025-04-10 02:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873809', 'tblTempUsageDetail_20' ) start [2025-04-10 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873809', 'tblTempUsageDetail_20' ) end [2025-04-10 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873809', 'tblTempVendorCDR_20' ) start [2025-04-10 02:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873809', 'tblTempVendorCDR_20' ) end [2025-04-10 02:26:17] Production.INFO: ProcessCDR(1,14873809,1,1,2) [2025-04-10 02:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873809', 'tblTempUsageDetail_20' ) start [2025-04-10 02:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873809', 'tblTempUsageDetail_20' ) end [2025-04-10 02:26:20] Production.ERROR: pbx prc_insertCDR start [2025-04-10 02:26:20] Production.ERROR: pbx prc_insertCDR end [2025-04-10 02:26:20] Production.INFO: ==4591== Releasing lock... [2025-04-10 02:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 02:26:20] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 23:27:05 [end_date_ymd] => 2025-04-10 02:27:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 23:27:05' and `end` < '2025-04-10 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-04-10 02:27:18] Production.INFO: count ==201 [2025-04-10 02:27:18] Production.ERROR: pbx CDR StartTime 2025-04-09 23:27:05 - End Time 2025-04-10 02:27:05 [2025-04-10 02:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873814', 'tblTempUsageDetail_20' ) start [2025-04-10 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873814', 'tblTempUsageDetail_20' ) end [2025-04-10 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873814', 'tblTempVendorCDR_20' ) start [2025-04-10 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873814', 'tblTempVendorCDR_20' ) end [2025-04-10 02:27:18] Production.INFO: ProcessCDR(1,14873814,1,1,2) [2025-04-10 02:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873814', 'tblTempUsageDetail_20' ) start [2025-04-10 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873814', 'tblTempUsageDetail_20' ) end [2025-04-10 02:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 02:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 02:27:21] Production.INFO: ==4664== Releasing lock... [2025-04-10 02:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 02:27:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 02:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 23:28:06 [end_date_ymd] => 2025-04-10 02:28:06 [RateCDR] => 1 ) [2025-04-10 02: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-04-09 23:28:06' and `end` < '2025-04-10 02: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-04-10 02:28:19] Production.INFO: count ==201 [2025-04-10 02:28:19] Production.ERROR: pbx CDR StartTime 2025-04-09 23:28:06 - End Time 2025-04-10 02:28:06 [2025-04-10 02:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873819', 'tblTempUsageDetail_20' ) start [2025-04-10 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873819', 'tblTempUsageDetail_20' ) end [2025-04-10 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873819', 'tblTempVendorCDR_20' ) start [2025-04-10 02:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873819', 'tblTempVendorCDR_20' ) end [2025-04-10 02:28:19] Production.INFO: ProcessCDR(1,14873819,1,1,2) [2025-04-10 02:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873819', 'tblTempUsageDetail_20' ) start [2025-04-10 02:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873819', 'tblTempUsageDetail_20' ) end [2025-04-10 02:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 02:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 02:28:22] Production.INFO: ==4735== Releasing lock... [2025-04-10 02:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 02:28:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 23:29:05 [end_date_ymd] => 2025-04-10 02:29:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 23:29:05' and `end` < '2025-04-10 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-04-10 02:29:17] Production.INFO: count ==200 [2025-04-10 02:29:17] Production.ERROR: pbx CDR StartTime 2025-04-09 23:29:05 - End Time 2025-04-10 02:29:05 [2025-04-10 02:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873824', 'tblTempUsageDetail_20' ) start [2025-04-10 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873824', 'tblTempUsageDetail_20' ) end [2025-04-10 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873824', 'tblTempVendorCDR_20' ) start [2025-04-10 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873824', 'tblTempVendorCDR_20' ) end [2025-04-10 02:29:18] Production.INFO: ProcessCDR(1,14873824,1,1,2) [2025-04-10 02:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873824', 'tblTempUsageDetail_20' ) start [2025-04-10 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873824', 'tblTempUsageDetail_20' ) end [2025-04-10 02:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 02:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 02:29:21] Production.INFO: ==4804== Releasing lock... [2025-04-10 02:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 02:29:21] Production.INFO: 29 MB #Memory Used# [2025-04-10 02:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 23:30:06 [end_date_ymd] => 2025-04-10 02:30:06 [RateCDR] => 1 ) [2025-04-10 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-04-09 23:30:06' and `end` < '2025-04-10 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-04-10 02:30:19] Production.INFO: count ==202 [2025-04-10 02:30:19] Production.ERROR: pbx CDR StartTime 2025-04-09 23:30:06 - End Time 2025-04-10 02:30:06 [2025-04-10 02:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873829', 'tblTempUsageDetail_20' ) start [2025-04-10 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873829', 'tblTempUsageDetail_20' ) end [2025-04-10 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873829', 'tblTempVendorCDR_20' ) start [2025-04-10 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873829', 'tblTempVendorCDR_20' ) end [2025-04-10 02:30:19] Production.INFO: ProcessCDR(1,14873829,1,1,2) [2025-04-10 02:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873829', 'tblTempUsageDetail_20' ) start [2025-04-10 02:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873829', 'tblTempUsageDetail_20' ) end [2025-04-10 02:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 02:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 02:30:22] Production.INFO: ==4922== Releasing lock... [2025-04-10 02:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 02:30:22] Production.INFO: 29 MB #Memory Used# [2025-04-10 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 23:31:05 [end_date_ymd] => 2025-04-10 02:31:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 23:31:05' and `end` < '2025-04-10 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-04-10 02:31:18] Production.INFO: count ==200 [2025-04-10 02:31:18] Production.ERROR: pbx CDR StartTime 2025-04-09 23:31:05 - End Time 2025-04-10 02:31:05 [2025-04-10 02:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873835', 'tblTempUsageDetail_20' ) start [2025-04-10 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873835', 'tblTempUsageDetail_20' ) end [2025-04-10 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873835', 'tblTempVendorCDR_20' ) start [2025-04-10 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873835', 'tblTempVendorCDR_20' ) end [2025-04-10 02:31:18] Production.INFO: ProcessCDR(1,14873835,1,1,2) [2025-04-10 02:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873835', 'tblTempUsageDetail_20' ) start [2025-04-10 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873835', 'tblTempUsageDetail_20' ) end [2025-04-10 02:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 02:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 02:31:21] Production.INFO: ==4995== Releasing lock... [2025-04-10 02:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 02:31:21] Production.INFO: 29 MB #Memory Used# [2025-04-10 02:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 23:32:06 [end_date_ymd] => 2025-04-10 02:32:06 [RateCDR] => 1 ) [2025-04-10 02: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-04-09 23:32:06' and `end` < '2025-04-10 02: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-04-10 02:32:19] Production.INFO: count ==199 [2025-04-10 02:32:19] Production.ERROR: pbx CDR StartTime 2025-04-09 23:32:06 - End Time 2025-04-10 02:32:06 [2025-04-10 02:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873840', 'tblTempUsageDetail_20' ) start [2025-04-10 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873840', 'tblTempUsageDetail_20' ) end [2025-04-10 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873840', 'tblTempVendorCDR_20' ) start [2025-04-10 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873840', 'tblTempVendorCDR_20' ) end [2025-04-10 02:32:19] Production.INFO: ProcessCDR(1,14873840,1,1,2) [2025-04-10 02:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873840', 'tblTempUsageDetail_20' ) start [2025-04-10 02:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873840', 'tblTempUsageDetail_20' ) end [2025-04-10 02:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 02:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 02:32:22] Production.INFO: ==5068== Releasing lock... [2025-04-10 02:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 02:32:22] Production.INFO: 29 MB #Memory Used# [2025-04-10 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 23:33:05 [end_date_ymd] => 2025-04-10 02:33:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 23:33:05' and `end` < '2025-04-10 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-04-10 02:33:18] Production.INFO: count ==200 [2025-04-10 02:33:18] Production.ERROR: pbx CDR StartTime 2025-04-09 23:33:05 - End Time 2025-04-10 02:33:05 [2025-04-10 02:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873845', 'tblTempUsageDetail_20' ) start [2025-04-10 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873845', 'tblTempUsageDetail_20' ) end [2025-04-10 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873845', 'tblTempVendorCDR_20' ) start [2025-04-10 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873845', 'tblTempVendorCDR_20' ) end [2025-04-10 02:33:18] Production.INFO: ProcessCDR(1,14873845,1,1,2) [2025-04-10 02:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873845', 'tblTempUsageDetail_20' ) start [2025-04-10 02:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873845', 'tblTempUsageDetail_20' ) end [2025-04-10 02:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 02:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 02:33:22] Production.INFO: ==5141== Releasing lock... [2025-04-10 02:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 02:33:22] Production.INFO: 29 MB #Memory Used# [2025-04-10 02:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 23:34:06 [end_date_ymd] => 2025-04-10 02:34:06 [RateCDR] => 1 ) [2025-04-10 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-04-09 23:34:06' and `end` < '2025-04-10 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-04-10 02:34:19] Production.INFO: count ==200 [2025-04-10 02:34:19] Production.ERROR: pbx CDR StartTime 2025-04-09 23:34:06 - End Time 2025-04-10 02:34:06 [2025-04-10 02:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873850', 'tblTempUsageDetail_20' ) start [2025-04-10 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873850', 'tblTempUsageDetail_20' ) end [2025-04-10 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873850', 'tblTempVendorCDR_20' ) start [2025-04-10 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873850', 'tblTempVendorCDR_20' ) end [2025-04-10 02:34:19] Production.INFO: ProcessCDR(1,14873850,1,1,2) [2025-04-10 02:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873850', 'tblTempUsageDetail_20' ) start [2025-04-10 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873850', 'tblTempUsageDetail_20' ) end [2025-04-10 02:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 02:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 02:34:22] Production.INFO: ==5212== Releasing lock... [2025-04-10 02:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 02:34:22] Production.INFO: 29 MB #Memory Used# [2025-04-10 02:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 23:35:05 [end_date_ymd] => 2025-04-10 02:35:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 23:35:05' and `end` < '2025-04-10 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-04-10 02:35:18] Production.INFO: count ==202 [2025-04-10 02:35:18] Production.ERROR: pbx CDR StartTime 2025-04-09 23:35:05 - End Time 2025-04-10 02:35:05 [2025-04-10 02:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873855', 'tblTempUsageDetail_20' ) start [2025-04-10 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873855', 'tblTempUsageDetail_20' ) end [2025-04-10 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873855', 'tblTempVendorCDR_20' ) start [2025-04-10 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873855', 'tblTempVendorCDR_20' ) end [2025-04-10 02:35:18] Production.INFO: ProcessCDR(1,14873855,1,1,2) [2025-04-10 02:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873855', 'tblTempUsageDetail_20' ) start [2025-04-10 02:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873855', 'tblTempUsageDetail_20' ) end [2025-04-10 02:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 02:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 02:35:22] Production.INFO: ==5286== Releasing lock... [2025-04-10 02:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 02:35:22] Production.INFO: 29 MB #Memory Used# [2025-04-10 02:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 23:36:06 [end_date_ymd] => 2025-04-10 02:36:06 [RateCDR] => 1 ) [2025-04-10 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-04-09 23:36:06' and `end` < '2025-04-10 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-04-10 02:36:19] Production.INFO: count ==202 [2025-04-10 02:36:20] Production.ERROR: pbx CDR StartTime 2025-04-09 23:36:06 - End Time 2025-04-10 02:36:06 [2025-04-10 02:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 02:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873860', 'tblTempUsageDetail_20' ) start [2025-04-10 02:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873860', 'tblTempUsageDetail_20' ) end [2025-04-10 02:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873860', 'tblTempVendorCDR_20' ) start [2025-04-10 02:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873860', 'tblTempVendorCDR_20' ) end [2025-04-10 02:36:20] Production.INFO: ProcessCDR(1,14873860,1,1,2) [2025-04-10 02:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873860', 'tblTempUsageDetail_20' ) start [2025-04-10 02:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873860', 'tblTempUsageDetail_20' ) end [2025-04-10 02:36:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 02:36:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 02:36:24] Production.INFO: ==5357== Releasing lock... [2025-04-10 02:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 02:36:24] Production.INFO: 29 MB #Memory Used# [2025-04-10 02:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 23:37:05 [end_date_ymd] => 2025-04-10 02:37:05 [RateCDR] => 1 ) [2025-04-10 02:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 23:37:05' and `end` < '2025-04-10 02:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 02:37:18] Production.INFO: count ==201 [2025-04-10 02:37:18] Production.ERROR: pbx CDR StartTime 2025-04-09 23:37:05 - End Time 2025-04-10 02:37:05 [2025-04-10 02:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873865', 'tblTempUsageDetail_20' ) start [2025-04-10 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873865', 'tblTempUsageDetail_20' ) end [2025-04-10 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873865', 'tblTempVendorCDR_20' ) start [2025-04-10 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873865', 'tblTempVendorCDR_20' ) end [2025-04-10 02:37:18] Production.INFO: ProcessCDR(1,14873865,1,1,2) [2025-04-10 02:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873865', 'tblTempUsageDetail_20' ) start [2025-04-10 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873865', 'tblTempUsageDetail_20' ) end [2025-04-10 02:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 02:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 02:37:22] Production.INFO: ==5427== Releasing lock... [2025-04-10 02:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 02:37:22] Production.INFO: 29 MB #Memory Used# [2025-04-10 02:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 23:38:06 [end_date_ymd] => 2025-04-10 02:38:06 [RateCDR] => 1 ) [2025-04-10 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-04-09 23:38:06' and `end` < '2025-04-10 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-04-10 02:38:19] Production.INFO: count ==200 [2025-04-10 02:38:19] Production.ERROR: pbx CDR StartTime 2025-04-09 23:38:06 - End Time 2025-04-10 02:38:06 [2025-04-10 02:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873870', 'tblTempUsageDetail_20' ) start [2025-04-10 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873870', 'tblTempUsageDetail_20' ) end [2025-04-10 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873870', 'tblTempVendorCDR_20' ) start [2025-04-10 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873870', 'tblTempVendorCDR_20' ) end [2025-04-10 02:38:19] Production.INFO: ProcessCDR(1,14873870,1,1,2) [2025-04-10 02:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873870', 'tblTempUsageDetail_20' ) start [2025-04-10 02:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873870', 'tblTempUsageDetail_20' ) end [2025-04-10 02:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 02:38:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 02:38:23] Production.INFO: ==5503== Releasing lock... [2025-04-10 02:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 02:38:23] Production.INFO: 29 MB #Memory Used# [2025-04-10 02:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 23:39:06 [end_date_ymd] => 2025-04-10 02:39:06 [RateCDR] => 1 ) [2025-04-10 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-04-09 23:39:06' and `end` < '2025-04-10 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-04-10 02:39:19] Production.INFO: count ==199 [2025-04-10 02:39:19] Production.ERROR: pbx CDR StartTime 2025-04-09 23:39:06 - End Time 2025-04-10 02:39:06 [2025-04-10 02:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 02:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873875', 'tblTempUsageDetail_20' ) start [2025-04-10 02:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873875', 'tblTempUsageDetail_20' ) end [2025-04-10 02:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873875', 'tblTempVendorCDR_20' ) start [2025-04-10 02:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873875', 'tblTempVendorCDR_20' ) end [2025-04-10 02:39:19] Production.INFO: ProcessCDR(1,14873875,1,1,2) [2025-04-10 02:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873875', 'tblTempUsageDetail_20' ) start [2025-04-10 02:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873875', 'tblTempUsageDetail_20' ) end [2025-04-10 02:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 02:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 02:39:22] Production.INFO: ==5574== Releasing lock... [2025-04-10 02:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 02:39:22] Production.INFO: 29 MB #Memory Used# [2025-04-10 02:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 23:40:07 [end_date_ymd] => 2025-04-10 02:40:07 [RateCDR] => 1 ) [2025-04-10 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-04-09 23:40:07' and `end` < '2025-04-10 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-04-10 02:40:20] Production.INFO: count ==201 [2025-04-10 02:40:20] Production.ERROR: pbx CDR StartTime 2025-04-09 23:40:07 - End Time 2025-04-10 02:40:07 [2025-04-10 02:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873881', 'tblTempUsageDetail_20' ) start [2025-04-10 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873881', 'tblTempUsageDetail_20' ) end [2025-04-10 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873881', 'tblTempVendorCDR_20' ) start [2025-04-10 02:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873881', 'tblTempVendorCDR_20' ) end [2025-04-10 02:40:20] Production.INFO: ProcessCDR(1,14873881,1,1,2) [2025-04-10 02:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873881', 'tblTempUsageDetail_20' ) start [2025-04-10 02:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873881', 'tblTempUsageDetail_20' ) end [2025-04-10 02:40:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 02:40:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 02:40:24] Production.INFO: ==5646== Releasing lock... [2025-04-10 02:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 02:40:24] Production.INFO: 29 MB #Memory Used# [2025-04-10 02:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 23:41:05 [end_date_ymd] => 2025-04-10 02:41:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 23:41:05' and `end` < '2025-04-10 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-04-10 02:41:18] Production.INFO: count ==201 [2025-04-10 02:41:18] Production.ERROR: pbx CDR StartTime 2025-04-09 23:41:05 - End Time 2025-04-10 02:41:05 [2025-04-10 02:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873886', 'tblTempUsageDetail_20' ) start [2025-04-10 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873886', 'tblTempUsageDetail_20' ) end [2025-04-10 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873886', 'tblTempVendorCDR_20' ) start [2025-04-10 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873886', 'tblTempVendorCDR_20' ) end [2025-04-10 02:41:18] Production.INFO: ProcessCDR(1,14873886,1,1,2) [2025-04-10 02:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873886', 'tblTempUsageDetail_20' ) start [2025-04-10 02:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873886', 'tblTempUsageDetail_20' ) end [2025-04-10 02:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 02:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 02:41:22] Production.INFO: ==5720== Releasing lock... [2025-04-10 02:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 02:41:22] Production.INFO: 29 MB #Memory Used# [2025-04-10 02:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 23:42:05 [end_date_ymd] => 2025-04-10 02:42:05 [RateCDR] => 1 ) [2025-04-10 02:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 23:42:05' and `end` < '2025-04-10 02:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 02:42:18] Production.INFO: count ==201 [2025-04-10 02:42:18] Production.ERROR: pbx CDR StartTime 2025-04-09 23:42:05 - End Time 2025-04-10 02:42:05 [2025-04-10 02:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873887', 'tblTempUsageDetail_20' ) start [2025-04-10 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873887', 'tblTempUsageDetail_20' ) end [2025-04-10 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873887', 'tblTempVendorCDR_20' ) start [2025-04-10 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873887', 'tblTempVendorCDR_20' ) end [2025-04-10 02:42:18] Production.INFO: ProcessCDR(1,14873887,1,1,2) [2025-04-10 02:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873887', 'tblTempUsageDetail_20' ) start [2025-04-10 02:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873887', 'tblTempUsageDetail_20' ) end [2025-04-10 02:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 02:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 02:42:22] Production.INFO: ==5791== Releasing lock... [2025-04-10 02:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 02:42:22] Production.INFO: 29 MB #Memory Used# [2025-04-10 02:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 23:43:06 [end_date_ymd] => 2025-04-10 02:43:06 [RateCDR] => 1 ) [2025-04-10 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-04-09 23:43:06' and `end` < '2025-04-10 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-04-10 02:43:19] Production.INFO: count ==203 [2025-04-10 02:43:19] Production.ERROR: pbx CDR StartTime 2025-04-09 23:43:06 - End Time 2025-04-10 02:43:06 [2025-04-10 02:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 02:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873896', 'tblTempUsageDetail_20' ) start [2025-04-10 02:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873896', 'tblTempUsageDetail_20' ) end [2025-04-10 02:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873896', 'tblTempVendorCDR_20' ) start [2025-04-10 02:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873896', 'tblTempVendorCDR_20' ) end [2025-04-10 02:43:19] Production.INFO: ProcessCDR(1,14873896,1,1,2) [2025-04-10 02:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873896', 'tblTempUsageDetail_20' ) start [2025-04-10 02:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873896', 'tblTempUsageDetail_20' ) end [2025-04-10 02:43:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 02:43:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 02:43:23] Production.INFO: ==5869== Releasing lock... [2025-04-10 02:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 02:43:23] Production.INFO: 29 MB #Memory Used# [2025-04-10 02:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 23:44:05 [end_date_ymd] => 2025-04-10 02:44:05 [RateCDR] => 1 ) [2025-04-10 02:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 23:44:05' and `end` < '2025-04-10 02:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 02:44:18] Production.INFO: count ==203 [2025-04-10 02:44:18] Production.ERROR: pbx CDR StartTime 2025-04-09 23:44:05 - End Time 2025-04-10 02:44:05 [2025-04-10 02:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873901', 'tblTempUsageDetail_20' ) start [2025-04-10 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873901', 'tblTempUsageDetail_20' ) end [2025-04-10 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873901', 'tblTempVendorCDR_20' ) start [2025-04-10 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873901', 'tblTempVendorCDR_20' ) end [2025-04-10 02:44:18] Production.INFO: ProcessCDR(1,14873901,1,1,2) [2025-04-10 02:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873901', 'tblTempUsageDetail_20' ) start [2025-04-10 02:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873901', 'tblTempUsageDetail_20' ) end [2025-04-10 02:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 02:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 02:44:22] Production.INFO: ==5940== Releasing lock... [2025-04-10 02:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 02:44:22] Production.INFO: 29 MB #Memory Used# [2025-04-10 02:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 23:45:06 [end_date_ymd] => 2025-04-10 02:45:06 [RateCDR] => 1 ) [2025-04-10 02:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 23:45:06' and `end` < '2025-04-10 02:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 02:45:19] Production.INFO: count ==203 [2025-04-10 02:45:19] Production.ERROR: pbx CDR StartTime 2025-04-09 23:45:06 - End Time 2025-04-10 02:45:06 [2025-04-10 02:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 02:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873906', 'tblTempUsageDetail_20' ) start [2025-04-10 02:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873906', 'tblTempUsageDetail_20' ) end [2025-04-10 02:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873906', 'tblTempVendorCDR_20' ) start [2025-04-10 02:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873906', 'tblTempVendorCDR_20' ) end [2025-04-10 02:45:19] Production.INFO: ProcessCDR(1,14873906,1,1,2) [2025-04-10 02:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873906', 'tblTempUsageDetail_20' ) start [2025-04-10 02:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873906', 'tblTempUsageDetail_20' ) end [2025-04-10 02:45:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 02:45:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 02:45:25] Production.INFO: ==6050== Releasing lock... [2025-04-10 02:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 02:45:25] Production.INFO: 29 MB #Memory Used# [2025-04-10 02:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 23:46:05 [end_date_ymd] => 2025-04-10 02:46:05 [RateCDR] => 1 ) [2025-04-10 02:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 23:46:05' and `end` < '2025-04-10 02:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 02:46:18] Production.INFO: count ==211 [2025-04-10 02:46:18] Production.ERROR: pbx CDR StartTime 2025-04-09 23:46:05 - End Time 2025-04-10 02:46:05 [2025-04-10 02:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873911', 'tblTempUsageDetail_20' ) start [2025-04-10 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873911', 'tblTempUsageDetail_20' ) end [2025-04-10 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873911', 'tblTempVendorCDR_20' ) start [2025-04-10 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873911', 'tblTempVendorCDR_20' ) end [2025-04-10 02:46:18] Production.INFO: ProcessCDR(1,14873911,1,1,2) [2025-04-10 02:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873911', 'tblTempUsageDetail_20' ) start [2025-04-10 02:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873911', 'tblTempUsageDetail_20' ) end [2025-04-10 02:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 02:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 02:46:22] Production.INFO: ==6120== Releasing lock... [2025-04-10 02:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 02:46:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 02:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 23:47:06 [end_date_ymd] => 2025-04-10 02:47:06 [RateCDR] => 1 ) [2025-04-10 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-04-09 23:47:06' and `end` < '2025-04-10 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-04-10 02:47:19] Production.INFO: count ==212 [2025-04-10 02:47:19] Production.ERROR: pbx CDR StartTime 2025-04-09 23:47:06 - End Time 2025-04-10 02:47:06 [2025-04-10 02:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873916', 'tblTempUsageDetail_20' ) start [2025-04-10 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873916', 'tblTempUsageDetail_20' ) end [2025-04-10 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873916', 'tblTempVendorCDR_20' ) start [2025-04-10 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873916', 'tblTempVendorCDR_20' ) end [2025-04-10 02:47:19] Production.INFO: ProcessCDR(1,14873916,1,1,2) [2025-04-10 02:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873916', 'tblTempUsageDetail_20' ) start [2025-04-10 02:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873916', 'tblTempUsageDetail_20' ) end [2025-04-10 02:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 02:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 02:47:22] Production.INFO: ==6191== Releasing lock... [2025-04-10 02:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 02:47:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-10 02:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 23:48:05 [end_date_ymd] => 2025-04-10 02:48:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 23:48:05' and `end` < '2025-04-10 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-04-10 02:48:18] Production.INFO: count ==210 [2025-04-10 02:48:18] Production.ERROR: pbx CDR StartTime 2025-04-09 23:48:05 - End Time 2025-04-10 02:48:05 [2025-04-10 02:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873921', 'tblTempUsageDetail_20' ) start [2025-04-10 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873921', 'tblTempUsageDetail_20' ) end [2025-04-10 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873921', 'tblTempVendorCDR_20' ) start [2025-04-10 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873921', 'tblTempVendorCDR_20' ) end [2025-04-10 02:48:18] Production.INFO: ProcessCDR(1,14873921,1,1,2) [2025-04-10 02:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873921', 'tblTempUsageDetail_20' ) start [2025-04-10 02:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873921', 'tblTempUsageDetail_20' ) end [2025-04-10 02:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 02:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 02:48:22] Production.INFO: ==6261== Releasing lock... [2025-04-10 02:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 02:48:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 02:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 23:49:06 [end_date_ymd] => 2025-04-10 02:49:06 [RateCDR] => 1 ) [2025-04-10 02:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 23:49:06' and `end` < '2025-04-10 02:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 02:49:19] Production.INFO: count ==210 [2025-04-10 02:49:19] Production.ERROR: pbx CDR StartTime 2025-04-09 23:49:06 - End Time 2025-04-10 02:49:06 [2025-04-10 02:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 02:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873926', 'tblTempUsageDetail_20' ) start [2025-04-10 02:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873926', 'tblTempUsageDetail_20' ) end [2025-04-10 02:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873926', 'tblTempVendorCDR_20' ) start [2025-04-10 02:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873926', 'tblTempVendorCDR_20' ) end [2025-04-10 02:49:19] Production.INFO: ProcessCDR(1,14873926,1,1,2) [2025-04-10 02:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873926', 'tblTempUsageDetail_20' ) start [2025-04-10 02:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873926', 'tblTempUsageDetail_20' ) end [2025-04-10 02:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 02:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 02:49:22] Production.INFO: ==6334== Releasing lock... [2025-04-10 02:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 02:49:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 02:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 23:50:06 [end_date_ymd] => 2025-04-10 02:50:06 [RateCDR] => 1 ) [2025-04-10 02:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 23:50:06' and `end` < '2025-04-10 02:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 02:50:19] Production.INFO: count ==218 [2025-04-10 02:50:19] Production.ERROR: pbx CDR StartTime 2025-04-09 23:50:06 - End Time 2025-04-10 02:50:06 [2025-04-10 02:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873932', 'tblTempUsageDetail_20' ) start [2025-04-10 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873932', 'tblTempUsageDetail_20' ) end [2025-04-10 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873932', 'tblTempVendorCDR_20' ) start [2025-04-10 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873932', 'tblTempVendorCDR_20' ) end [2025-04-10 02:50:19] Production.INFO: ProcessCDR(1,14873932,1,1,2) [2025-04-10 02:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873932', 'tblTempUsageDetail_20' ) start [2025-04-10 02:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873932', 'tblTempUsageDetail_20' ) end [2025-04-10 02:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 02:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 02:50:23] Production.INFO: ==6407== Releasing lock... [2025-04-10 02:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 02:50:23] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 02:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 23:51:05 [end_date_ymd] => 2025-04-10 02:51:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 23:51:05' and `end` < '2025-04-10 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-04-10 02:51:18] Production.INFO: count ==218 [2025-04-10 02:51:18] Production.ERROR: pbx CDR StartTime 2025-04-09 23:51:05 - End Time 2025-04-10 02:51:05 [2025-04-10 02:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873937', 'tblTempUsageDetail_20' ) start [2025-04-10 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873937', 'tblTempUsageDetail_20' ) end [2025-04-10 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873937', 'tblTempVendorCDR_20' ) start [2025-04-10 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873937', 'tblTempVendorCDR_20' ) end [2025-04-10 02:51:18] Production.INFO: ProcessCDR(1,14873937,1,1,2) [2025-04-10 02:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873937', 'tblTempUsageDetail_20' ) start [2025-04-10 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873937', 'tblTempUsageDetail_20' ) end [2025-04-10 02:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 02:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 02:51:22] Production.INFO: ==6479== Releasing lock... [2025-04-10 02:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 02:51:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 02:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 23:52:06 [end_date_ymd] => 2025-04-10 02:52:06 [RateCDR] => 1 ) [2025-04-10 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-04-09 23:52:06' and `end` < '2025-04-10 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-04-10 02:52:18] Production.INFO: count ==217 [2025-04-10 02:52:18] Production.ERROR: pbx CDR StartTime 2025-04-09 23:52:06 - End Time 2025-04-10 02:52:06 [2025-04-10 02:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873942', 'tblTempUsageDetail_20' ) start [2025-04-10 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873942', 'tblTempUsageDetail_20' ) end [2025-04-10 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873942', 'tblTempVendorCDR_20' ) start [2025-04-10 02:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873942', 'tblTempVendorCDR_20' ) end [2025-04-10 02:52:18] Production.INFO: ProcessCDR(1,14873942,1,1,2) [2025-04-10 02:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873942', 'tblTempUsageDetail_20' ) start [2025-04-10 02:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873942', 'tblTempUsageDetail_20' ) end [2025-04-10 02:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 02:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 02:52:23] Production.INFO: ==6552== Releasing lock... [2025-04-10 02:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 02:52:23] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 02:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 23:53:06 [end_date_ymd] => 2025-04-10 02:53:06 [RateCDR] => 1 ) [2025-04-10 02: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-04-09 23:53:06' and `end` < '2025-04-10 02: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-04-10 02:53:19] Production.INFO: count ==217 [2025-04-10 02:53:19] Production.ERROR: pbx CDR StartTime 2025-04-09 23:53:06 - End Time 2025-04-10 02:53:06 [2025-04-10 02:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873947', 'tblTempUsageDetail_20' ) start [2025-04-10 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873947', 'tblTempUsageDetail_20' ) end [2025-04-10 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873947', 'tblTempVendorCDR_20' ) start [2025-04-10 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873947', 'tblTempVendorCDR_20' ) end [2025-04-10 02:53:19] Production.INFO: ProcessCDR(1,14873947,1,1,2) [2025-04-10 02:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873947', 'tblTempUsageDetail_20' ) start [2025-04-10 02:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873947', 'tblTempUsageDetail_20' ) end [2025-04-10 02:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 02:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 02:53:23] Production.INFO: ==6629== Releasing lock... [2025-04-10 02:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 02:53:23] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 02:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 23:54:06 [end_date_ymd] => 2025-04-10 02:54:06 [RateCDR] => 1 ) [2025-04-10 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-04-09 23:54:06' and `end` < '2025-04-10 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-04-10 02:54:19] Production.INFO: count ==217 [2025-04-10 02:54:19] Production.ERROR: pbx CDR StartTime 2025-04-09 23:54:06 - End Time 2025-04-10 02:54:06 [2025-04-10 02:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873952', 'tblTempUsageDetail_20' ) start [2025-04-10 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873952', 'tblTempUsageDetail_20' ) end [2025-04-10 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873952', 'tblTempVendorCDR_20' ) start [2025-04-10 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873952', 'tblTempVendorCDR_20' ) end [2025-04-10 02:54:19] Production.INFO: ProcessCDR(1,14873952,1,1,2) [2025-04-10 02:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873952', 'tblTempUsageDetail_20' ) start [2025-04-10 02:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873952', 'tblTempUsageDetail_20' ) end [2025-04-10 02:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 02:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 02:54:22] Production.INFO: ==6699== Releasing lock... [2025-04-10 02:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 02:54:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 02:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 23:55:05 [end_date_ymd] => 2025-04-10 02:55:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 23:55:05' and `end` < '2025-04-10 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-04-10 02:55:18] Production.INFO: count ==219 [2025-04-10 02:55:18] Production.ERROR: pbx CDR StartTime 2025-04-09 23:55:05 - End Time 2025-04-10 02:55:05 [2025-04-10 02:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873957', 'tblTempUsageDetail_20' ) start [2025-04-10 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873957', 'tblTempUsageDetail_20' ) end [2025-04-10 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873957', 'tblTempVendorCDR_20' ) start [2025-04-10 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873957', 'tblTempVendorCDR_20' ) end [2025-04-10 02:55:18] Production.INFO: ProcessCDR(1,14873957,1,1,2) [2025-04-10 02:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873957', 'tblTempUsageDetail_20' ) start [2025-04-10 02:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873957', 'tblTempUsageDetail_20' ) end [2025-04-10 02:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 02:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 02:55:22] Production.INFO: ==6771== Releasing lock... [2025-04-10 02:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 02:55:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 02:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 23:56:06 [end_date_ymd] => 2025-04-10 02:56:06 [RateCDR] => 1 ) [2025-04-10 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-04-09 23:56:06' and `end` < '2025-04-10 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-04-10 02:56:19] Production.INFO: count ==217 [2025-04-10 02:56:19] Production.ERROR: pbx CDR StartTime 2025-04-09 23:56:06 - End Time 2025-04-10 02:56:06 [2025-04-10 02:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873962', 'tblTempUsageDetail_20' ) start [2025-04-10 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873962', 'tblTempUsageDetail_20' ) end [2025-04-10 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873962', 'tblTempVendorCDR_20' ) start [2025-04-10 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873962', 'tblTempVendorCDR_20' ) end [2025-04-10 02:56:19] Production.INFO: ProcessCDR(1,14873962,1,1,2) [2025-04-10 02:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873962', 'tblTempUsageDetail_20' ) start [2025-04-10 02:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873962', 'tblTempUsageDetail_20' ) end [2025-04-10 02:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 02:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 02:56:23] Production.INFO: ==6841== Releasing lock... [2025-04-10 02:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 02:56:23] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 02:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 23:57:05 [end_date_ymd] => 2025-04-10 02:57:05 [RateCDR] => 1 ) [2025-04-10 02:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-09 23:57:05' and `end` < '2025-04-10 02:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 02:57:18] Production.INFO: count ==217 [2025-04-10 02:57:18] Production.ERROR: pbx CDR StartTime 2025-04-09 23:57:05 - End Time 2025-04-10 02:57:05 [2025-04-10 02:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873967', 'tblTempUsageDetail_20' ) start [2025-04-10 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873967', 'tblTempUsageDetail_20' ) end [2025-04-10 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873967', 'tblTempVendorCDR_20' ) start [2025-04-10 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873967', 'tblTempVendorCDR_20' ) end [2025-04-10 02:57:18] Production.INFO: ProcessCDR(1,14873967,1,1,2) [2025-04-10 02:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873967', 'tblTempUsageDetail_20' ) start [2025-04-10 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873967', 'tblTempUsageDetail_20' ) end [2025-04-10 02:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 02:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 02:57:22] Production.INFO: ==6922== Releasing lock... [2025-04-10 02:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 02:57:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 02:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 23:58:06 [end_date_ymd] => 2025-04-10 02:58:06 [RateCDR] => 1 ) [2025-04-10 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-04-09 23:58:06' and `end` < '2025-04-10 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-04-10 02:58:19] Production.INFO: count ==217 [2025-04-10 02:58:19] Production.ERROR: pbx CDR StartTime 2025-04-09 23:58:06 - End Time 2025-04-10 02:58:06 [2025-04-10 02:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873972', 'tblTempUsageDetail_20' ) start [2025-04-10 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873972', 'tblTempUsageDetail_20' ) end [2025-04-10 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873972', 'tblTempVendorCDR_20' ) start [2025-04-10 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873972', 'tblTempVendorCDR_20' ) end [2025-04-10 02:58:19] Production.INFO: ProcessCDR(1,14873972,1,1,2) [2025-04-10 02:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873972', 'tblTempUsageDetail_20' ) start [2025-04-10 02:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873972', 'tblTempUsageDetail_20' ) end [2025-04-10 02:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 02:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 02:58:23] Production.INFO: ==6993== Releasing lock... [2025-04-10 02:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 02:58:23] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 02:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-09 23:59:05 [end_date_ymd] => 2025-04-10 02:59:05 [RateCDR] => 1 ) [2025-04-10 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-04-09 23:59:05' and `end` < '2025-04-10 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-04-10 02:59:18] Production.INFO: count ==217 [2025-04-10 02:59:18] Production.ERROR: pbx CDR StartTime 2025-04-09 23:59:05 - End Time 2025-04-10 02:59:05 [2025-04-10 02:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873977', 'tblTempUsageDetail_20' ) start [2025-04-10 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873977', 'tblTempUsageDetail_20' ) end [2025-04-10 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873977', 'tblTempVendorCDR_20' ) start [2025-04-10 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873977', 'tblTempVendorCDR_20' ) end [2025-04-10 02:59:18] Production.INFO: ProcessCDR(1,14873977,1,1,2) [2025-04-10 02:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 02:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 02:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873977', 'tblTempUsageDetail_20' ) start [2025-04-10 02:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873977', 'tblTempUsageDetail_20' ) end [2025-04-10 02:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 02:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 02:59:22] Production.INFO: ==7067== Releasing lock... [2025-04-10 02:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 02:59:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 00:00:06 [end_date_ymd] => 2025-04-10 03:00:06 [RateCDR] => 1 ) [2025-04-10 03:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 00:00:06' and `end` < '2025-04-10 03:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 03:00:19] Production.INFO: count ==217 [2025-04-10 03:00:19] Production.ERROR: pbx CDR StartTime 2025-04-10 00:00:06 - End Time 2025-04-10 03:00:06 [2025-04-10 03:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873982', 'tblTempUsageDetail_20' ) start [2025-04-10 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873982', 'tblTempUsageDetail_20' ) end [2025-04-10 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873982', 'tblTempVendorCDR_20' ) start [2025-04-10 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873982', 'tblTempVendorCDR_20' ) end [2025-04-10 03:00:19] Production.INFO: ProcessCDR(1,14873982,1,1,2) [2025-04-10 03:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873982', 'tblTempUsageDetail_20' ) start [2025-04-10 03:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873982', 'tblTempUsageDetail_20' ) end [2025-04-10 03:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 03:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 03:00:23] Production.INFO: ==7141== Releasing lock... [2025-04-10 03:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 03:00:23] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 03:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 00:01:05 [end_date_ymd] => 2025-04-10 03:01:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 00:01:05' and `end` < '2025-04-10 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-04-10 03:01:18] Production.INFO: count ==215 [2025-04-10 03:01:18] Production.ERROR: pbx CDR StartTime 2025-04-10 00:01:05 - End Time 2025-04-10 03:01:05 [2025-04-10 03:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873988', 'tblTempUsageDetail_20' ) start [2025-04-10 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873988', 'tblTempUsageDetail_20' ) end [2025-04-10 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873988', 'tblTempVendorCDR_20' ) start [2025-04-10 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873988', 'tblTempVendorCDR_20' ) end [2025-04-10 03:01:18] Production.INFO: ProcessCDR(1,14873988,1,1,2) [2025-04-10 03:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873988', 'tblTempUsageDetail_20' ) start [2025-04-10 03:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873988', 'tblTempUsageDetail_20' ) end [2025-04-10 03:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 03:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 03:01:22] Production.INFO: ==7266== Releasing lock... [2025-04-10 03:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 03:01:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 00:02:05 [end_date_ymd] => 2025-04-10 03:02:05 [RateCDR] => 1 ) [2025-04-10 03:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 00:02:05' and `end` < '2025-04-10 03:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 03:02:18] Production.INFO: count ==214 [2025-04-10 03:02:18] Production.ERROR: pbx CDR StartTime 2025-04-10 00:02:05 - End Time 2025-04-10 03:02:05 [2025-04-10 03:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873993', 'tblTempUsageDetail_20' ) start [2025-04-10 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873993', 'tblTempUsageDetail_20' ) end [2025-04-10 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873993', 'tblTempVendorCDR_20' ) start [2025-04-10 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873993', 'tblTempVendorCDR_20' ) end [2025-04-10 03:02:18] Production.INFO: ProcessCDR(1,14873993,1,1,2) [2025-04-10 03:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873993', 'tblTempUsageDetail_20' ) start [2025-04-10 03:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873993', 'tblTempUsageDetail_20' ) end [2025-04-10 03:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 03:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 03:02:22] Production.INFO: ==7415== Releasing lock... [2025-04-10 03:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 03:02:22] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 00:03:05 [end_date_ymd] => 2025-04-10 03:03:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 00:03:05' and `end` < '2025-04-10 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-04-10 03:03:18] Production.INFO: count ==210 [2025-04-10 03:03:18] Production.ERROR: pbx CDR StartTime 2025-04-10 00:03:05 - End Time 2025-04-10 03:03:05 [2025-04-10 03:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873998', 'tblTempUsageDetail_20' ) start [2025-04-10 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14873998', 'tblTempUsageDetail_20' ) end [2025-04-10 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873998', 'tblTempVendorCDR_20' ) start [2025-04-10 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14873998', 'tblTempVendorCDR_20' ) end [2025-04-10 03:03:18] Production.INFO: ProcessCDR(1,14873998,1,1,2) [2025-04-10 03:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14873998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14873998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14873998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14873998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873998', 'tblTempUsageDetail_20' ) start [2025-04-10 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14873998', 'tblTempUsageDetail_20' ) end [2025-04-10 03:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 03:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 03:03:21] Production.INFO: ==7489== Releasing lock... [2025-04-10 03:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 03:03:21] Production.INFO: 29 MB #Memory Used# [2025-04-10 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 00:04:05 [end_date_ymd] => 2025-04-10 03:04:05 [RateCDR] => 1 ) [2025-04-10 03:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 00:04:05' and `end` < '2025-04-10 03:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 03:04:18] Production.INFO: count ==206 [2025-04-10 03:04:18] Production.ERROR: pbx CDR StartTime 2025-04-10 00:04:05 - End Time 2025-04-10 03:04:05 [2025-04-10 03:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874003', 'tblTempUsageDetail_20' ) start [2025-04-10 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874003', 'tblTempUsageDetail_20' ) end [2025-04-10 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874003', 'tblTempVendorCDR_20' ) start [2025-04-10 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874003', 'tblTempVendorCDR_20' ) end [2025-04-10 03:04:18] Production.INFO: ProcessCDR(1,14874003,1,1,2) [2025-04-10 03:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874003', 'tblTempUsageDetail_20' ) start [2025-04-10 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874003', 'tblTempUsageDetail_20' ) end [2025-04-10 03:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 03:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 03:04:22] Production.INFO: ==7561== Releasing lock... [2025-04-10 03:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 03:04:22] Production.INFO: 29 MB #Memory Used# [2025-04-10 03:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 00:05:04 [end_date_ymd] => 2025-04-10 03:05:04 [RateCDR] => 1 ) [2025-04-10 03: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-04-10 00:05:04' and `end` < '2025-04-10 03: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-04-10 03:05:17] Production.INFO: count ==204 [2025-04-10 03:05:17] Production.ERROR: pbx CDR StartTime 2025-04-10 00:05:04 - End Time 2025-04-10 03:05:04 [2025-04-10 03:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874008', 'tblTempUsageDetail_20' ) start [2025-04-10 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874008', 'tblTempUsageDetail_20' ) end [2025-04-10 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874008', 'tblTempVendorCDR_20' ) start [2025-04-10 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874008', 'tblTempVendorCDR_20' ) end [2025-04-10 03:05:17] Production.INFO: ProcessCDR(1,14874008,1,1,2) [2025-04-10 03:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874008', 'tblTempUsageDetail_20' ) start [2025-04-10 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874008', 'tblTempUsageDetail_20' ) end [2025-04-10 03:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 03:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 03:05:21] Production.INFO: ==7641== Releasing lock... [2025-04-10 03:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 03:05:21] Production.INFO: 29 MB #Memory Used# [2025-04-10 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 00:06:05 [end_date_ymd] => 2025-04-10 03:06:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 00:06:05' and `end` < '2025-04-10 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-04-10 03:06:18] Production.INFO: count ==203 [2025-04-10 03:06:18] Production.ERROR: pbx CDR StartTime 2025-04-10 00:06:05 - End Time 2025-04-10 03:06:05 [2025-04-10 03:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874013', 'tblTempUsageDetail_20' ) start [2025-04-10 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874013', 'tblTempUsageDetail_20' ) end [2025-04-10 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874013', 'tblTempVendorCDR_20' ) start [2025-04-10 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874013', 'tblTempVendorCDR_20' ) end [2025-04-10 03:06:18] Production.INFO: ProcessCDR(1,14874013,1,1,2) [2025-04-10 03:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874013', 'tblTempUsageDetail_20' ) start [2025-04-10 03:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874013', 'tblTempUsageDetail_20' ) end [2025-04-10 03:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 03:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 03:06:22] Production.INFO: ==7812== Releasing lock... [2025-04-10 03:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 03:06:22] Production.INFO: 29 MB #Memory Used# [2025-04-10 03:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 00:07:04 [end_date_ymd] => 2025-04-10 03:07:04 [RateCDR] => 1 ) [2025-04-10 03:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 00:07:04' and `end` < '2025-04-10 03:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 03:07:17] Production.INFO: count ==203 [2025-04-10 03:07:17] Production.ERROR: pbx CDR StartTime 2025-04-10 00:07:04 - End Time 2025-04-10 03:07:04 [2025-04-10 03:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874018', 'tblTempUsageDetail_20' ) start [2025-04-10 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874018', 'tblTempUsageDetail_20' ) end [2025-04-10 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874018', 'tblTempVendorCDR_20' ) start [2025-04-10 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874018', 'tblTempVendorCDR_20' ) end [2025-04-10 03:07:17] Production.INFO: ProcessCDR(1,14874018,1,1,2) [2025-04-10 03:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874018', 'tblTempUsageDetail_20' ) start [2025-04-10 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874018', 'tblTempUsageDetail_20' ) end [2025-04-10 03:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 03:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 03:07:21] Production.INFO: ==7885== Releasing lock... [2025-04-10 03:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 03:07:21] Production.INFO: 29 MB #Memory Used# [2025-04-10 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 00:08:05 [end_date_ymd] => 2025-04-10 03:08:05 [RateCDR] => 1 ) [2025-04-10 03:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 00:08:05' and `end` < '2025-04-10 03:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 03:08:18] Production.INFO: count ==203 [2025-04-10 03:08:18] Production.ERROR: pbx CDR StartTime 2025-04-10 00:08:05 - End Time 2025-04-10 03:08:05 [2025-04-10 03:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874023', 'tblTempUsageDetail_20' ) start [2025-04-10 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874023', 'tblTempUsageDetail_20' ) end [2025-04-10 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874023', 'tblTempVendorCDR_20' ) start [2025-04-10 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874023', 'tblTempVendorCDR_20' ) end [2025-04-10 03:08:18] Production.INFO: ProcessCDR(1,14874023,1,1,2) [2025-04-10 03:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874023', 'tblTempUsageDetail_20' ) start [2025-04-10 03:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874023', 'tblTempUsageDetail_20' ) end [2025-04-10 03:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 03:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 03:08:22] Production.INFO: ==7954== Releasing lock... [2025-04-10 03:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 03:08:22] Production.INFO: 29 MB #Memory Used# [2025-04-10 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 00:09:05 [end_date_ymd] => 2025-04-10 03:09:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 00:09:05' and `end` < '2025-04-10 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-04-10 03:09:18] Production.INFO: count ==203 [2025-04-10 03:09:18] Production.ERROR: pbx CDR StartTime 2025-04-10 00:09:05 - End Time 2025-04-10 03:09:05 [2025-04-10 03:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874028', 'tblTempUsageDetail_20' ) start [2025-04-10 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874028', 'tblTempUsageDetail_20' ) end [2025-04-10 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874028', 'tblTempVendorCDR_20' ) start [2025-04-10 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874028', 'tblTempVendorCDR_20' ) end [2025-04-10 03:09:18] Production.INFO: ProcessCDR(1,14874028,1,1,2) [2025-04-10 03:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874028', 'tblTempUsageDetail_20' ) start [2025-04-10 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874028', 'tblTempUsageDetail_20' ) end [2025-04-10 03:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 03:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 03:09:21] Production.INFO: ==8103== Releasing lock... [2025-04-10 03:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 03:09:21] Production.INFO: 29 MB #Memory Used# [2025-04-10 03:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 00:10:06 [end_date_ymd] => 2025-04-10 03:10:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 00:10:06' and `end` < '2025-04-10 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-04-10 03:10:19] Production.INFO: count ==193 [2025-04-10 03:10:19] Production.ERROR: pbx CDR StartTime 2025-04-10 00:10:06 - End Time 2025-04-10 03:10:06 [2025-04-10 03:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874034', 'tblTempUsageDetail_20' ) start [2025-04-10 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874034', 'tblTempUsageDetail_20' ) end [2025-04-10 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874034', 'tblTempVendorCDR_20' ) start [2025-04-10 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874034', 'tblTempVendorCDR_20' ) end [2025-04-10 03:10:19] Production.INFO: ProcessCDR(1,14874034,1,1,2) [2025-04-10 03:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874034', 'tblTempUsageDetail_20' ) start [2025-04-10 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874034', 'tblTempUsageDetail_20' ) end [2025-04-10 03:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 03:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 03:10:22] Production.INFO: ==8175== Releasing lock... [2025-04-10 03:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 03:10:22] Production.INFO: 29 MB #Memory Used# [2025-04-10 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 00:11:05 [end_date_ymd] => 2025-04-10 03:11:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 00:11:05' and `end` < '2025-04-10 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-04-10 03:11:18] Production.INFO: count ==183 [2025-04-10 03:11:18] Production.ERROR: pbx CDR StartTime 2025-04-10 00:11:05 - End Time 2025-04-10 03:11:05 [2025-04-10 03:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874039', 'tblTempUsageDetail_20' ) start [2025-04-10 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874039', 'tblTempUsageDetail_20' ) end [2025-04-10 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874039', 'tblTempVendorCDR_20' ) start [2025-04-10 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874039', 'tblTempVendorCDR_20' ) end [2025-04-10 03:11:18] Production.INFO: ProcessCDR(1,14874039,1,1,2) [2025-04-10 03:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874039', 'tblTempUsageDetail_20' ) start [2025-04-10 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874039', 'tblTempUsageDetail_20' ) end [2025-04-10 03:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 03:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 03:11:21] Production.INFO: ==8255== Releasing lock... [2025-04-10 03:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 03:11:21] Production.INFO: 29 MB #Memory Used# [2025-04-10 03:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 00:12:06 [end_date_ymd] => 2025-04-10 03:12:06 [RateCDR] => 1 ) [2025-04-10 03: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-04-10 00:12:06' and `end` < '2025-04-10 03: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-04-10 03:12:19] Production.INFO: count ==182 [2025-04-10 03:12:19] Production.ERROR: pbx CDR StartTime 2025-04-10 00:12:06 - End Time 2025-04-10 03:12:06 [2025-04-10 03:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874044', 'tblTempUsageDetail_20' ) start [2025-04-10 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874044', 'tblTempUsageDetail_20' ) end [2025-04-10 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874044', 'tblTempVendorCDR_20' ) start [2025-04-10 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874044', 'tblTempVendorCDR_20' ) end [2025-04-10 03:12:19] Production.INFO: ProcessCDR(1,14874044,1,1,2) [2025-04-10 03:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874044', 'tblTempUsageDetail_20' ) start [2025-04-10 03:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874044', 'tblTempUsageDetail_20' ) end [2025-04-10 03:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 03:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 03:12:22] Production.INFO: ==8328== Releasing lock... [2025-04-10 03:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 03:12:22] Production.INFO: 29 MB #Memory Used# [2025-04-10 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 00:13:05 [end_date_ymd] => 2025-04-10 03:13:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 00:13:05' and `end` < '2025-04-10 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-04-10 03:13:17] Production.INFO: count ==182 [2025-04-10 03:13:17] Production.ERROR: pbx CDR StartTime 2025-04-10 00:13:05 - End Time 2025-04-10 03:13:05 [2025-04-10 03:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874049', 'tblTempUsageDetail_20' ) start [2025-04-10 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874049', 'tblTempUsageDetail_20' ) end [2025-04-10 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874049', 'tblTempVendorCDR_20' ) start [2025-04-10 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874049', 'tblTempVendorCDR_20' ) end [2025-04-10 03:13:17] Production.INFO: ProcessCDR(1,14874049,1,1,2) [2025-04-10 03:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874049', 'tblTempUsageDetail_20' ) start [2025-04-10 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874049', 'tblTempUsageDetail_20' ) end [2025-04-10 03:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 03:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 03:13:21] Production.INFO: ==8478== Releasing lock... [2025-04-10 03:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 03:13:21] Production.INFO: 29 MB #Memory Used# [2025-04-10 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 00:14:05 [end_date_ymd] => 2025-04-10 03:14:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 00:14:05' and `end` < '2025-04-10 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-04-10 03:14:18] Production.INFO: count ==182 [2025-04-10 03:14:18] Production.ERROR: pbx CDR StartTime 2025-04-10 00:14:05 - End Time 2025-04-10 03:14:05 [2025-04-10 03:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874054', 'tblTempUsageDetail_20' ) start [2025-04-10 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874054', 'tblTempUsageDetail_20' ) end [2025-04-10 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874054', 'tblTempVendorCDR_20' ) start [2025-04-10 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874054', 'tblTempVendorCDR_20' ) end [2025-04-10 03:14:18] Production.INFO: ProcessCDR(1,14874054,1,1,2) [2025-04-10 03:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874054', 'tblTempUsageDetail_20' ) start [2025-04-10 03:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874054', 'tblTempUsageDetail_20' ) end [2025-04-10 03:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 03:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 03:14:22] Production.INFO: ==8559== Releasing lock... [2025-04-10 03:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 03:14:22] Production.INFO: 29 MB #Memory Used# [2025-04-10 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 00:15:05 [end_date_ymd] => 2025-04-10 03:15:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 00:15:05' and `end` < '2025-04-10 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-04-10 03:15:18] Production.INFO: count ==182 [2025-04-10 03:15:18] Production.ERROR: pbx CDR StartTime 2025-04-10 00:15:05 - End Time 2025-04-10 03:15:05 [2025-04-10 03:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874059', 'tblTempUsageDetail_20' ) start [2025-04-10 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874059', 'tblTempUsageDetail_20' ) end [2025-04-10 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874059', 'tblTempVendorCDR_20' ) start [2025-04-10 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874059', 'tblTempVendorCDR_20' ) end [2025-04-10 03:15:18] Production.INFO: ProcessCDR(1,14874059,1,1,2) [2025-04-10 03:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874059', 'tblTempUsageDetail_20' ) start [2025-04-10 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874059', 'tblTempUsageDetail_20' ) end [2025-04-10 03:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 03:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 03:15:21] Production.INFO: ==8630== Releasing lock... [2025-04-10 03:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 03:15:21] Production.INFO: 29 MB #Memory Used# [2025-04-10 03:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 00:16:06 [end_date_ymd] => 2025-04-10 03:16:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 00:16:06' and `end` < '2025-04-10 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-04-10 03:16:18] Production.INFO: count ==182 [2025-04-10 03:16:18] Production.ERROR: pbx CDR StartTime 2025-04-10 00:16:06 - End Time 2025-04-10 03:16:06 [2025-04-10 03:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874064', 'tblTempUsageDetail_20' ) start [2025-04-10 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874064', 'tblTempUsageDetail_20' ) end [2025-04-10 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874064', 'tblTempVendorCDR_20' ) start [2025-04-10 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874064', 'tblTempVendorCDR_20' ) end [2025-04-10 03:16:18] Production.INFO: ProcessCDR(1,14874064,1,1,2) [2025-04-10 03:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874064', 'tblTempUsageDetail_20' ) start [2025-04-10 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874064', 'tblTempUsageDetail_20' ) end [2025-04-10 03:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 03:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 03:16:22] Production.INFO: ==8742== Releasing lock... [2025-04-10 03:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 03:16:22] Production.INFO: 29 MB #Memory Used# [2025-04-10 03:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 00:17:04 [end_date_ymd] => 2025-04-10 03:17:04 [RateCDR] => 1 ) [2025-04-10 03:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 00:17:04' and `end` < '2025-04-10 03:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 03:17:17] Production.INFO: count ==184 [2025-04-10 03:17:17] Production.ERROR: pbx CDR StartTime 2025-04-10 00:17:04 - End Time 2025-04-10 03:17:04 [2025-04-10 03:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874069', 'tblTempUsageDetail_20' ) start [2025-04-10 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874069', 'tblTempUsageDetail_20' ) end [2025-04-10 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874069', 'tblTempVendorCDR_20' ) start [2025-04-10 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874069', 'tblTempVendorCDR_20' ) end [2025-04-10 03:17:17] Production.INFO: ProcessCDR(1,14874069,1,1,2) [2025-04-10 03:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874069', 'tblTempUsageDetail_20' ) start [2025-04-10 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874069', 'tblTempUsageDetail_20' ) end [2025-04-10 03:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 03:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 03:17:21] Production.INFO: ==8812== Releasing lock... [2025-04-10 03:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 03:17:21] Production.INFO: 29 MB #Memory Used# [2025-04-10 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 00:18:05 [end_date_ymd] => 2025-04-10 03:18:05 [RateCDR] => 1 ) [2025-04-10 03:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 00:18:05' and `end` < '2025-04-10 03:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 03:18:18] Production.INFO: count ==184 [2025-04-10 03:18:18] Production.ERROR: pbx CDR StartTime 2025-04-10 00:18:05 - End Time 2025-04-10 03:18:05 [2025-04-10 03:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874074', 'tblTempUsageDetail_20' ) start [2025-04-10 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874074', 'tblTempUsageDetail_20' ) end [2025-04-10 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874074', 'tblTempVendorCDR_20' ) start [2025-04-10 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874074', 'tblTempVendorCDR_20' ) end [2025-04-10 03:18:18] Production.INFO: ProcessCDR(1,14874074,1,1,2) [2025-04-10 03:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874074', 'tblTempUsageDetail_20' ) start [2025-04-10 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874074', 'tblTempUsageDetail_20' ) end [2025-04-10 03:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 03:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 03:18:21] Production.INFO: ==8967== Releasing lock... [2025-04-10 03:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 03:18:21] Production.INFO: 29 MB #Memory Used# [2025-04-10 03:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 00:19:06 [end_date_ymd] => 2025-04-10 03:19:06 [RateCDR] => 1 ) [2025-04-10 03: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-04-10 00:19:06' and `end` < '2025-04-10 03: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-04-10 03:19:18] Production.INFO: count ==184 [2025-04-10 03:19:18] Production.ERROR: pbx CDR StartTime 2025-04-10 00:19:06 - End Time 2025-04-10 03:19:06 [2025-04-10 03:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874079', 'tblTempUsageDetail_20' ) start [2025-04-10 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874079', 'tblTempUsageDetail_20' ) end [2025-04-10 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874079', 'tblTempVendorCDR_20' ) start [2025-04-10 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874079', 'tblTempVendorCDR_20' ) end [2025-04-10 03:19:18] Production.INFO: ProcessCDR(1,14874079,1,1,2) [2025-04-10 03:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874079', 'tblTempUsageDetail_20' ) start [2025-04-10 03:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874079', 'tblTempUsageDetail_20' ) end [2025-04-10 03:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 03:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 03:19:22] Production.INFO: ==9040== Releasing lock... [2025-04-10 03:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 03:19:22] Production.INFO: 29 MB #Memory Used# [2025-04-10 03:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 00:20:05 [end_date_ymd] => 2025-04-10 03:20:05 [RateCDR] => 1 ) [2025-04-10 03: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-04-10 00:20:05' and `end` < '2025-04-10 03: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-04-10 03:20:18] Production.INFO: count ==184 [2025-04-10 03:20:18] Production.ERROR: pbx CDR StartTime 2025-04-10 00:20:05 - End Time 2025-04-10 03:20:05 [2025-04-10 03:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874085', 'tblTempUsageDetail_20' ) start [2025-04-10 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874085', 'tblTempUsageDetail_20' ) end [2025-04-10 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874085', 'tblTempVendorCDR_20' ) start [2025-04-10 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874085', 'tblTempVendorCDR_20' ) end [2025-04-10 03:20:18] Production.INFO: ProcessCDR(1,14874085,1,1,2) [2025-04-10 03:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874085', 'tblTempUsageDetail_20' ) start [2025-04-10 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874085', 'tblTempUsageDetail_20' ) end [2025-04-10 03:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 03:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 03:20:22] Production.INFO: ==9116== Releasing lock... [2025-04-10 03:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 03:20:22] Production.INFO: 29 MB #Memory Used# [2025-04-10 03:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 00:21:06 [end_date_ymd] => 2025-04-10 03:21:06 [RateCDR] => 1 ) [2025-04-10 03: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-04-10 00:21:06' and `end` < '2025-04-10 03: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-04-10 03:21:19] Production.INFO: count ==184 [2025-04-10 03:21:19] Production.ERROR: pbx CDR StartTime 2025-04-10 00:21:06 - End Time 2025-04-10 03:21:06 [2025-04-10 03:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 03:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874090', 'tblTempUsageDetail_20' ) start [2025-04-10 03:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874090', 'tblTempUsageDetail_20' ) end [2025-04-10 03:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874090', 'tblTempVendorCDR_20' ) start [2025-04-10 03:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874090', 'tblTempVendorCDR_20' ) end [2025-04-10 03:21:19] Production.INFO: ProcessCDR(1,14874090,1,1,2) [2025-04-10 03:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874090', 'tblTempUsageDetail_20' ) start [2025-04-10 03:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874090', 'tblTempUsageDetail_20' ) end [2025-04-10 03:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 03:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 03:21:22] Production.INFO: ==9188== Releasing lock... [2025-04-10 03:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 03:21:22] Production.INFO: 29 MB #Memory Used# [2025-04-10 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 00:22:05 [end_date_ymd] => 2025-04-10 03:22:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 00:22:05' and `end` < '2025-04-10 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-04-10 03:22:17] Production.INFO: count ==181 [2025-04-10 03:22:18] Production.ERROR: pbx CDR StartTime 2025-04-10 00:22:05 - End Time 2025-04-10 03:22:05 [2025-04-10 03:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874095', 'tblTempUsageDetail_20' ) start [2025-04-10 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874095', 'tblTempUsageDetail_20' ) end [2025-04-10 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874095', 'tblTempVendorCDR_20' ) start [2025-04-10 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874095', 'tblTempVendorCDR_20' ) end [2025-04-10 03:22:18] Production.INFO: ProcessCDR(1,14874095,1,1,2) [2025-04-10 03:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874095', 'tblTempUsageDetail_20' ) start [2025-04-10 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874095', 'tblTempUsageDetail_20' ) end [2025-04-10 03:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 03:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 03:22:21] Production.INFO: ==9260== Releasing lock... [2025-04-10 03:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 03:22:21] Production.INFO: 29 MB #Memory Used# [2025-04-10 03:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 00:23:05 [end_date_ymd] => 2025-04-10 03:23:05 [RateCDR] => 1 ) [2025-04-10 03:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 00:23:05' and `end` < '2025-04-10 03:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 03:23:18] Production.INFO: count ==181 [2025-04-10 03:23:18] Production.ERROR: pbx CDR StartTime 2025-04-10 00:23:05 - End Time 2025-04-10 03:23:05 [2025-04-10 03:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874100', 'tblTempUsageDetail_20' ) start [2025-04-10 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874100', 'tblTempUsageDetail_20' ) end [2025-04-10 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874100', 'tblTempVendorCDR_20' ) start [2025-04-10 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874100', 'tblTempVendorCDR_20' ) end [2025-04-10 03:23:18] Production.INFO: ProcessCDR(1,14874100,1,1,2) [2025-04-10 03:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874100', 'tblTempUsageDetail_20' ) start [2025-04-10 03:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874100', 'tblTempUsageDetail_20' ) end [2025-04-10 03:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 03:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 03:23:22] Production.INFO: ==9335== Releasing lock... [2025-04-10 03:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 03:23:22] Production.INFO: 29 MB #Memory Used# [2025-04-10 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 00:24:05 [end_date_ymd] => 2025-04-10 03:24:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 00:24:05' and `end` < '2025-04-10 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-04-10 03:24:18] Production.INFO: count ==181 [2025-04-10 03:24:18] Production.ERROR: pbx CDR StartTime 2025-04-10 00:24:05 - End Time 2025-04-10 03:24:05 [2025-04-10 03:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874105', 'tblTempUsageDetail_20' ) start [2025-04-10 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874105', 'tblTempUsageDetail_20' ) end [2025-04-10 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874105', 'tblTempVendorCDR_20' ) start [2025-04-10 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874105', 'tblTempVendorCDR_20' ) end [2025-04-10 03:24:18] Production.INFO: ProcessCDR(1,14874105,1,1,2) [2025-04-10 03:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874105', 'tblTempUsageDetail_20' ) start [2025-04-10 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874105', 'tblTempUsageDetail_20' ) end [2025-04-10 03:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 03:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 03:24:21] Production.INFO: ==9415== Releasing lock... [2025-04-10 03:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 03:24:21] Production.INFO: 29 MB #Memory Used# [2025-04-10 03:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 00:25:06 [end_date_ymd] => 2025-04-10 03:25:06 [RateCDR] => 1 ) [2025-04-10 03: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-04-10 00:25:06' and `end` < '2025-04-10 03: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-04-10 03:25:18] Production.INFO: count ==181 [2025-04-10 03:25:18] Production.ERROR: pbx CDR StartTime 2025-04-10 00:25:06 - End Time 2025-04-10 03:25:06 [2025-04-10 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874110', 'tblTempUsageDetail_20' ) start [2025-04-10 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874110', 'tblTempUsageDetail_20' ) end [2025-04-10 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874110', 'tblTempVendorCDR_20' ) start [2025-04-10 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874110', 'tblTempVendorCDR_20' ) end [2025-04-10 03:25:18] Production.INFO: ProcessCDR(1,14874110,1,1,2) [2025-04-10 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874110', 'tblTempUsageDetail_20' ) start [2025-04-10 03:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874110', 'tblTempUsageDetail_20' ) end [2025-04-10 03:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 03:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 03:25:22] Production.INFO: ==9487== Releasing lock... [2025-04-10 03:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 03:25:22] Production.INFO: 29 MB #Memory Used# [2025-04-10 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 00:26:05 [end_date_ymd] => 2025-04-10 03:26:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 00:26:05' and `end` < '2025-04-10 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-04-10 03:26:17] Production.INFO: count ==181 [2025-04-10 03:26:18] Production.ERROR: pbx CDR StartTime 2025-04-10 00:26:05 - End Time 2025-04-10 03:26:05 [2025-04-10 03:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874115', 'tblTempUsageDetail_20' ) start [2025-04-10 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874115', 'tblTempUsageDetail_20' ) end [2025-04-10 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874115', 'tblTempVendorCDR_20' ) start [2025-04-10 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874115', 'tblTempVendorCDR_20' ) end [2025-04-10 03:26:18] Production.INFO: ProcessCDR(1,14874115,1,1,2) [2025-04-10 03:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874115', 'tblTempUsageDetail_20' ) start [2025-04-10 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874115', 'tblTempUsageDetail_20' ) end [2025-04-10 03:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 03:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 03:26:21] Production.INFO: ==9557== Releasing lock... [2025-04-10 03:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 03:26:21] Production.INFO: 29 MB #Memory Used# [2025-04-10 03:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 00:27:06 [end_date_ymd] => 2025-04-10 03:27:06 [RateCDR] => 1 ) [2025-04-10 03: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-04-10 00:27:06' and `end` < '2025-04-10 03: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-04-10 03:27:18] Production.INFO: count ==181 [2025-04-10 03:27:18] Production.ERROR: pbx CDR StartTime 2025-04-10 00:27:06 - End Time 2025-04-10 03:27:06 [2025-04-10 03:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874120', 'tblTempUsageDetail_20' ) start [2025-04-10 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874120', 'tblTempUsageDetail_20' ) end [2025-04-10 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874120', 'tblTempVendorCDR_20' ) start [2025-04-10 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874120', 'tblTempVendorCDR_20' ) end [2025-04-10 03:27:18] Production.INFO: ProcessCDR(1,14874120,1,1,2) [2025-04-10 03:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874120', 'tblTempUsageDetail_20' ) start [2025-04-10 03:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874120', 'tblTempUsageDetail_20' ) end [2025-04-10 03:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 03:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 03:27:22] Production.INFO: ==9630== Releasing lock... [2025-04-10 03:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 03:27:22] Production.INFO: 29 MB #Memory Used# [2025-04-10 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 00:28:05 [end_date_ymd] => 2025-04-10 03:28:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 00:28:05' and `end` < '2025-04-10 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-04-10 03:28:18] Production.INFO: count ==181 [2025-04-10 03:28:18] Production.ERROR: pbx CDR StartTime 2025-04-10 00:28:05 - End Time 2025-04-10 03:28:05 [2025-04-10 03:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874125', 'tblTempUsageDetail_20' ) start [2025-04-10 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874125', 'tblTempUsageDetail_20' ) end [2025-04-10 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874125', 'tblTempVendorCDR_20' ) start [2025-04-10 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874125', 'tblTempVendorCDR_20' ) end [2025-04-10 03:28:18] Production.INFO: ProcessCDR(1,14874125,1,1,2) [2025-04-10 03:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874125', 'tblTempUsageDetail_20' ) start [2025-04-10 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874125', 'tblTempUsageDetail_20' ) end [2025-04-10 03:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 03:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 03:28:21] Production.INFO: ==9702== Releasing lock... [2025-04-10 03:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 03:28:21] Production.INFO: 29 MB #Memory Used# [2025-04-10 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 00:29:05 [end_date_ymd] => 2025-04-10 03:29:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 00:29:05' and `end` < '2025-04-10 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-04-10 03:29:18] Production.INFO: count ==181 [2025-04-10 03:29:18] Production.ERROR: pbx CDR StartTime 2025-04-10 00:29:05 - End Time 2025-04-10 03:29:05 [2025-04-10 03:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874130', 'tblTempUsageDetail_20' ) start [2025-04-10 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874130', 'tblTempUsageDetail_20' ) end [2025-04-10 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874130', 'tblTempVendorCDR_20' ) start [2025-04-10 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874130', 'tblTempVendorCDR_20' ) end [2025-04-10 03:29:18] Production.INFO: ProcessCDR(1,14874130,1,1,2) [2025-04-10 03:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874130', 'tblTempUsageDetail_20' ) start [2025-04-10 03:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874130', 'tblTempUsageDetail_20' ) end [2025-04-10 03:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 03:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 03:29:22] Production.INFO: ==9777== Releasing lock... [2025-04-10 03:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 03:29:22] Production.INFO: 29 MB #Memory Used# [2025-04-10 03:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 00:30:06 [end_date_ymd] => 2025-04-10 03:30:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 00:30:06' and `end` < '2025-04-10 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-04-10 03:30:19] Production.INFO: count ==173 [2025-04-10 03:30:19] Production.ERROR: pbx CDR StartTime 2025-04-10 00:30:06 - End Time 2025-04-10 03:30:06 [2025-04-10 03:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874136', 'tblTempUsageDetail_20' ) start [2025-04-10 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874136', 'tblTempUsageDetail_20' ) end [2025-04-10 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874136', 'tblTempVendorCDR_20' ) start [2025-04-10 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874136', 'tblTempVendorCDR_20' ) end [2025-04-10 03:30:19] Production.INFO: ProcessCDR(1,14874136,1,1,2) [2025-04-10 03:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874136', 'tblTempUsageDetail_20' ) start [2025-04-10 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874136', 'tblTempUsageDetail_20' ) end [2025-04-10 03:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 03:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 03:30:22] Production.INFO: ==9849== Releasing lock... [2025-04-10 03:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 03:30:22] Production.INFO: 29 MB #Memory Used# [2025-04-10 03:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 00:31:05 [end_date_ymd] => 2025-04-10 03:31:05 [RateCDR] => 1 ) [2025-04-10 03:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 00:31:05' and `end` < '2025-04-10 03:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 03:31:18] Production.INFO: count ==163 [2025-04-10 03:31:18] Production.ERROR: pbx CDR StartTime 2025-04-10 00:31:05 - End Time 2025-04-10 03:31:05 [2025-04-10 03:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874141', 'tblTempUsageDetail_20' ) start [2025-04-10 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874141', 'tblTempUsageDetail_20' ) end [2025-04-10 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874141', 'tblTempVendorCDR_20' ) start [2025-04-10 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874141', 'tblTempVendorCDR_20' ) end [2025-04-10 03:31:18] Production.INFO: ProcessCDR(1,14874141,1,1,2) [2025-04-10 03:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874141', 'tblTempUsageDetail_20' ) start [2025-04-10 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874141', 'tblTempUsageDetail_20' ) end [2025-04-10 03:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 03:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 03:31:22] Production.INFO: ==9924== Releasing lock... [2025-04-10 03:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 03:31:22] Production.INFO: 29 MB #Memory Used# [2025-04-10 03:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 00:32:05 [end_date_ymd] => 2025-04-10 03:32:05 [RateCDR] => 1 ) [2025-04-10 03:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 00:32:05' and `end` < '2025-04-10 03:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 03:32:18] Production.INFO: count ==163 [2025-04-10 03:32:18] Production.ERROR: pbx CDR StartTime 2025-04-10 00:32:05 - End Time 2025-04-10 03:32:05 [2025-04-10 03:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874146', 'tblTempUsageDetail_20' ) start [2025-04-10 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874146', 'tblTempUsageDetail_20' ) end [2025-04-10 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874146', 'tblTempVendorCDR_20' ) start [2025-04-10 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874146', 'tblTempVendorCDR_20' ) end [2025-04-10 03:32:18] Production.INFO: ProcessCDR(1,14874146,1,1,2) [2025-04-10 03:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874146', 'tblTempUsageDetail_20' ) start [2025-04-10 03:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874146', 'tblTempUsageDetail_20' ) end [2025-04-10 03:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 03:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 03:32:21] Production.INFO: ==10000== Releasing lock... [2025-04-10 03:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 03:32:21] Production.INFO: 29 MB #Memory Used# [2025-04-10 03:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 00:33:05 [end_date_ymd] => 2025-04-10 03:33:05 [RateCDR] => 1 ) [2025-04-10 03:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 00:33:05' and `end` < '2025-04-10 03:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 03:33:18] Production.INFO: count ==163 [2025-04-10 03:33:18] Production.ERROR: pbx CDR StartTime 2025-04-10 00:33:05 - End Time 2025-04-10 03:33:05 [2025-04-10 03:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874151', 'tblTempUsageDetail_20' ) start [2025-04-10 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874151', 'tblTempUsageDetail_20' ) end [2025-04-10 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874151', 'tblTempVendorCDR_20' ) start [2025-04-10 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874151', 'tblTempVendorCDR_20' ) end [2025-04-10 03:33:18] Production.INFO: ProcessCDR(1,14874151,1,1,2) [2025-04-10 03:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874151', 'tblTempUsageDetail_20' ) start [2025-04-10 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874151', 'tblTempUsageDetail_20' ) end [2025-04-10 03:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 03:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 03:33:22] Production.INFO: ==10111== Releasing lock... [2025-04-10 03:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 03:33:22] Production.INFO: 29 MB #Memory Used# [2025-04-10 03:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 00:34:05 [end_date_ymd] => 2025-04-10 03:34:05 [RateCDR] => 1 ) [2025-04-10 03:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 00:34:05' and `end` < '2025-04-10 03:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 03:34:18] Production.INFO: count ==163 [2025-04-10 03:34:18] Production.ERROR: pbx CDR StartTime 2025-04-10 00:34:05 - End Time 2025-04-10 03:34:05 [2025-04-10 03:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874156', 'tblTempUsageDetail_20' ) start [2025-04-10 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874156', 'tblTempUsageDetail_20' ) end [2025-04-10 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874156', 'tblTempVendorCDR_20' ) start [2025-04-10 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874156', 'tblTempVendorCDR_20' ) end [2025-04-10 03:34:18] Production.INFO: ProcessCDR(1,14874156,1,1,2) [2025-04-10 03:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874156', 'tblTempUsageDetail_20' ) start [2025-04-10 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874156', 'tblTempUsageDetail_20' ) end [2025-04-10 03:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 03:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 03:34:22] Production.INFO: ==10184== Releasing lock... [2025-04-10 03:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 03:34:22] Production.INFO: 29 MB #Memory Used# [2025-04-10 03:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 00:35:05 [end_date_ymd] => 2025-04-10 03:35:05 [RateCDR] => 1 ) [2025-04-10 03:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 00:35:05' and `end` < '2025-04-10 03:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 03:35:18] Production.INFO: count ==241 [2025-04-10 03:35:18] Production.ERROR: pbx CDR StartTime 2025-04-10 00:35:05 - End Time 2025-04-10 03:35:05 [2025-04-10 03:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874161', 'tblTempUsageDetail_20' ) start [2025-04-10 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874161', 'tblTempUsageDetail_20' ) end [2025-04-10 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874161', 'tblTempVendorCDR_20' ) start [2025-04-10 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874161', 'tblTempVendorCDR_20' ) end [2025-04-10 03:35:18] Production.INFO: ProcessCDR(1,14874161,1,1,2) [2025-04-10 03:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874161', 'tblTempUsageDetail_20' ) start [2025-04-10 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874161', 'tblTempUsageDetail_20' ) end [2025-04-10 03:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 03:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 03:35:22] Production.INFO: ==10254== Releasing lock... [2025-04-10 03:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 03:35:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-10 03:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 00:36:05 [end_date_ymd] => 2025-04-10 03:36:05 [RateCDR] => 1 ) [2025-04-10 03: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-04-10 00:36:05' and `end` < '2025-04-10 03: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-04-10 03:36:18] Production.INFO: count ==241 [2025-04-10 03:36:18] Production.ERROR: pbx CDR StartTime 2025-04-10 00:36:05 - End Time 2025-04-10 03:36:05 [2025-04-10 03:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874166', 'tblTempUsageDetail_20' ) start [2025-04-10 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874166', 'tblTempUsageDetail_20' ) end [2025-04-10 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874166', 'tblTempVendorCDR_20' ) start [2025-04-10 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874166', 'tblTempVendorCDR_20' ) end [2025-04-10 03:36:18] Production.INFO: ProcessCDR(1,14874166,1,1,2) [2025-04-10 03:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874166', 'tblTempUsageDetail_20' ) start [2025-04-10 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874166', 'tblTempUsageDetail_20' ) end [2025-04-10 03:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 03:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 03:36:21] Production.INFO: ==10327== Releasing lock... [2025-04-10 03:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 03:36:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-10 03:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 00:37:05 [end_date_ymd] => 2025-04-10 03:37:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 00:37:05' and `end` < '2025-04-10 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-04-10 03:37:18] Production.INFO: count ==241 [2025-04-10 03:37:18] Production.ERROR: pbx CDR StartTime 2025-04-10 00:37:05 - End Time 2025-04-10 03:37:05 [2025-04-10 03:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874171', 'tblTempUsageDetail_20' ) start [2025-04-10 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874171', 'tblTempUsageDetail_20' ) end [2025-04-10 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874171', 'tblTempVendorCDR_20' ) start [2025-04-10 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874171', 'tblTempVendorCDR_20' ) end [2025-04-10 03:37:18] Production.INFO: ProcessCDR(1,14874171,1,1,2) [2025-04-10 03:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874171', 'tblTempUsageDetail_20' ) start [2025-04-10 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874171', 'tblTempUsageDetail_20' ) end [2025-04-10 03:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 03:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 03:37:22] Production.INFO: ==10400== Releasing lock... [2025-04-10 03:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 03:37:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-10 03:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 00:38:05 [end_date_ymd] => 2025-04-10 03:38:05 [RateCDR] => 1 ) [2025-04-10 03:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 00:38:05' and `end` < '2025-04-10 03:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 03:38:17] Production.INFO: count ==241 [2025-04-10 03:38:18] Production.ERROR: pbx CDR StartTime 2025-04-10 00:38:05 - End Time 2025-04-10 03:38:05 [2025-04-10 03:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874176', 'tblTempUsageDetail_20' ) start [2025-04-10 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874176', 'tblTempUsageDetail_20' ) end [2025-04-10 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874176', 'tblTempVendorCDR_20' ) start [2025-04-10 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874176', 'tblTempVendorCDR_20' ) end [2025-04-10 03:38:18] Production.INFO: ProcessCDR(1,14874176,1,1,2) [2025-04-10 03:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874176', 'tblTempUsageDetail_20' ) start [2025-04-10 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874176', 'tblTempUsageDetail_20' ) end [2025-04-10 03:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 03:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 03:38:21] Production.INFO: ==10480== Releasing lock... [2025-04-10 03:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 03:38:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-10 03:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 00:39:05 [end_date_ymd] => 2025-04-10 03:39:05 [RateCDR] => 1 ) [2025-04-10 03:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 00:39:05' and `end` < '2025-04-10 03:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 03:39:18] Production.INFO: count ==241 [2025-04-10 03:39:18] Production.ERROR: pbx CDR StartTime 2025-04-10 00:39:05 - End Time 2025-04-10 03:39:05 [2025-04-10 03:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874181', 'tblTempUsageDetail_20' ) start [2025-04-10 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874181', 'tblTempUsageDetail_20' ) end [2025-04-10 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874181', 'tblTempVendorCDR_20' ) start [2025-04-10 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874181', 'tblTempVendorCDR_20' ) end [2025-04-10 03:39:18] Production.INFO: ProcessCDR(1,14874181,1,1,2) [2025-04-10 03:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874181', 'tblTempUsageDetail_20' ) start [2025-04-10 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874181', 'tblTempUsageDetail_20' ) end [2025-04-10 03:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 03:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 03:39:21] Production.INFO: ==10550== Releasing lock... [2025-04-10 03:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 03:39:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-10 03:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 00:40:05 [end_date_ymd] => 2025-04-10 03:40:05 [RateCDR] => 1 ) [2025-04-10 03: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-04-10 00:40:05' and `end` < '2025-04-10 03: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-04-10 03:40:18] Production.INFO: count ==234 [2025-04-10 03:40:18] Production.ERROR: pbx CDR StartTime 2025-04-10 00:40:05 - End Time 2025-04-10 03:40:05 [2025-04-10 03:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874187', 'tblTempUsageDetail_20' ) start [2025-04-10 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874187', 'tblTempUsageDetail_20' ) end [2025-04-10 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874187', 'tblTempVendorCDR_20' ) start [2025-04-10 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874187', 'tblTempVendorCDR_20' ) end [2025-04-10 03:40:18] Production.INFO: ProcessCDR(1,14874187,1,1,2) [2025-04-10 03:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874187', 'tblTempUsageDetail_20' ) start [2025-04-10 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874187', 'tblTempUsageDetail_20' ) end [2025-04-10 03:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 03:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 03:40:22] Production.INFO: ==10622== Releasing lock... [2025-04-10 03:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 03:40:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-10 03:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 00:41:05 [end_date_ymd] => 2025-04-10 03:41:05 [RateCDR] => 1 ) [2025-04-10 03:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 00:41:05' and `end` < '2025-04-10 03:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 03:41:18] Production.INFO: count ==403 [2025-04-10 03:41:18] Production.ERROR: pbx CDR StartTime 2025-04-10 00:41:05 - End Time 2025-04-10 03:41:05 [2025-04-10 03:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874192', 'tblTempUsageDetail_20' ) start [2025-04-10 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874192', 'tblTempUsageDetail_20' ) end [2025-04-10 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874192', 'tblTempVendorCDR_20' ) start [2025-04-10 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874192', 'tblTempVendorCDR_20' ) end [2025-04-10 03:41:18] Production.INFO: ProcessCDR(1,14874192,1,1,2) [2025-04-10 03:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874192', 'tblTempUsageDetail_20' ) start [2025-04-10 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874192', 'tblTempUsageDetail_20' ) end [2025-04-10 03:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 03:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 03:41:22] Production.INFO: ==10697== Releasing lock... [2025-04-10 03:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 03:41:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 03:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 00:42:05 [end_date_ymd] => 2025-04-10 03:42:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 00:42:05' and `end` < '2025-04-10 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-04-10 03:42:18] Production.INFO: count ==403 [2025-04-10 03:42:18] Production.ERROR: pbx CDR StartTime 2025-04-10 00:42:05 - End Time 2025-04-10 03:42:05 [2025-04-10 03:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874197', 'tblTempUsageDetail_20' ) start [2025-04-10 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874197', 'tblTempUsageDetail_20' ) end [2025-04-10 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874197', 'tblTempVendorCDR_20' ) start [2025-04-10 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874197', 'tblTempVendorCDR_20' ) end [2025-04-10 03:42:18] Production.INFO: ProcessCDR(1,14874197,1,1,2) [2025-04-10 03:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874197', 'tblTempUsageDetail_20' ) start [2025-04-10 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874197', 'tblTempUsageDetail_20' ) end [2025-04-10 03:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 03:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 03:42:22] Production.INFO: ==10774== Releasing lock... [2025-04-10 03:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 03:42:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 03:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 00:43:05 [end_date_ymd] => 2025-04-10 03:43:05 [RateCDR] => 1 ) [2025-04-10 03:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 00:43:05' and `end` < '2025-04-10 03:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 03:43:18] Production.INFO: count ==403 [2025-04-10 03:43:18] Production.ERROR: pbx CDR StartTime 2025-04-10 00:43:05 - End Time 2025-04-10 03:43:05 [2025-04-10 03:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874202', 'tblTempUsageDetail_20' ) start [2025-04-10 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874202', 'tblTempUsageDetail_20' ) end [2025-04-10 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874202', 'tblTempVendorCDR_20' ) start [2025-04-10 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874202', 'tblTempVendorCDR_20' ) end [2025-04-10 03:43:18] Production.INFO: ProcessCDR(1,14874202,1,1,2) [2025-04-10 03:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874202', 'tblTempUsageDetail_20' ) start [2025-04-10 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874202', 'tblTempUsageDetail_20' ) end [2025-04-10 03:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 03:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 03:43:22] Production.INFO: ==10846== Releasing lock... [2025-04-10 03:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 03:43:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 03:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 00:44:06 [end_date_ymd] => 2025-04-10 03:44:06 [RateCDR] => 1 ) [2025-04-10 03:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 00:44:06' and `end` < '2025-04-10 03:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 03:44:19] Production.INFO: count ==403 [2025-04-10 03:44:19] Production.ERROR: pbx CDR StartTime 2025-04-10 00:44:06 - End Time 2025-04-10 03:44:06 [2025-04-10 03:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874207', 'tblTempUsageDetail_20' ) start [2025-04-10 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874207', 'tblTempUsageDetail_20' ) end [2025-04-10 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874207', 'tblTempVendorCDR_20' ) start [2025-04-10 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874207', 'tblTempVendorCDR_20' ) end [2025-04-10 03:44:19] Production.INFO: ProcessCDR(1,14874207,1,1,2) [2025-04-10 03:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874207', 'tblTempUsageDetail_20' ) start [2025-04-10 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874207', 'tblTempUsageDetail_20' ) end [2025-04-10 03:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 03:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 03:44:22] Production.INFO: ==10919== Releasing lock... [2025-04-10 03:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 03:44:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 03:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 00:45:05 [end_date_ymd] => 2025-04-10 03:45:05 [RateCDR] => 1 ) [2025-04-10 03:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 00:45:05' and `end` < '2025-04-10 03:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 03:45:18] Production.INFO: count ==418 [2025-04-10 03:45:18] Production.ERROR: pbx CDR StartTime 2025-04-10 00:45:05 - End Time 2025-04-10 03:45:05 [2025-04-10 03:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874212', 'tblTempUsageDetail_20' ) start [2025-04-10 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874212', 'tblTempUsageDetail_20' ) end [2025-04-10 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874212', 'tblTempVendorCDR_20' ) start [2025-04-10 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874212', 'tblTempVendorCDR_20' ) end [2025-04-10 03:45:18] Production.INFO: ProcessCDR(1,14874212,1,1,2) [2025-04-10 03:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874212', 'tblTempUsageDetail_20' ) start [2025-04-10 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874212', 'tblTempUsageDetail_20' ) end [2025-04-10 03:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 03:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 03:45:21] Production.INFO: ==10989== Releasing lock... [2025-04-10 03:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 03:45:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-10 03:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 00:46:04 [end_date_ymd] => 2025-04-10 03:46:04 [RateCDR] => 1 ) [2025-04-10 03: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-04-10 00:46:04' and `end` < '2025-04-10 03: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-04-10 03:46:17] Production.INFO: count ==432 [2025-04-10 03:46:17] Production.ERROR: pbx CDR StartTime 2025-04-10 00:46:04 - End Time 2025-04-10 03:46:04 [2025-04-10 03:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874217', 'tblTempUsageDetail_20' ) start [2025-04-10 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874217', 'tblTempUsageDetail_20' ) end [2025-04-10 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874217', 'tblTempVendorCDR_20' ) start [2025-04-10 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874217', 'tblTempVendorCDR_20' ) end [2025-04-10 03:46:17] Production.INFO: ProcessCDR(1,14874217,1,1,2) [2025-04-10 03:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874217', 'tblTempUsageDetail_20' ) start [2025-04-10 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874217', 'tblTempUsageDetail_20' ) end [2025-04-10 03:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 03:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 03:46:21] Production.INFO: ==11063== Releasing lock... [2025-04-10 03:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 03:46:21] Production.INFO: 32 MB #Memory Used# [2025-04-10 03:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 00:47:05 [end_date_ymd] => 2025-04-10 03:47:05 [RateCDR] => 1 ) [2025-04-10 03:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 00:47:05' and `end` < '2025-04-10 03:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 03:47:18] Production.INFO: count ==431 [2025-04-10 03:47:18] Production.ERROR: pbx CDR StartTime 2025-04-10 00:47:05 - End Time 2025-04-10 03:47:05 [2025-04-10 03:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874222', 'tblTempUsageDetail_20' ) start [2025-04-10 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874222', 'tblTempUsageDetail_20' ) end [2025-04-10 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874222', 'tblTempVendorCDR_20' ) start [2025-04-10 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874222', 'tblTempVendorCDR_20' ) end [2025-04-10 03:47:18] Production.INFO: ProcessCDR(1,14874222,1,1,2) [2025-04-10 03:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874222', 'tblTempUsageDetail_20' ) start [2025-04-10 03:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874222', 'tblTempUsageDetail_20' ) end [2025-04-10 03:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 03:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 03:47:22] Production.INFO: ==11135== Releasing lock... [2025-04-10 03:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 03:47:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-10 03:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 00:48:06 [end_date_ymd] => 2025-04-10 03:48:06 [RateCDR] => 1 ) [2025-04-10 03:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 00:48:06' and `end` < '2025-04-10 03:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 03:48:19] Production.INFO: count ==431 [2025-04-10 03:48:19] Production.ERROR: pbx CDR StartTime 2025-04-10 00:48:06 - End Time 2025-04-10 03:48:06 [2025-04-10 03:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874227', 'tblTempUsageDetail_20' ) start [2025-04-10 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874227', 'tblTempUsageDetail_20' ) end [2025-04-10 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874227', 'tblTempVendorCDR_20' ) start [2025-04-10 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874227', 'tblTempVendorCDR_20' ) end [2025-04-10 03:48:19] Production.INFO: ProcessCDR(1,14874227,1,1,2) [2025-04-10 03:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874227', 'tblTempUsageDetail_20' ) start [2025-04-10 03:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874227', 'tblTempUsageDetail_20' ) end [2025-04-10 03:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 03:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 03:48:22] Production.INFO: ==11247== Releasing lock... [2025-04-10 03:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 03:48:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-10 03:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 00:49:05 [end_date_ymd] => 2025-04-10 03:49:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 00:49:05' and `end` < '2025-04-10 03:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 03:49:18] Production.INFO: count ==431 [2025-04-10 03:49:18] Production.ERROR: pbx CDR StartTime 2025-04-10 00:49:05 - End Time 2025-04-10 03:49:05 [2025-04-10 03:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874232', 'tblTempUsageDetail_20' ) start [2025-04-10 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874232', 'tblTempUsageDetail_20' ) end [2025-04-10 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874232', 'tblTempVendorCDR_20' ) start [2025-04-10 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874232', 'tblTempVendorCDR_20' ) end [2025-04-10 03:49:18] Production.INFO: ProcessCDR(1,14874232,1,1,2) [2025-04-10 03:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874232', 'tblTempUsageDetail_20' ) start [2025-04-10 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874232', 'tblTempUsageDetail_20' ) end [2025-04-10 03:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 03:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 03:49:22] Production.INFO: ==11318== Releasing lock... [2025-04-10 03:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 03:49:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-10 03:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 00:50:06 [end_date_ymd] => 2025-04-10 03:50:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 00:50:06' and `end` < '2025-04-10 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-04-10 03:50:19] Production.INFO: count ==425 [2025-04-10 03:50:19] Production.ERROR: pbx CDR StartTime 2025-04-10 00:50:06 - End Time 2025-04-10 03:50:06 [2025-04-10 03:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874238', 'tblTempUsageDetail_20' ) start [2025-04-10 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874238', 'tblTempUsageDetail_20' ) end [2025-04-10 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874238', 'tblTempVendorCDR_20' ) start [2025-04-10 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874238', 'tblTempVendorCDR_20' ) end [2025-04-10 03:50:19] Production.INFO: ProcessCDR(1,14874238,1,1,2) [2025-04-10 03:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874238', 'tblTempUsageDetail_20' ) start [2025-04-10 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874238', 'tblTempUsageDetail_20' ) end [2025-04-10 03:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 03:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 03:50:22] Production.INFO: ==11391== Releasing lock... [2025-04-10 03:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 03:50:22] Production.INFO: 32 MB #Memory Used# [2025-04-10 03:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 00:51:05 [end_date_ymd] => 2025-04-10 03:51:05 [RateCDR] => 1 ) [2025-04-10 03:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 00:51:05' and `end` < '2025-04-10 03:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 03:51:18] Production.INFO: count ==425 [2025-04-10 03:51:18] Production.ERROR: pbx CDR StartTime 2025-04-10 00:51:05 - End Time 2025-04-10 03:51:05 [2025-04-10 03:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874243', 'tblTempUsageDetail_20' ) start [2025-04-10 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874243', 'tblTempUsageDetail_20' ) end [2025-04-10 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874243', 'tblTempVendorCDR_20' ) start [2025-04-10 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874243', 'tblTempVendorCDR_20' ) end [2025-04-10 03:51:18] Production.INFO: ProcessCDR(1,14874243,1,1,2) [2025-04-10 03:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874243', 'tblTempUsageDetail_20' ) start [2025-04-10 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874243', 'tblTempUsageDetail_20' ) end [2025-04-10 03:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 03:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 03:51:21] Production.INFO: ==11468== Releasing lock... [2025-04-10 03:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 03:51:21] Production.INFO: 32 MB #Memory Used# [2025-04-10 03:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 00:52:06 [end_date_ymd] => 2025-04-10 03:52:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 00:52:06' and `end` < '2025-04-10 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-04-10 03:52:19] Production.INFO: count ==425 [2025-04-10 03:52:19] Production.ERROR: pbx CDR StartTime 2025-04-10 00:52:06 - End Time 2025-04-10 03:52:06 [2025-04-10 03:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874248', 'tblTempUsageDetail_20' ) start [2025-04-10 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874248', 'tblTempUsageDetail_20' ) end [2025-04-10 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874248', 'tblTempVendorCDR_20' ) start [2025-04-10 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874248', 'tblTempVendorCDR_20' ) end [2025-04-10 03:52:19] Production.INFO: ProcessCDR(1,14874248,1,1,2) [2025-04-10 03:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874248', 'tblTempUsageDetail_20' ) start [2025-04-10 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874248', 'tblTempUsageDetail_20' ) end [2025-04-10 03:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 03:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 03:52:22] Production.INFO: ==11545== Releasing lock... [2025-04-10 03:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 03:52:22] Production.INFO: 32 MB #Memory Used# [2025-04-10 03:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 00:53:05 [end_date_ymd] => 2025-04-10 03:53:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 00:53:05' and `end` < '2025-04-10 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-04-10 03:53:18] Production.INFO: count ==425 [2025-04-10 03:53:18] Production.ERROR: pbx CDR StartTime 2025-04-10 00:53:05 - End Time 2025-04-10 03:53:05 [2025-04-10 03:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874253', 'tblTempUsageDetail_20' ) start [2025-04-10 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874253', 'tblTempUsageDetail_20' ) end [2025-04-10 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874253', 'tblTempVendorCDR_20' ) start [2025-04-10 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874253', 'tblTempVendorCDR_20' ) end [2025-04-10 03:53:18] Production.INFO: ProcessCDR(1,14874253,1,1,2) [2025-04-10 03:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874253', 'tblTempUsageDetail_20' ) start [2025-04-10 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874253', 'tblTempUsageDetail_20' ) end [2025-04-10 03:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 03:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 03:53:22] Production.INFO: ==11615== Releasing lock... [2025-04-10 03:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 03:53:22] Production.INFO: 32 MB #Memory Used# [2025-04-10 03:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 00:54:05 [end_date_ymd] => 2025-04-10 03:54:05 [RateCDR] => 1 ) [2025-04-10 03:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 00:54:05' and `end` < '2025-04-10 03:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 03:54:18] Production.INFO: count ==425 [2025-04-10 03:54:18] Production.ERROR: pbx CDR StartTime 2025-04-10 00:54:05 - End Time 2025-04-10 03:54:05 [2025-04-10 03:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874258', 'tblTempUsageDetail_20' ) start [2025-04-10 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874258', 'tblTempUsageDetail_20' ) end [2025-04-10 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874258', 'tblTempVendorCDR_20' ) start [2025-04-10 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874258', 'tblTempVendorCDR_20' ) end [2025-04-10 03:54:18] Production.INFO: ProcessCDR(1,14874258,1,1,2) [2025-04-10 03:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874258', 'tblTempUsageDetail_20' ) start [2025-04-10 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874258', 'tblTempUsageDetail_20' ) end [2025-04-10 03:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 03:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 03:54:22] Production.INFO: ==11685== Releasing lock... [2025-04-10 03:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 03:54:22] Production.INFO: 32 MB #Memory Used# [2025-04-10 03:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 00:55:05 [end_date_ymd] => 2025-04-10 03:55:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 00:55:05' and `end` < '2025-04-10 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-04-10 03:55:18] Production.INFO: count ==423 [2025-04-10 03:55:18] Production.ERROR: pbx CDR StartTime 2025-04-10 00:55:05 - End Time 2025-04-10 03:55:05 [2025-04-10 03:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874263', 'tblTempUsageDetail_20' ) start [2025-04-10 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874263', 'tblTempUsageDetail_20' ) end [2025-04-10 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874263', 'tblTempVendorCDR_20' ) start [2025-04-10 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874263', 'tblTempVendorCDR_20' ) end [2025-04-10 03:55:18] Production.INFO: ProcessCDR(1,14874263,1,1,2) [2025-04-10 03:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874263', 'tblTempUsageDetail_20' ) start [2025-04-10 03:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874263', 'tblTempUsageDetail_20' ) end [2025-04-10 03:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 03:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 03:55:22] Production.INFO: ==11756== Releasing lock... [2025-04-10 03:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 03:55:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 03:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 00:56:06 [end_date_ymd] => 2025-04-10 03:56:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 00:56:06' and `end` < '2025-04-10 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-04-10 03:56:19] Production.INFO: count ==425 [2025-04-10 03:56:19] Production.ERROR: pbx CDR StartTime 2025-04-10 00:56:06 - End Time 2025-04-10 03:56:06 [2025-04-10 03:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874268', 'tblTempUsageDetail_20' ) start [2025-04-10 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874268', 'tblTempUsageDetail_20' ) end [2025-04-10 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874268', 'tblTempVendorCDR_20' ) start [2025-04-10 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874268', 'tblTempVendorCDR_20' ) end [2025-04-10 03:56:19] Production.INFO: ProcessCDR(1,14874268,1,1,2) [2025-04-10 03:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874268', 'tblTempUsageDetail_20' ) start [2025-04-10 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874268', 'tblTempUsageDetail_20' ) end [2025-04-10 03:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 03:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 03:56:22] Production.INFO: ==11827== Releasing lock... [2025-04-10 03:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 03:56:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-10 03:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 00:57:05 [end_date_ymd] => 2025-04-10 03:57:05 [RateCDR] => 1 ) [2025-04-10 03:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 00:57:05' and `end` < '2025-04-10 03:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 03:57:17] Production.INFO: count ==424 [2025-04-10 03:57:18] Production.ERROR: pbx CDR StartTime 2025-04-10 00:57:05 - End Time 2025-04-10 03:57:05 [2025-04-10 03:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874273', 'tblTempUsageDetail_20' ) start [2025-04-10 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874273', 'tblTempUsageDetail_20' ) end [2025-04-10 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874273', 'tblTempVendorCDR_20' ) start [2025-04-10 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874273', 'tblTempVendorCDR_20' ) end [2025-04-10 03:57:18] Production.INFO: ProcessCDR(1,14874273,1,1,2) [2025-04-10 03:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874273', 'tblTempUsageDetail_20' ) start [2025-04-10 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874273', 'tblTempUsageDetail_20' ) end [2025-04-10 03:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 03:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 03:57:21] Production.INFO: ==11899== Releasing lock... [2025-04-10 03:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 03:57:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-10 03:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 00:58:05 [end_date_ymd] => 2025-04-10 03:58:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 00:58:05' and `end` < '2025-04-10 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-04-10 03:58:18] Production.INFO: count ==417 [2025-04-10 03:58:19] Production.ERROR: pbx CDR StartTime 2025-04-10 00:58:05 - End Time 2025-04-10 03:58:05 [2025-04-10 03:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 03:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874278', 'tblTempUsageDetail_20' ) start [2025-04-10 03:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874278', 'tblTempUsageDetail_20' ) end [2025-04-10 03:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874278', 'tblTempVendorCDR_20' ) start [2025-04-10 03:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874278', 'tblTempVendorCDR_20' ) end [2025-04-10 03:58:19] Production.INFO: ProcessCDR(1,14874278,1,1,2) [2025-04-10 03:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874278', 'tblTempUsageDetail_20' ) start [2025-04-10 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874278', 'tblTempUsageDetail_20' ) end [2025-04-10 03:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 03:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 03:58:22] Production.INFO: ==11969== Releasing lock... [2025-04-10 03:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 03:58:22] Production.INFO: 32 MB #Memory Used# [2025-04-10 03:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 00:59:05 [end_date_ymd] => 2025-04-10 03:59:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 00:59:05' and `end` < '2025-04-10 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-04-10 03:59:18] Production.INFO: count ==417 [2025-04-10 03:59:18] Production.ERROR: pbx CDR StartTime 2025-04-10 00:59:05 - End Time 2025-04-10 03:59:05 [2025-04-10 03:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874283', 'tblTempUsageDetail_20' ) start [2025-04-10 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874283', 'tblTempUsageDetail_20' ) end [2025-04-10 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874283', 'tblTempVendorCDR_20' ) start [2025-04-10 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874283', 'tblTempVendorCDR_20' ) end [2025-04-10 03:59:18] Production.INFO: ProcessCDR(1,14874283,1,1,2) [2025-04-10 03:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 03:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 03:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874283', 'tblTempUsageDetail_20' ) start [2025-04-10 03:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874283', 'tblTempUsageDetail_20' ) end [2025-04-10 03:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 03:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 03:59:22] Production.INFO: ==12040== Releasing lock... [2025-04-10 03:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 03:59:22] Production.INFO: 32 MB #Memory Used# [2025-04-10 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 01:00:06 [end_date_ymd] => 2025-04-10 04:00:06 [RateCDR] => 1 ) [2025-04-10 04:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 01:00:06' and `end` < '2025-04-10 04:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 04:00:19] Production.INFO: count ==407 [2025-04-10 04:00:19] Production.ERROR: pbx CDR StartTime 2025-04-10 01:00:06 - End Time 2025-04-10 04:00:06 [2025-04-10 04:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874289', 'tblTempUsageDetail_20' ) start [2025-04-10 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874289', 'tblTempUsageDetail_20' ) end [2025-04-10 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874289', 'tblTempVendorCDR_20' ) start [2025-04-10 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874289', 'tblTempVendorCDR_20' ) end [2025-04-10 04:00:19] Production.INFO: ProcessCDR(1,14874289,1,1,2) [2025-04-10 04:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874289', 'tblTempUsageDetail_20' ) start [2025-04-10 04:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874289', 'tblTempUsageDetail_20' ) end [2025-04-10 04:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 04:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 04:00:23] Production.INFO: ==12113== Releasing lock... [2025-04-10 04:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 04:00:23] Production.INFO: 31.75 MB #Memory Used# [2025-04-10 04:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 01:01:06 [end_date_ymd] => 2025-04-10 04:01:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 01:01:06' and `end` < '2025-04-10 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-04-10 04:01:19] Production.INFO: count ==405 [2025-04-10 04:01:19] Production.ERROR: pbx CDR StartTime 2025-04-10 01:01:06 - End Time 2025-04-10 04:01:06 [2025-04-10 04:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874295', 'tblTempUsageDetail_20' ) start [2025-04-10 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874295', 'tblTempUsageDetail_20' ) end [2025-04-10 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874295', 'tblTempVendorCDR_20' ) start [2025-04-10 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874295', 'tblTempVendorCDR_20' ) end [2025-04-10 04:01:19] Production.INFO: ProcessCDR(1,14874295,1,1,2) [2025-04-10 04:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874295', 'tblTempUsageDetail_20' ) start [2025-04-10 04:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874295', 'tblTempUsageDetail_20' ) end [2025-04-10 04:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 04:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 04:01:23] Production.INFO: ==12205== Releasing lock... [2025-04-10 04:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 04:01:23] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 04:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 01:02:05 [end_date_ymd] => 2025-04-10 04:02:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 01:02:05' and `end` < '2025-04-10 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-04-10 04:02:18] Production.INFO: count ==405 [2025-04-10 04:02:18] Production.ERROR: pbx CDR StartTime 2025-04-10 01:02:05 - End Time 2025-04-10 04:02:05 [2025-04-10 04:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874300', 'tblTempUsageDetail_20' ) start [2025-04-10 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874300', 'tblTempUsageDetail_20' ) end [2025-04-10 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874300', 'tblTempVendorCDR_20' ) start [2025-04-10 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874300', 'tblTempVendorCDR_20' ) end [2025-04-10 04:02:18] Production.INFO: ProcessCDR(1,14874300,1,1,2) [2025-04-10 04:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874300', 'tblTempUsageDetail_20' ) start [2025-04-10 04:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874300', 'tblTempUsageDetail_20' ) end [2025-04-10 04:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 04:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 04:02:22] Production.INFO: ==12278== Releasing lock... [2025-04-10 04:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 04:02:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 01:03:05 [end_date_ymd] => 2025-04-10 04:03:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 01:03:05' and `end` < '2025-04-10 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-04-10 04:03:18] Production.INFO: count ==405 [2025-04-10 04:03:18] Production.ERROR: pbx CDR StartTime 2025-04-10 01:03:05 - End Time 2025-04-10 04:03:05 [2025-04-10 04:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874305', 'tblTempUsageDetail_20' ) start [2025-04-10 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874305', 'tblTempUsageDetail_20' ) end [2025-04-10 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874305', 'tblTempVendorCDR_20' ) start [2025-04-10 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874305', 'tblTempVendorCDR_20' ) end [2025-04-10 04:03:18] Production.INFO: ProcessCDR(1,14874305,1,1,2) [2025-04-10 04:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874305', 'tblTempUsageDetail_20' ) start [2025-04-10 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874305', 'tblTempUsageDetail_20' ) end [2025-04-10 04:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 04:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 04:03:22] Production.INFO: ==12349== Releasing lock... [2025-04-10 04:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 04:03:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 01:04:05 [end_date_ymd] => 2025-04-10 04:04:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 01:04:05' and `end` < '2025-04-10 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-04-10 04:04:18] Production.INFO: count ==404 [2025-04-10 04:04:18] Production.ERROR: pbx CDR StartTime 2025-04-10 01:04:05 - End Time 2025-04-10 04:04:05 [2025-04-10 04:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874310', 'tblTempUsageDetail_20' ) start [2025-04-10 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874310', 'tblTempUsageDetail_20' ) end [2025-04-10 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874310', 'tblTempVendorCDR_20' ) start [2025-04-10 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874310', 'tblTempVendorCDR_20' ) end [2025-04-10 04:04:18] Production.INFO: ProcessCDR(1,14874310,1,1,2) [2025-04-10 04:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874310', 'tblTempUsageDetail_20' ) start [2025-04-10 04:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874310', 'tblTempUsageDetail_20' ) end [2025-04-10 04:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 04:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 04:04:22] Production.INFO: ==12462== Releasing lock... [2025-04-10 04:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 04:04:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-10 04:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 01:05:04 [end_date_ymd] => 2025-04-10 04:05:04 [RateCDR] => 1 ) [2025-04-10 04: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-04-10 01:05:04' and `end` < '2025-04-10 04: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-04-10 04:05:17] Production.INFO: count ==404 [2025-04-10 04:05:17] Production.ERROR: pbx CDR StartTime 2025-04-10 01:05:04 - End Time 2025-04-10 04:05:04 [2025-04-10 04:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874315', 'tblTempUsageDetail_20' ) start [2025-04-10 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874315', 'tblTempUsageDetail_20' ) end [2025-04-10 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874315', 'tblTempVendorCDR_20' ) start [2025-04-10 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874315', 'tblTempVendorCDR_20' ) end [2025-04-10 04:05:17] Production.INFO: ProcessCDR(1,14874315,1,1,2) [2025-04-10 04:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874315', 'tblTempUsageDetail_20' ) start [2025-04-10 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874315', 'tblTempUsageDetail_20' ) end [2025-04-10 04:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 04:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 04:05:21] Production.INFO: ==12538== Releasing lock... [2025-04-10 04:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 04:05:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-10 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 01:06:05 [end_date_ymd] => 2025-04-10 04:06:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 01:06:05' and `end` < '2025-04-10 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-04-10 04:06:18] Production.INFO: count ==404 [2025-04-10 04:06:18] Production.ERROR: pbx CDR StartTime 2025-04-10 01:06:05 - End Time 2025-04-10 04:06:05 [2025-04-10 04:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874320', 'tblTempUsageDetail_20' ) start [2025-04-10 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874320', 'tblTempUsageDetail_20' ) end [2025-04-10 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874320', 'tblTempVendorCDR_20' ) start [2025-04-10 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874320', 'tblTempVendorCDR_20' ) end [2025-04-10 04:06:18] Production.INFO: ProcessCDR(1,14874320,1,1,2) [2025-04-10 04:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874320', 'tblTempUsageDetail_20' ) start [2025-04-10 04:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874320', 'tblTempUsageDetail_20' ) end [2025-04-10 04:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 04:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 04:06:22] Production.INFO: ==12608== Releasing lock... [2025-04-10 04:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 04:06:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-10 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 01:07:05 [end_date_ymd] => 2025-04-10 04:07:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 01:07:05' and `end` < '2025-04-10 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-04-10 04:07:18] Production.INFO: count ==404 [2025-04-10 04:07:18] Production.ERROR: pbx CDR StartTime 2025-04-10 01:07:05 - End Time 2025-04-10 04:07:05 [2025-04-10 04:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874325', 'tblTempUsageDetail_20' ) start [2025-04-10 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874325', 'tblTempUsageDetail_20' ) end [2025-04-10 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874325', 'tblTempVendorCDR_20' ) start [2025-04-10 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874325', 'tblTempVendorCDR_20' ) end [2025-04-10 04:07:18] Production.INFO: ProcessCDR(1,14874325,1,1,2) [2025-04-10 04:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874325', 'tblTempUsageDetail_20' ) start [2025-04-10 04:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874325', 'tblTempUsageDetail_20' ) end [2025-04-10 04:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 04:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 04:07:22] Production.INFO: ==12678== Releasing lock... [2025-04-10 04:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 04:07:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-10 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 01:08:05 [end_date_ymd] => 2025-04-10 04:08:05 [RateCDR] => 1 ) [2025-04-10 04:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 01:08:05' and `end` < '2025-04-10 04:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 04:08:18] Production.INFO: count ==404 [2025-04-10 04:08:18] Production.ERROR: pbx CDR StartTime 2025-04-10 01:08:05 - End Time 2025-04-10 04:08:05 [2025-04-10 04:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874330', 'tblTempUsageDetail_20' ) start [2025-04-10 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874330', 'tblTempUsageDetail_20' ) end [2025-04-10 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874330', 'tblTempVendorCDR_20' ) start [2025-04-10 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874330', 'tblTempVendorCDR_20' ) end [2025-04-10 04:08:18] Production.INFO: ProcessCDR(1,14874330,1,1,2) [2025-04-10 04:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874330', 'tblTempUsageDetail_20' ) start [2025-04-10 04:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874330', 'tblTempUsageDetail_20' ) end [2025-04-10 04:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 04:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 04:08:22] Production.INFO: ==12751== Releasing lock... [2025-04-10 04:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 04:08:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-10 04:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 01:09:04 [end_date_ymd] => 2025-04-10 04:09:04 [RateCDR] => 1 ) [2025-04-10 04:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 01:09:04' and `end` < '2025-04-10 04:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 04:09:17] Production.INFO: count ==404 [2025-04-10 04:09:17] Production.ERROR: pbx CDR StartTime 2025-04-10 01:09:04 - End Time 2025-04-10 04:09:04 [2025-04-10 04:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874335', 'tblTempUsageDetail_20' ) start [2025-04-10 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874335', 'tblTempUsageDetail_20' ) end [2025-04-10 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874335', 'tblTempVendorCDR_20' ) start [2025-04-10 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874335', 'tblTempVendorCDR_20' ) end [2025-04-10 04:09:18] Production.INFO: ProcessCDR(1,14874335,1,1,2) [2025-04-10 04:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874335', 'tblTempUsageDetail_20' ) start [2025-04-10 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874335', 'tblTempUsageDetail_20' ) end [2025-04-10 04:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 04:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 04:09:21] Production.INFO: ==12821== Releasing lock... [2025-04-10 04:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 04:09:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-10 04:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 01:10:07 [end_date_ymd] => 2025-04-10 04:10:07 [RateCDR] => 1 ) [2025-04-10 04: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-04-10 01:10:07' and `end` < '2025-04-10 04: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-04-10 04:10:19] Production.INFO: count ==396 [2025-04-10 04:10:20] Production.ERROR: pbx CDR StartTime 2025-04-10 01:10:07 - End Time 2025-04-10 04:10:07 [2025-04-10 04:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 04:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874341', 'tblTempUsageDetail_20' ) start [2025-04-10 04:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874341', 'tblTempUsageDetail_20' ) end [2025-04-10 04:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874341', 'tblTempVendorCDR_20' ) start [2025-04-10 04:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874341', 'tblTempVendorCDR_20' ) end [2025-04-10 04:10:20] Production.INFO: ProcessCDR(1,14874341,1,1,2) [2025-04-10 04:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874341', 'tblTempUsageDetail_20' ) start [2025-04-10 04:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874341', 'tblTempUsageDetail_20' ) end [2025-04-10 04:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 04:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 04:10:23] Production.INFO: ==12895== Releasing lock... [2025-04-10 04:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 04:10:23] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 04:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 01:11:04 [end_date_ymd] => 2025-04-10 04:11:04 [RateCDR] => 1 ) [2025-04-10 04: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-04-10 01:11:04' and `end` < '2025-04-10 04: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-04-10 04:11:17] Production.INFO: count ==395 [2025-04-10 04:11:17] Production.ERROR: pbx CDR StartTime 2025-04-10 01:11:04 - End Time 2025-04-10 04:11:04 [2025-04-10 04:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874346', 'tblTempUsageDetail_20' ) start [2025-04-10 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874346', 'tblTempUsageDetail_20' ) end [2025-04-10 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874346', 'tblTempVendorCDR_20' ) start [2025-04-10 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874346', 'tblTempVendorCDR_20' ) end [2025-04-10 04:11:17] Production.INFO: ProcessCDR(1,14874346,1,1,2) [2025-04-10 04:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874346', 'tblTempUsageDetail_20' ) start [2025-04-10 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874346', 'tblTempUsageDetail_20' ) end [2025-04-10 04:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 04:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 04:11:21] Production.INFO: ==12969== Releasing lock... [2025-04-10 04:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 04:11:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-10 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 01:12:05 [end_date_ymd] => 2025-04-10 04:12:05 [RateCDR] => 1 ) [2025-04-10 04:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 01:12:05' and `end` < '2025-04-10 04:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 04:12:18] Production.INFO: count ==395 [2025-04-10 04:12:18] Production.ERROR: pbx CDR StartTime 2025-04-10 01:12:05 - End Time 2025-04-10 04:12:05 [2025-04-10 04:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874351', 'tblTempUsageDetail_20' ) start [2025-04-10 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874351', 'tblTempUsageDetail_20' ) end [2025-04-10 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874351', 'tblTempVendorCDR_20' ) start [2025-04-10 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874351', 'tblTempVendorCDR_20' ) end [2025-04-10 04:12:18] Production.INFO: ProcessCDR(1,14874351,1,1,2) [2025-04-10 04:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874351', 'tblTempUsageDetail_20' ) start [2025-04-10 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874351', 'tblTempUsageDetail_20' ) end [2025-04-10 04:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 04:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 04:12:21] Production.INFO: ==13043== Releasing lock... [2025-04-10 04:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 04:12:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-10 04:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 01:13:06 [end_date_ymd] => 2025-04-10 04:13:06 [RateCDR] => 1 ) [2025-04-10 04: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-04-10 01:13:06' and `end` < '2025-04-10 04: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-04-10 04:13:19] Production.INFO: count ==395 [2025-04-10 04:13:19] Production.ERROR: pbx CDR StartTime 2025-04-10 01:13:06 - End Time 2025-04-10 04:13:06 [2025-04-10 04:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 04:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874356', 'tblTempUsageDetail_20' ) start [2025-04-10 04:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874356', 'tblTempUsageDetail_20' ) end [2025-04-10 04:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874356', 'tblTempVendorCDR_20' ) start [2025-04-10 04:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874356', 'tblTempVendorCDR_20' ) end [2025-04-10 04:13:19] Production.INFO: ProcessCDR(1,14874356,1,1,2) [2025-04-10 04:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874356', 'tblTempUsageDetail_20' ) start [2025-04-10 04:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874356', 'tblTempUsageDetail_20' ) end [2025-04-10 04:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 04:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 04:13:22] Production.INFO: ==13112== Releasing lock... [2025-04-10 04:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 04:13:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-10 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 01:14:05 [end_date_ymd] => 2025-04-10 04:14:05 [RateCDR] => 1 ) [2025-04-10 04:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 01:14:05' and `end` < '2025-04-10 04:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 04:14:18] Production.INFO: count ==395 [2025-04-10 04:14:18] Production.ERROR: pbx CDR StartTime 2025-04-10 01:14:05 - End Time 2025-04-10 04:14:05 [2025-04-10 04:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874361', 'tblTempUsageDetail_20' ) start [2025-04-10 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874361', 'tblTempUsageDetail_20' ) end [2025-04-10 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874361', 'tblTempVendorCDR_20' ) start [2025-04-10 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874361', 'tblTempVendorCDR_20' ) end [2025-04-10 04:14:18] Production.INFO: ProcessCDR(1,14874361,1,1,2) [2025-04-10 04:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874361', 'tblTempUsageDetail_20' ) start [2025-04-10 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874361', 'tblTempUsageDetail_20' ) end [2025-04-10 04:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 04:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 04:14:21] Production.INFO: ==13184== Releasing lock... [2025-04-10 04:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 04:14:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-10 04:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 01:15:06 [end_date_ymd] => 2025-04-10 04:15:06 [RateCDR] => 1 ) [2025-04-10 04:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 01:15:06' and `end` < '2025-04-10 04:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 04:15:19] Production.INFO: count ==395 [2025-04-10 04:15:19] Production.ERROR: pbx CDR StartTime 2025-04-10 01:15:06 - End Time 2025-04-10 04:15:06 [2025-04-10 04:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 04:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874366', 'tblTempUsageDetail_20' ) start [2025-04-10 04:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874366', 'tblTempUsageDetail_20' ) end [2025-04-10 04:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874366', 'tblTempVendorCDR_20' ) start [2025-04-10 04:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874366', 'tblTempVendorCDR_20' ) end [2025-04-10 04:15:19] Production.INFO: ProcessCDR(1,14874366,1,1,2) [2025-04-10 04:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874366', 'tblTempUsageDetail_20' ) start [2025-04-10 04:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874366', 'tblTempUsageDetail_20' ) end [2025-04-10 04:15:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 04:15:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 04:15:23] Production.INFO: ==13258== Releasing lock... [2025-04-10 04:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 04:15:23] Production.INFO: 31.25 MB #Memory Used# [2025-04-10 04:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 01:16:06 [end_date_ymd] => 2025-04-10 04:16:06 [RateCDR] => 1 ) [2025-04-10 04: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-04-10 01:16:06' and `end` < '2025-04-10 04: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-04-10 04:16:19] Production.INFO: count ==396 [2025-04-10 04:16:19] Production.ERROR: pbx CDR StartTime 2025-04-10 01:16:06 - End Time 2025-04-10 04:16:06 [2025-04-10 04:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874371', 'tblTempUsageDetail_20' ) start [2025-04-10 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874371', 'tblTempUsageDetail_20' ) end [2025-04-10 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874371', 'tblTempVendorCDR_20' ) start [2025-04-10 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874371', 'tblTempVendorCDR_20' ) end [2025-04-10 04:16:19] Production.INFO: ProcessCDR(1,14874371,1,1,2) [2025-04-10 04:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874371', 'tblTempUsageDetail_20' ) start [2025-04-10 04:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874371', 'tblTempUsageDetail_20' ) end [2025-04-10 04:16:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 04:16:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 04:16:24] Production.INFO: ==13331== Releasing lock... [2025-04-10 04:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 04:16:24] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 04:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 01:17:06 [end_date_ymd] => 2025-04-10 04:17:06 [RateCDR] => 1 ) [2025-04-10 04:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 01:17:06' and `end` < '2025-04-10 04:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 04:17:19] Production.INFO: count ==396 [2025-04-10 04:17:19] Production.ERROR: pbx CDR StartTime 2025-04-10 01:17:06 - End Time 2025-04-10 04:17:06 [2025-04-10 04:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874376', 'tblTempUsageDetail_20' ) start [2025-04-10 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874376', 'tblTempUsageDetail_20' ) end [2025-04-10 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874376', 'tblTempVendorCDR_20' ) start [2025-04-10 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874376', 'tblTempVendorCDR_20' ) end [2025-04-10 04:17:19] Production.INFO: ProcessCDR(1,14874376,1,1,2) [2025-04-10 04:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874376', 'tblTempUsageDetail_20' ) start [2025-04-10 04:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874376', 'tblTempUsageDetail_20' ) end [2025-04-10 04:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 04:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 04:17:22] Production.INFO: ==13404== Releasing lock... [2025-04-10 04:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 04:17:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 04:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 01:18:05 [end_date_ymd] => 2025-04-10 04:18:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 01:18:05' and `end` < '2025-04-10 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-04-10 04:18:18] Production.INFO: count ==396 [2025-04-10 04:18:18] Production.ERROR: pbx CDR StartTime 2025-04-10 01:18:05 - End Time 2025-04-10 04:18:05 [2025-04-10 04:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874381', 'tblTempUsageDetail_20' ) start [2025-04-10 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874381', 'tblTempUsageDetail_20' ) end [2025-04-10 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874381', 'tblTempVendorCDR_20' ) start [2025-04-10 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874381', 'tblTempVendorCDR_20' ) end [2025-04-10 04:18:18] Production.INFO: ProcessCDR(1,14874381,1,1,2) [2025-04-10 04:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874381', 'tblTempUsageDetail_20' ) start [2025-04-10 04:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874381', 'tblTempUsageDetail_20' ) end [2025-04-10 04:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 04:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 04:18:22] Production.INFO: ==13473== Releasing lock... [2025-04-10 04:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 04:18:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 01:19:05 [end_date_ymd] => 2025-04-10 04:19:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 01:19:05' and `end` < '2025-04-10 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-04-10 04:19:18] Production.INFO: count ==396 [2025-04-10 04:19:18] Production.ERROR: pbx CDR StartTime 2025-04-10 01:19:05 - End Time 2025-04-10 04:19:05 [2025-04-10 04:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874386', 'tblTempUsageDetail_20' ) start [2025-04-10 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874386', 'tblTempUsageDetail_20' ) end [2025-04-10 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874386', 'tblTempVendorCDR_20' ) start [2025-04-10 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874386', 'tblTempVendorCDR_20' ) end [2025-04-10 04:19:18] Production.INFO: ProcessCDR(1,14874386,1,1,2) [2025-04-10 04:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874386', 'tblTempUsageDetail_20' ) start [2025-04-10 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874386', 'tblTempUsageDetail_20' ) end [2025-04-10 04:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 04:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 04:19:21] Production.INFO: ==13587== Releasing lock... [2025-04-10 04:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 04:19:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 01:20:06 [end_date_ymd] => 2025-04-10 04:20:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 01:20:06' and `end` < '2025-04-10 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-04-10 04:20:19] Production.INFO: count ==396 [2025-04-10 04:20:19] Production.ERROR: pbx CDR StartTime 2025-04-10 01:20:06 - End Time 2025-04-10 04:20:06 [2025-04-10 04:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874391', 'tblTempUsageDetail_20' ) start [2025-04-10 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874391', 'tblTempUsageDetail_20' ) end [2025-04-10 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874391', 'tblTempVendorCDR_20' ) start [2025-04-10 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874391', 'tblTempVendorCDR_20' ) end [2025-04-10 04:20:19] Production.INFO: ProcessCDR(1,14874391,1,1,2) [2025-04-10 04:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874391', 'tblTempUsageDetail_20' ) start [2025-04-10 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874391', 'tblTempUsageDetail_20' ) end [2025-04-10 04:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 04:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 04:20:22] Production.INFO: ==13663== Releasing lock... [2025-04-10 04:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 04:20:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 01:21:05 [end_date_ymd] => 2025-04-10 04:21:05 [RateCDR] => 1 ) [2025-04-10 04:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 01:21:05' and `end` < '2025-04-10 04:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 04:21:18] Production.INFO: count ==394 [2025-04-10 04:21:18] Production.ERROR: pbx CDR StartTime 2025-04-10 01:21:05 - End Time 2025-04-10 04:21:05 [2025-04-10 04:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874397', 'tblTempUsageDetail_20' ) start [2025-04-10 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874397', 'tblTempUsageDetail_20' ) end [2025-04-10 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874397', 'tblTempVendorCDR_20' ) start [2025-04-10 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874397', 'tblTempVendorCDR_20' ) end [2025-04-10 04:21:18] Production.INFO: ProcessCDR(1,14874397,1,1,2) [2025-04-10 04:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874397', 'tblTempUsageDetail_20' ) start [2025-04-10 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874397', 'tblTempUsageDetail_20' ) end [2025-04-10 04:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 04:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 04:21:21] Production.INFO: ==13738== Releasing lock... [2025-04-10 04:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 04:21:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-10 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 01:22:05 [end_date_ymd] => 2025-04-10 04:22:05 [RateCDR] => 1 ) [2025-04-10 04:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 01:22:05' and `end` < '2025-04-10 04:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 04:22:18] Production.INFO: count ==394 [2025-04-10 04:22:18] Production.ERROR: pbx CDR StartTime 2025-04-10 01:22:05 - End Time 2025-04-10 04:22:05 [2025-04-10 04:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874402', 'tblTempUsageDetail_20' ) start [2025-04-10 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874402', 'tblTempUsageDetail_20' ) end [2025-04-10 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874402', 'tblTempVendorCDR_20' ) start [2025-04-10 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874402', 'tblTempVendorCDR_20' ) end [2025-04-10 04:22:18] Production.INFO: ProcessCDR(1,14874402,1,1,2) [2025-04-10 04:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874402', 'tblTempUsageDetail_20' ) start [2025-04-10 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874402', 'tblTempUsageDetail_20' ) end [2025-04-10 04:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 04:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 04:22:21] Production.INFO: ==13808== Releasing lock... [2025-04-10 04:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 04:22:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-10 04:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 01:23:06 [end_date_ymd] => 2025-04-10 04:23:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 01:23:06' and `end` < '2025-04-10 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-04-10 04:23:18] Production.INFO: count ==394 [2025-04-10 04:23:19] Production.ERROR: pbx CDR StartTime 2025-04-10 01:23:06 - End Time 2025-04-10 04:23:06 [2025-04-10 04:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 04:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874407', 'tblTempUsageDetail_20' ) start [2025-04-10 04:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874407', 'tblTempUsageDetail_20' ) end [2025-04-10 04:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874407', 'tblTempVendorCDR_20' ) start [2025-04-10 04:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874407', 'tblTempVendorCDR_20' ) end [2025-04-10 04:23:19] Production.INFO: ProcessCDR(1,14874407,1,1,2) [2025-04-10 04:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874407', 'tblTempUsageDetail_20' ) start [2025-04-10 04:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874407', 'tblTempUsageDetail_20' ) end [2025-04-10 04:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 04:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 04:23:22] Production.INFO: ==13880== Releasing lock... [2025-04-10 04:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 04:23:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-10 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 01:24:05 [end_date_ymd] => 2025-04-10 04:24:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 01:24:05' and `end` < '2025-04-10 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-04-10 04:24:18] Production.INFO: count ==392 [2025-04-10 04:24:18] Production.ERROR: pbx CDR StartTime 2025-04-10 01:24:05 - End Time 2025-04-10 04:24:05 [2025-04-10 04:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874412', 'tblTempUsageDetail_20' ) start [2025-04-10 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874412', 'tblTempUsageDetail_20' ) end [2025-04-10 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874412', 'tblTempVendorCDR_20' ) start [2025-04-10 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874412', 'tblTempVendorCDR_20' ) end [2025-04-10 04:24:18] Production.INFO: ProcessCDR(1,14874412,1,1,2) [2025-04-10 04:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874412', 'tblTempUsageDetail_20' ) start [2025-04-10 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874412', 'tblTempUsageDetail_20' ) end [2025-04-10 04:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 04:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 04:24:21] Production.INFO: ==13951== Releasing lock... [2025-04-10 04:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 04:24:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 01:25:05 [end_date_ymd] => 2025-04-10 04:25:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 01:25:05' and `end` < '2025-04-10 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-04-10 04:25:18] Production.INFO: count ==392 [2025-04-10 04:25:18] Production.ERROR: pbx CDR StartTime 2025-04-10 01:25:05 - End Time 2025-04-10 04:25:05 [2025-04-10 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874417', 'tblTempUsageDetail_20' ) start [2025-04-10 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874417', 'tblTempUsageDetail_20' ) end [2025-04-10 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874417', 'tblTempVendorCDR_20' ) start [2025-04-10 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874417', 'tblTempVendorCDR_20' ) end [2025-04-10 04:25:18] Production.INFO: ProcessCDR(1,14874417,1,1,2) [2025-04-10 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874417', 'tblTempUsageDetail_20' ) start [2025-04-10 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874417', 'tblTempUsageDetail_20' ) end [2025-04-10 04:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 04:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 04:25:21] Production.INFO: ==14022== Releasing lock... [2025-04-10 04:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 04:25:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 01:26:05 [end_date_ymd] => 2025-04-10 04:26:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 01:26:05' and `end` < '2025-04-10 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-04-10 04:26:18] Production.INFO: count ==392 [2025-04-10 04:26:18] Production.ERROR: pbx CDR StartTime 2025-04-10 01:26:05 - End Time 2025-04-10 04:26:05 [2025-04-10 04:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874422', 'tblTempUsageDetail_20' ) start [2025-04-10 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874422', 'tblTempUsageDetail_20' ) end [2025-04-10 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874422', 'tblTempVendorCDR_20' ) start [2025-04-10 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874422', 'tblTempVendorCDR_20' ) end [2025-04-10 04:26:18] Production.INFO: ProcessCDR(1,14874422,1,1,2) [2025-04-10 04:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874422', 'tblTempUsageDetail_20' ) start [2025-04-10 04:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874422', 'tblTempUsageDetail_20' ) end [2025-04-10 04:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 04:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 04:26:22] Production.INFO: ==14095== Releasing lock... [2025-04-10 04:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 04:26:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 04:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 01:27:06 [end_date_ymd] => 2025-04-10 04:27:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 01:27:06' and `end` < '2025-04-10 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-04-10 04:27:18] Production.INFO: count ==392 [2025-04-10 04:27:18] Production.ERROR: pbx CDR StartTime 2025-04-10 01:27:06 - End Time 2025-04-10 04:27:06 [2025-04-10 04:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874427', 'tblTempUsageDetail_20' ) start [2025-04-10 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874427', 'tblTempUsageDetail_20' ) end [2025-04-10 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874427', 'tblTempVendorCDR_20' ) start [2025-04-10 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874427', 'tblTempVendorCDR_20' ) end [2025-04-10 04:27:18] Production.INFO: ProcessCDR(1,14874427,1,1,2) [2025-04-10 04:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874427', 'tblTempUsageDetail_20' ) start [2025-04-10 04:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874427', 'tblTempUsageDetail_20' ) end [2025-04-10 04:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 04:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 04:27:22] Production.INFO: ==14168== Releasing lock... [2025-04-10 04:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 04:27:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 01:28:05 [end_date_ymd] => 2025-04-10 04:28:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 01:28:05' and `end` < '2025-04-10 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-04-10 04:28:18] Production.INFO: count ==392 [2025-04-10 04:28:18] Production.ERROR: pbx CDR StartTime 2025-04-10 01:28:05 - End Time 2025-04-10 04:28:05 [2025-04-10 04:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874432', 'tblTempUsageDetail_20' ) start [2025-04-10 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874432', 'tblTempUsageDetail_20' ) end [2025-04-10 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874432', 'tblTempVendorCDR_20' ) start [2025-04-10 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874432', 'tblTempVendorCDR_20' ) end [2025-04-10 04:28:18] Production.INFO: ProcessCDR(1,14874432,1,1,2) [2025-04-10 04:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874432', 'tblTempUsageDetail_20' ) start [2025-04-10 04:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874432', 'tblTempUsageDetail_20' ) end [2025-04-10 04:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 04:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 04:28:22] Production.INFO: ==14237== Releasing lock... [2025-04-10 04:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 04:28:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 01:29:05 [end_date_ymd] => 2025-04-10 04:29:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 01:29:05' and `end` < '2025-04-10 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-04-10 04:29:18] Production.INFO: count ==391 [2025-04-10 04:29:18] Production.ERROR: pbx CDR StartTime 2025-04-10 01:29:05 - End Time 2025-04-10 04:29:05 [2025-04-10 04:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874437', 'tblTempUsageDetail_20' ) start [2025-04-10 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874437', 'tblTempUsageDetail_20' ) end [2025-04-10 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874437', 'tblTempVendorCDR_20' ) start [2025-04-10 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874437', 'tblTempVendorCDR_20' ) end [2025-04-10 04:29:18] Production.INFO: ProcessCDR(1,14874437,1,1,2) [2025-04-10 04:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874437', 'tblTempUsageDetail_20' ) start [2025-04-10 04:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874437', 'tblTempUsageDetail_20' ) end [2025-04-10 04:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 04:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 04:29:22] Production.INFO: ==14310== Releasing lock... [2025-04-10 04:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 04:29:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 04:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 01:30:06 [end_date_ymd] => 2025-04-10 04:30:06 [RateCDR] => 1 ) [2025-04-10 04:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 01:30:06' and `end` < '2025-04-10 04:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 04:30:19] Production.INFO: count ==391 [2025-04-10 04:30:19] Production.ERROR: pbx CDR StartTime 2025-04-10 01:30:06 - End Time 2025-04-10 04:30:06 [2025-04-10 04:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874444', 'tblTempUsageDetail_20' ) start [2025-04-10 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874444', 'tblTempUsageDetail_20' ) end [2025-04-10 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874444', 'tblTempVendorCDR_20' ) start [2025-04-10 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874444', 'tblTempVendorCDR_20' ) end [2025-04-10 04:30:19] Production.INFO: ProcessCDR(1,14874444,1,1,2) [2025-04-10 04:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874444', 'tblTempUsageDetail_20' ) start [2025-04-10 04:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874444', 'tblTempUsageDetail_20' ) end [2025-04-10 04:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 04:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 04:30:23] Production.INFO: ==14393== Releasing lock... [2025-04-10 04:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 04:30:23] Production.INFO: 31.75 MB #Memory Used# [2025-04-10 04:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 01:31:05 [end_date_ymd] => 2025-04-10 04:31:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 01:31:05' and `end` < '2025-04-10 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-04-10 04:31:18] Production.INFO: count ==391 [2025-04-10 04:31:18] Production.ERROR: pbx CDR StartTime 2025-04-10 01:31:05 - End Time 2025-04-10 04:31:05 [2025-04-10 04:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874449', 'tblTempUsageDetail_20' ) start [2025-04-10 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874449', 'tblTempUsageDetail_20' ) end [2025-04-10 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874449', 'tblTempVendorCDR_20' ) start [2025-04-10 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874449', 'tblTempVendorCDR_20' ) end [2025-04-10 04:31:18] Production.INFO: ProcessCDR(1,14874449,1,1,2) [2025-04-10 04:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874449', 'tblTempUsageDetail_20' ) start [2025-04-10 04:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874449', 'tblTempUsageDetail_20' ) end [2025-04-10 04:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 04:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 04:31:22] Production.INFO: ==14564== Releasing lock... [2025-04-10 04:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 04:31:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-10 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 01:32:05 [end_date_ymd] => 2025-04-10 04:32:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 01:32:05' and `end` < '2025-04-10 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-04-10 04:32:18] Production.INFO: count ==391 [2025-04-10 04:32:18] Production.ERROR: pbx CDR StartTime 2025-04-10 01:32:05 - End Time 2025-04-10 04:32:05 [2025-04-10 04:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874454', 'tblTempUsageDetail_20' ) start [2025-04-10 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874454', 'tblTempUsageDetail_20' ) end [2025-04-10 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874454', 'tblTempVendorCDR_20' ) start [2025-04-10 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874454', 'tblTempVendorCDR_20' ) end [2025-04-10 04:32:18] Production.INFO: ProcessCDR(1,14874454,1,1,2) [2025-04-10 04:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874454', 'tblTempUsageDetail_20' ) start [2025-04-10 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874454', 'tblTempUsageDetail_20' ) end [2025-04-10 04:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 04:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 04:32:21] Production.INFO: ==14640== Releasing lock... [2025-04-10 04:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 04:32:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-10 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 01:33:05 [end_date_ymd] => 2025-04-10 04:33:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 01:33:05' and `end` < '2025-04-10 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-04-10 04:33:18] Production.INFO: count ==391 [2025-04-10 04:33:18] Production.ERROR: pbx CDR StartTime 2025-04-10 01:33:05 - End Time 2025-04-10 04:33:05 [2025-04-10 04:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874459', 'tblTempUsageDetail_20' ) start [2025-04-10 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874459', 'tblTempUsageDetail_20' ) end [2025-04-10 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874459', 'tblTempVendorCDR_20' ) start [2025-04-10 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874459', 'tblTempVendorCDR_20' ) end [2025-04-10 04:33:18] Production.INFO: ProcessCDR(1,14874459,1,1,2) [2025-04-10 04:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874459', 'tblTempUsageDetail_20' ) start [2025-04-10 04:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874459', 'tblTempUsageDetail_20' ) end [2025-04-10 04:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 04:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 04:33:22] Production.INFO: ==14713== Releasing lock... [2025-04-10 04:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 04:33:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-10 04:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 01:34:04 [end_date_ymd] => 2025-04-10 04:34:04 [RateCDR] => 1 ) [2025-04-10 04: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-04-10 01:34:04' and `end` < '2025-04-10 04: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-04-10 04:34:17] Production.INFO: count ==391 [2025-04-10 04:34:17] Production.ERROR: pbx CDR StartTime 2025-04-10 01:34:04 - End Time 2025-04-10 04:34:04 [2025-04-10 04:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874464', 'tblTempUsageDetail_20' ) start [2025-04-10 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874464', 'tblTempUsageDetail_20' ) end [2025-04-10 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874464', 'tblTempVendorCDR_20' ) start [2025-04-10 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874464', 'tblTempVendorCDR_20' ) end [2025-04-10 04:34:17] Production.INFO: ProcessCDR(1,14874464,1,1,2) [2025-04-10 04:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874464', 'tblTempUsageDetail_20' ) start [2025-04-10 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874464', 'tblTempUsageDetail_20' ) end [2025-04-10 04:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 04:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 04:34:21] Production.INFO: ==14783== Releasing lock... [2025-04-10 04:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 04:34:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-10 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 01:35:05 [end_date_ymd] => 2025-04-10 04:35:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 01:35:05' and `end` < '2025-04-10 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-04-10 04:35:18] Production.INFO: count ==391 [2025-04-10 04:35:18] Production.ERROR: pbx CDR StartTime 2025-04-10 01:35:05 - End Time 2025-04-10 04:35:05 [2025-04-10 04:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874469', 'tblTempUsageDetail_20' ) start [2025-04-10 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874469', 'tblTempUsageDetail_20' ) end [2025-04-10 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874469', 'tblTempVendorCDR_20' ) start [2025-04-10 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874469', 'tblTempVendorCDR_20' ) end [2025-04-10 04:35:18] Production.INFO: ProcessCDR(1,14874469,1,1,2) [2025-04-10 04:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874469', 'tblTempUsageDetail_20' ) start [2025-04-10 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874469', 'tblTempUsageDetail_20' ) end [2025-04-10 04:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 04:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 04:35:21] Production.INFO: ==14896== Releasing lock... [2025-04-10 04:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 04:35:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-10 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 01:36:05 [end_date_ymd] => 2025-04-10 04:36:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 01:36:05' and `end` < '2025-04-10 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-04-10 04:36:17] Production.INFO: count ==391 [2025-04-10 04:36:18] Production.ERROR: pbx CDR StartTime 2025-04-10 01:36:05 - End Time 2025-04-10 04:36:05 [2025-04-10 04:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874474', 'tblTempUsageDetail_20' ) start [2025-04-10 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874474', 'tblTempUsageDetail_20' ) end [2025-04-10 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874474', 'tblTempVendorCDR_20' ) start [2025-04-10 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874474', 'tblTempVendorCDR_20' ) end [2025-04-10 04:36:18] Production.INFO: ProcessCDR(1,14874474,1,1,2) [2025-04-10 04:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874474', 'tblTempUsageDetail_20' ) start [2025-04-10 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874474', 'tblTempUsageDetail_20' ) end [2025-04-10 04:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 04:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 04:36:21] Production.INFO: ==14967== Releasing lock... [2025-04-10 04:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 04:36:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-10 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 01:37:05 [end_date_ymd] => 2025-04-10 04:37:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 01:37:05' and `end` < '2025-04-10 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-04-10 04:37:18] Production.INFO: count ==391 [2025-04-10 04:37:18] Production.ERROR: pbx CDR StartTime 2025-04-10 01:37:05 - End Time 2025-04-10 04:37:05 [2025-04-10 04:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874479', 'tblTempUsageDetail_20' ) start [2025-04-10 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874479', 'tblTempUsageDetail_20' ) end [2025-04-10 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874479', 'tblTempVendorCDR_20' ) start [2025-04-10 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874479', 'tblTempVendorCDR_20' ) end [2025-04-10 04:37:18] Production.INFO: ProcessCDR(1,14874479,1,1,2) [2025-04-10 04:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874479', 'tblTempUsageDetail_20' ) start [2025-04-10 04:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874479', 'tblTempUsageDetail_20' ) end [2025-04-10 04:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 04:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 04:37:22] Production.INFO: ==15039== Releasing lock... [2025-04-10 04:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 04:37:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-10 04:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 01:38:05 [end_date_ymd] => 2025-04-10 04:38:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 01:38:05' and `end` < '2025-04-10 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-04-10 04:38:18] Production.INFO: count ==391 [2025-04-10 04:38:18] Production.ERROR: pbx CDR StartTime 2025-04-10 01:38:05 - End Time 2025-04-10 04:38:05 [2025-04-10 04:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874484', 'tblTempUsageDetail_20' ) start [2025-04-10 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874484', 'tblTempUsageDetail_20' ) end [2025-04-10 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874484', 'tblTempVendorCDR_20' ) start [2025-04-10 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874484', 'tblTempVendorCDR_20' ) end [2025-04-10 04:38:18] Production.INFO: ProcessCDR(1,14874484,1,1,2) [2025-04-10 04:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874484', 'tblTempUsageDetail_20' ) start [2025-04-10 04:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874484', 'tblTempUsageDetail_20' ) end [2025-04-10 04:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 04:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 04:38:22] Production.INFO: ==15114== Releasing lock... [2025-04-10 04:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 04:38:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-10 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 01:39:05 [end_date_ymd] => 2025-04-10 04:39:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 01:39:05' and `end` < '2025-04-10 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-04-10 04:39:18] Production.INFO: count ==391 [2025-04-10 04:39:18] Production.ERROR: pbx CDR StartTime 2025-04-10 01:39:05 - End Time 2025-04-10 04:39:05 [2025-04-10 04:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874489', 'tblTempUsageDetail_20' ) start [2025-04-10 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874489', 'tblTempUsageDetail_20' ) end [2025-04-10 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874489', 'tblTempVendorCDR_20' ) start [2025-04-10 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874489', 'tblTempVendorCDR_20' ) end [2025-04-10 04:39:18] Production.INFO: ProcessCDR(1,14874489,1,1,2) [2025-04-10 04:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874489', 'tblTempUsageDetail_20' ) start [2025-04-10 04:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874489', 'tblTempUsageDetail_20' ) end [2025-04-10 04:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 04:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 04:39:22] Production.INFO: ==15190== Releasing lock... [2025-04-10 04:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 04:39:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-10 04:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 01:40:06 [end_date_ymd] => 2025-04-10 04:40:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 01:40:06' and `end` < '2025-04-10 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-04-10 04:40:19] Production.INFO: count ==383 [2025-04-10 04:40:19] Production.ERROR: pbx CDR StartTime 2025-04-10 01:40:06 - End Time 2025-04-10 04:40:06 [2025-04-10 04:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874495', 'tblTempUsageDetail_20' ) start [2025-04-10 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874495', 'tblTempUsageDetail_20' ) end [2025-04-10 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874495', 'tblTempVendorCDR_20' ) start [2025-04-10 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874495', 'tblTempVendorCDR_20' ) end [2025-04-10 04:40:19] Production.INFO: ProcessCDR(1,14874495,1,1,2) [2025-04-10 04:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874495', 'tblTempUsageDetail_20' ) start [2025-04-10 04:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874495', 'tblTempUsageDetail_20' ) end [2025-04-10 04:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 04:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 04:40:23] Production.INFO: ==15270== Releasing lock... [2025-04-10 04:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 04:40:23] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 01:41:05 [end_date_ymd] => 2025-04-10 04:41:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 01:41:05' and `end` < '2025-04-10 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-04-10 04:41:17] Production.INFO: count ==383 [2025-04-10 04:41:18] Production.ERROR: pbx CDR StartTime 2025-04-10 01:41:05 - End Time 2025-04-10 04:41:05 [2025-04-10 04:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874500', 'tblTempUsageDetail_20' ) start [2025-04-10 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874500', 'tblTempUsageDetail_20' ) end [2025-04-10 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874500', 'tblTempVendorCDR_20' ) start [2025-04-10 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874500', 'tblTempVendorCDR_20' ) end [2025-04-10 04:41:18] Production.INFO: ProcessCDR(1,14874500,1,1,2) [2025-04-10 04:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874500', 'tblTempUsageDetail_20' ) start [2025-04-10 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874500', 'tblTempUsageDetail_20' ) end [2025-04-10 04:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 04:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 04:41:21] Production.INFO: ==15344== Releasing lock... [2025-04-10 04:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 04:41:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 04:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 01:42:05 [end_date_ymd] => 2025-04-10 04:42:05 [RateCDR] => 1 ) [2025-04-10 04:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 01:42:05' and `end` < '2025-04-10 04:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 04:42:18] Production.INFO: count ==381 [2025-04-10 04:42:18] Production.ERROR: pbx CDR StartTime 2025-04-10 01:42:05 - End Time 2025-04-10 04:42:05 [2025-04-10 04:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874505', 'tblTempUsageDetail_20' ) start [2025-04-10 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874505', 'tblTempUsageDetail_20' ) end [2025-04-10 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874505', 'tblTempVendorCDR_20' ) start [2025-04-10 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874505', 'tblTempVendorCDR_20' ) end [2025-04-10 04:42:18] Production.INFO: ProcessCDR(1,14874505,1,1,2) [2025-04-10 04:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874505', 'tblTempUsageDetail_20' ) start [2025-04-10 04:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874505', 'tblTempUsageDetail_20' ) end [2025-04-10 04:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 04:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 04:42:22] Production.INFO: ==15418== Releasing lock... [2025-04-10 04:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 04:42:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 01:43:05 [end_date_ymd] => 2025-04-10 04:43:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 01:43:05' and `end` < '2025-04-10 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-04-10 04:43:18] Production.INFO: count ==381 [2025-04-10 04:43:18] Production.ERROR: pbx CDR StartTime 2025-04-10 01:43:05 - End Time 2025-04-10 04:43:05 [2025-04-10 04:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874510', 'tblTempUsageDetail_20' ) start [2025-04-10 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874510', 'tblTempUsageDetail_20' ) end [2025-04-10 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874510', 'tblTempVendorCDR_20' ) start [2025-04-10 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874510', 'tblTempVendorCDR_20' ) end [2025-04-10 04:43:18] Production.INFO: ProcessCDR(1,14874510,1,1,2) [2025-04-10 04:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874510', 'tblTempUsageDetail_20' ) start [2025-04-10 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874510', 'tblTempUsageDetail_20' ) end [2025-04-10 04:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 04:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 04:43:21] Production.INFO: ==15490== Releasing lock... [2025-04-10 04:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 04:43:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 01:44:05 [end_date_ymd] => 2025-04-10 04:44:05 [RateCDR] => 1 ) [2025-04-10 04:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 01:44:05' and `end` < '2025-04-10 04:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 04:44:18] Production.INFO: count ==381 [2025-04-10 04:44:18] Production.ERROR: pbx CDR StartTime 2025-04-10 01:44:05 - End Time 2025-04-10 04:44:05 [2025-04-10 04:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874515', 'tblTempUsageDetail_20' ) start [2025-04-10 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874515', 'tblTempUsageDetail_20' ) end [2025-04-10 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874515', 'tblTempVendorCDR_20' ) start [2025-04-10 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874515', 'tblTempVendorCDR_20' ) end [2025-04-10 04:44:18] Production.INFO: ProcessCDR(1,14874515,1,1,2) [2025-04-10 04:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874515', 'tblTempUsageDetail_20' ) start [2025-04-10 04:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874515', 'tblTempUsageDetail_20' ) end [2025-04-10 04:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 04:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 04:44:22] Production.INFO: ==15570== Releasing lock... [2025-04-10 04:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 04:44:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 04:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 01:45:06 [end_date_ymd] => 2025-04-10 04:45:06 [RateCDR] => 1 ) [2025-04-10 04:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 01:45:06' and `end` < '2025-04-10 04:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 04:45:18] Production.INFO: count ==380 [2025-04-10 04:45:18] Production.ERROR: pbx CDR StartTime 2025-04-10 01:45:06 - End Time 2025-04-10 04:45:06 [2025-04-10 04:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874520', 'tblTempUsageDetail_20' ) start [2025-04-10 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874520', 'tblTempUsageDetail_20' ) end [2025-04-10 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874520', 'tblTempVendorCDR_20' ) start [2025-04-10 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874520', 'tblTempVendorCDR_20' ) end [2025-04-10 04:45:18] Production.INFO: ProcessCDR(1,14874520,1,1,2) [2025-04-10 04:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874520', 'tblTempUsageDetail_20' ) start [2025-04-10 04:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874520', 'tblTempUsageDetail_20' ) end [2025-04-10 04:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 04:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 04:45:22] Production.INFO: ==15644== Releasing lock... [2025-04-10 04:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 04:45:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 04:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 01:46:05 [end_date_ymd] => 2025-04-10 04:46:05 [RateCDR] => 1 ) [2025-04-10 04:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 01:46:05' and `end` < '2025-04-10 04:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 04:46:18] Production.INFO: count ==382 [2025-04-10 04:46:18] Production.ERROR: pbx CDR StartTime 2025-04-10 01:46:05 - End Time 2025-04-10 04:46:05 [2025-04-10 04:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874525', 'tblTempUsageDetail_20' ) start [2025-04-10 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874525', 'tblTempUsageDetail_20' ) end [2025-04-10 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874525', 'tblTempVendorCDR_20' ) start [2025-04-10 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874525', 'tblTempVendorCDR_20' ) end [2025-04-10 04:46:18] Production.INFO: ProcessCDR(1,14874525,1,1,2) [2025-04-10 04:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874525', 'tblTempUsageDetail_20' ) start [2025-04-10 04:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874525', 'tblTempUsageDetail_20' ) end [2025-04-10 04:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 04:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 04:46:21] Production.INFO: ==15721== Releasing lock... [2025-04-10 04:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 04:46:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 04:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 01:47:06 [end_date_ymd] => 2025-04-10 04:47:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 01:47:06' and `end` < '2025-04-10 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-04-10 04:47:19] Production.INFO: count ==382 [2025-04-10 04:47:19] Production.ERROR: pbx CDR StartTime 2025-04-10 01:47:06 - End Time 2025-04-10 04:47:06 [2025-04-10 04:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874530', 'tblTempUsageDetail_20' ) start [2025-04-10 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874530', 'tblTempUsageDetail_20' ) end [2025-04-10 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874530', 'tblTempVendorCDR_20' ) start [2025-04-10 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874530', 'tblTempVendorCDR_20' ) end [2025-04-10 04:47:19] Production.INFO: ProcessCDR(1,14874530,1,1,2) [2025-04-10 04:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874530', 'tblTempUsageDetail_20' ) start [2025-04-10 04:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874530', 'tblTempUsageDetail_20' ) end [2025-04-10 04:47:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 04:47:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 04:47:23] Production.INFO: ==15795== Releasing lock... [2025-04-10 04:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 04:47:23] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 01:48:05 [end_date_ymd] => 2025-04-10 04:48:05 [RateCDR] => 1 ) [2025-04-10 04:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 01:48:05' and `end` < '2025-04-10 04:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 04:48:18] Production.INFO: count ==382 [2025-04-10 04:48:18] Production.ERROR: pbx CDR StartTime 2025-04-10 01:48:05 - End Time 2025-04-10 04:48:05 [2025-04-10 04:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874535', 'tblTempUsageDetail_20' ) start [2025-04-10 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874535', 'tblTempUsageDetail_20' ) end [2025-04-10 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874535', 'tblTempVendorCDR_20' ) start [2025-04-10 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874535', 'tblTempVendorCDR_20' ) end [2025-04-10 04:48:18] Production.INFO: ProcessCDR(1,14874535,1,1,2) [2025-04-10 04:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874535', 'tblTempUsageDetail_20' ) start [2025-04-10 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874535', 'tblTempUsageDetail_20' ) end [2025-04-10 04:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 04:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 04:48:22] Production.INFO: ==15869== Releasing lock... [2025-04-10 04:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 04:48:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 01:49:05 [end_date_ymd] => 2025-04-10 04:49:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 01:49:05' and `end` < '2025-04-10 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-04-10 04:49:19] Production.INFO: count ==382 [2025-04-10 04:49:19] Production.ERROR: pbx CDR StartTime 2025-04-10 01:49:05 - End Time 2025-04-10 04:49:05 [2025-04-10 04:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874540', 'tblTempUsageDetail_20' ) start [2025-04-10 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874540', 'tblTempUsageDetail_20' ) end [2025-04-10 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874540', 'tblTempVendorCDR_20' ) start [2025-04-10 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874540', 'tblTempVendorCDR_20' ) end [2025-04-10 04:49:19] Production.INFO: ProcessCDR(1,14874540,1,1,2) [2025-04-10 04:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874540', 'tblTempUsageDetail_20' ) start [2025-04-10 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874540', 'tblTempUsageDetail_20' ) end [2025-04-10 04:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 04:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 04:49:23] Production.INFO: ==15945== Releasing lock... [2025-04-10 04:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 04:49:23] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 04:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 01:50:05 [end_date_ymd] => 2025-04-10 04:50:05 [RateCDR] => 1 ) [2025-04-10 04:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 01:50:05' and `end` < '2025-04-10 04:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 04:50:19] Production.INFO: count ==376 [2025-04-10 04:50:19] Production.ERROR: pbx CDR StartTime 2025-04-10 01:50:05 - End Time 2025-04-10 04:50:05 [2025-04-10 04:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874546', 'tblTempUsageDetail_20' ) start [2025-04-10 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874546', 'tblTempUsageDetail_20' ) end [2025-04-10 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874546', 'tblTempVendorCDR_20' ) start [2025-04-10 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874546', 'tblTempVendorCDR_20' ) end [2025-04-10 04:50:19] Production.INFO: ProcessCDR(1,14874546,1,1,2) [2025-04-10 04:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874546', 'tblTempUsageDetail_20' ) start [2025-04-10 04:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874546', 'tblTempUsageDetail_20' ) end [2025-04-10 04:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 04:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 04:50:22] Production.INFO: ==16056== Releasing lock... [2025-04-10 04:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 04:50:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-10 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 01:51:05 [end_date_ymd] => 2025-04-10 04:51:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 01:51:05' and `end` < '2025-04-10 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-04-10 04:51:18] Production.INFO: count ==370 [2025-04-10 04:51:18] Production.ERROR: pbx CDR StartTime 2025-04-10 01:51:05 - End Time 2025-04-10 04:51:05 [2025-04-10 04:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874551', 'tblTempUsageDetail_20' ) start [2025-04-10 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874551', 'tblTempUsageDetail_20' ) end [2025-04-10 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874551', 'tblTempVendorCDR_20' ) start [2025-04-10 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874551', 'tblTempVendorCDR_20' ) end [2025-04-10 04:51:19] Production.INFO: ProcessCDR(1,14874551,1,1,2) [2025-04-10 04:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874551', 'tblTempUsageDetail_20' ) start [2025-04-10 04:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874551', 'tblTempUsageDetail_20' ) end [2025-04-10 04:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 04:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 04:51:22] Production.INFO: ==16131== Releasing lock... [2025-04-10 04:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 04:51:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 01:52:05 [end_date_ymd] => 2025-04-10 04:52:05 [RateCDR] => 1 ) [2025-04-10 04:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 01:52:05' and `end` < '2025-04-10 04:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 04:52:19] Production.INFO: count ==370 [2025-04-10 04:52:19] Production.ERROR: pbx CDR StartTime 2025-04-10 01:52:05 - End Time 2025-04-10 04:52:05 [2025-04-10 04:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874556', 'tblTempUsageDetail_20' ) start [2025-04-10 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874556', 'tblTempUsageDetail_20' ) end [2025-04-10 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874556', 'tblTempVendorCDR_20' ) start [2025-04-10 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874556', 'tblTempVendorCDR_20' ) end [2025-04-10 04:52:19] Production.INFO: ProcessCDR(1,14874556,1,1,2) [2025-04-10 04:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874556', 'tblTempUsageDetail_20' ) start [2025-04-10 04:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874556', 'tblTempUsageDetail_20' ) end [2025-04-10 04:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 04:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 04:52:23] Production.INFO: ==16206== Releasing lock... [2025-04-10 04:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 04:52:23] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 01:53:05 [end_date_ymd] => 2025-04-10 04:53:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 01:53:05' and `end` < '2025-04-10 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-04-10 04:53:19] Production.INFO: count ==370 [2025-04-10 04:53:19] Production.ERROR: pbx CDR StartTime 2025-04-10 01:53:05 - End Time 2025-04-10 04:53:05 [2025-04-10 04:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874561', 'tblTempUsageDetail_20' ) start [2025-04-10 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874561', 'tblTempUsageDetail_20' ) end [2025-04-10 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874561', 'tblTempVendorCDR_20' ) start [2025-04-10 04:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874561', 'tblTempVendorCDR_20' ) end [2025-04-10 04:53:19] Production.INFO: ProcessCDR(1,14874561,1,1,2) [2025-04-10 04:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874561', 'tblTempUsageDetail_20' ) start [2025-04-10 04:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874561', 'tblTempUsageDetail_20' ) end [2025-04-10 04:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 04:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 04:53:23] Production.INFO: ==16281== Releasing lock... [2025-04-10 04:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 04:53:23] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 04:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 01:54:04 [end_date_ymd] => 2025-04-10 04:54:04 [RateCDR] => 1 ) [2025-04-10 04:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 01:54:04' and `end` < '2025-04-10 04:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 04:54:17] Production.INFO: count ==370 [2025-04-10 04:54:18] Production.ERROR: pbx CDR StartTime 2025-04-10 01:54:04 - End Time 2025-04-10 04:54:04 [2025-04-10 04:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874566', 'tblTempUsageDetail_20' ) start [2025-04-10 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874566', 'tblTempUsageDetail_20' ) end [2025-04-10 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874566', 'tblTempVendorCDR_20' ) start [2025-04-10 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874566', 'tblTempVendorCDR_20' ) end [2025-04-10 04:54:18] Production.INFO: ProcessCDR(1,14874566,1,1,2) [2025-04-10 04:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874566', 'tblTempUsageDetail_20' ) start [2025-04-10 04:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874566', 'tblTempUsageDetail_20' ) end [2025-04-10 04:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 04:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 04:54:21] Production.INFO: ==16357== Releasing lock... [2025-04-10 04:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 04:54:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 01:55:05 [end_date_ymd] => 2025-04-10 04:55:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 01:55:05' and `end` < '2025-04-10 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-04-10 04:55:18] Production.INFO: count ==370 [2025-04-10 04:55:19] Production.ERROR: pbx CDR StartTime 2025-04-10 01:55:05 - End Time 2025-04-10 04:55:05 [2025-04-10 04:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874571', 'tblTempUsageDetail_20' ) start [2025-04-10 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874571', 'tblTempUsageDetail_20' ) end [2025-04-10 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874571', 'tblTempVendorCDR_20' ) start [2025-04-10 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874571', 'tblTempVendorCDR_20' ) end [2025-04-10 04:55:19] Production.INFO: ProcessCDR(1,14874571,1,1,2) [2025-04-10 04:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874571', 'tblTempUsageDetail_20' ) start [2025-04-10 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874571', 'tblTempUsageDetail_20' ) end [2025-04-10 04:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 04:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 04:55:22] Production.INFO: ==16430== Releasing lock... [2025-04-10 04:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 04:55:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 04:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 01:56:05 [end_date_ymd] => 2025-04-10 04:56:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 01:56:05' and `end` < '2025-04-10 04:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 04:56:18] Production.INFO: count ==370 [2025-04-10 04:56:19] Production.ERROR: pbx CDR StartTime 2025-04-10 01:56:05 - End Time 2025-04-10 04:56:05 [2025-04-10 04:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874576', 'tblTempUsageDetail_20' ) start [2025-04-10 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874576', 'tblTempUsageDetail_20' ) end [2025-04-10 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874576', 'tblTempVendorCDR_20' ) start [2025-04-10 04:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874576', 'tblTempVendorCDR_20' ) end [2025-04-10 04:56:19] Production.INFO: ProcessCDR(1,14874576,1,1,2) [2025-04-10 04:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874576', 'tblTempUsageDetail_20' ) start [2025-04-10 04:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874576', 'tblTempUsageDetail_20' ) end [2025-04-10 04:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 04:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 04:56:22] Production.INFO: ==16505== Releasing lock... [2025-04-10 04:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 04:56:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 01:57:05 [end_date_ymd] => 2025-04-10 04:57:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 01:57:05' and `end` < '2025-04-10 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-04-10 04:57:18] Production.INFO: count ==370 [2025-04-10 04:57:19] Production.ERROR: pbx CDR StartTime 2025-04-10 01:57:05 - End Time 2025-04-10 04:57:05 [2025-04-10 04:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874581', 'tblTempUsageDetail_20' ) start [2025-04-10 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874581', 'tblTempUsageDetail_20' ) end [2025-04-10 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874581', 'tblTempVendorCDR_20' ) start [2025-04-10 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874581', 'tblTempVendorCDR_20' ) end [2025-04-10 04:57:19] Production.INFO: ProcessCDR(1,14874581,1,1,2) [2025-04-10 04:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874581', 'tblTempUsageDetail_20' ) start [2025-04-10 04:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874581', 'tblTempUsageDetail_20' ) end [2025-04-10 04:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 04:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 04:57:22] Production.INFO: ==16579== Releasing lock... [2025-04-10 04:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 04:57:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 01:58:05 [end_date_ymd] => 2025-04-10 04:58:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 01:58:05' and `end` < '2025-04-10 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-04-10 04:58:19] Production.INFO: count ==368 [2025-04-10 04:58:19] Production.ERROR: pbx CDR StartTime 2025-04-10 01:58:05 - End Time 2025-04-10 04:58:05 [2025-04-10 04:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874586', 'tblTempUsageDetail_20' ) start [2025-04-10 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874586', 'tblTempUsageDetail_20' ) end [2025-04-10 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874586', 'tblTempVendorCDR_20' ) start [2025-04-10 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874586', 'tblTempVendorCDR_20' ) end [2025-04-10 04:58:19] Production.INFO: ProcessCDR(1,14874586,1,1,2) [2025-04-10 04:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874586', 'tblTempUsageDetail_20' ) start [2025-04-10 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874586', 'tblTempUsageDetail_20' ) end [2025-04-10 04:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 04:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 04:58:22] Production.INFO: ==16663== Releasing lock... [2025-04-10 04:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 04:58:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-10 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 01:59:05 [end_date_ymd] => 2025-04-10 04:59:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 01:59:05' and `end` < '2025-04-10 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-04-10 04:59:18] Production.INFO: count ==367 [2025-04-10 04:59:18] Production.ERROR: pbx CDR StartTime 2025-04-10 01:59:05 - End Time 2025-04-10 04:59:05 [2025-04-10 04:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874591', 'tblTempUsageDetail_20' ) start [2025-04-10 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874591', 'tblTempUsageDetail_20' ) end [2025-04-10 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874591', 'tblTempVendorCDR_20' ) start [2025-04-10 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874591', 'tblTempVendorCDR_20' ) end [2025-04-10 04:59:18] Production.INFO: ProcessCDR(1,14874591,1,1,2) [2025-04-10 04:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 04:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874591', 'tblTempUsageDetail_20' ) start [2025-04-10 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874591', 'tblTempUsageDetail_20' ) end [2025-04-10 04:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 04:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 04:59:21] Production.INFO: ==16738== Releasing lock... [2025-04-10 04:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 04:59:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 02:00:06 [end_date_ymd] => 2025-04-10 05:00:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 02:00:06' and `end` < '2025-04-10 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-04-10 05:00:20] Production.INFO: count ==363 [2025-04-10 05:00:20] Production.ERROR: pbx CDR StartTime 2025-04-10 02:00:06 - End Time 2025-04-10 05:00:06 [2025-04-10 05:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874597', 'tblTempUsageDetail_20' ) start [2025-04-10 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874597', 'tblTempUsageDetail_20' ) end [2025-04-10 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874597', 'tblTempVendorCDR_20' ) start [2025-04-10 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874597', 'tblTempVendorCDR_20' ) end [2025-04-10 05:00:20] Production.INFO: ProcessCDR(1,14874597,1,1,2) [2025-04-10 05:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874597', 'tblTempUsageDetail_20' ) start [2025-04-10 05:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874597', 'tblTempUsageDetail_20' ) end [2025-04-10 05:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 05:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 05:00:23] Production.INFO: ==16821== Releasing lock... [2025-04-10 05:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 05:00:23] Production.INFO: 32 MB #Memory Used# [2025-04-10 05:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 02:01:04 [end_date_ymd] => 2025-04-10 05:01:04 [RateCDR] => 1 ) [2025-04-10 05:01: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-04-10 02:01:04' and `end` < '2025-04-10 05:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 05:01:18] Production.INFO: count ==363 [2025-04-10 05:01:18] Production.ERROR: pbx CDR StartTime 2025-04-10 02:01:04 - End Time 2025-04-10 05:01:04 [2025-04-10 05:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874602', 'tblTempUsageDetail_20' ) start [2025-04-10 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874602', 'tblTempUsageDetail_20' ) end [2025-04-10 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874602', 'tblTempVendorCDR_20' ) start [2025-04-10 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874602', 'tblTempVendorCDR_20' ) end [2025-04-10 05:01:18] Production.INFO: ProcessCDR(1,14874602,1,1,2) [2025-04-10 05:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874602', 'tblTempUsageDetail_20' ) start [2025-04-10 05:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874602', 'tblTempUsageDetail_20' ) end [2025-04-10 05:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 05:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 05:01:22] Production.INFO: ==16910== Releasing lock... [2025-04-10 05:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 05:01:22] Production.INFO: 32 MB #Memory Used# [2025-04-10 05:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 02:02:06 [end_date_ymd] => 2025-04-10 05:02:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 02:02:06' and `end` < '2025-04-10 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-04-10 05:02:19] Production.INFO: count ==362 [2025-04-10 05:02:19] Production.ERROR: pbx CDR StartTime 2025-04-10 02:02:06 - End Time 2025-04-10 05:02:06 [2025-04-10 05:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874607', 'tblTempUsageDetail_20' ) start [2025-04-10 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874607', 'tblTempUsageDetail_20' ) end [2025-04-10 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874607', 'tblTempVendorCDR_20' ) start [2025-04-10 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874607', 'tblTempVendorCDR_20' ) end [2025-04-10 05:02:19] Production.INFO: ProcessCDR(1,14874607,1,1,2) [2025-04-10 05:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874607', 'tblTempUsageDetail_20' ) start [2025-04-10 05:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874607', 'tblTempUsageDetail_20' ) end [2025-04-10 05:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 05:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 05:02:23] Production.INFO: ==16985== Releasing lock... [2025-04-10 05:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 05:02:23] Production.INFO: 31.25 MB #Memory Used# [2025-04-10 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 02:03:05 [end_date_ymd] => 2025-04-10 05:03:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 02:03:05' and `end` < '2025-04-10 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-04-10 05:03:18] Production.INFO: count ==362 [2025-04-10 05:03:18] Production.ERROR: pbx CDR StartTime 2025-04-10 02:03:05 - End Time 2025-04-10 05:03:05 [2025-04-10 05:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874612', 'tblTempUsageDetail_20' ) start [2025-04-10 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874612', 'tblTempUsageDetail_20' ) end [2025-04-10 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874612', 'tblTempVendorCDR_20' ) start [2025-04-10 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874612', 'tblTempVendorCDR_20' ) end [2025-04-10 05:03:18] Production.INFO: ProcessCDR(1,14874612,1,1,2) [2025-04-10 05:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874612', 'tblTempUsageDetail_20' ) start [2025-04-10 05:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874612', 'tblTempUsageDetail_20' ) end [2025-04-10 05:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 05:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 05:03:22] Production.INFO: ==17058== Releasing lock... [2025-04-10 05:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 05:03:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-10 05:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 02:04:05 [end_date_ymd] => 2025-04-10 05:04:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 02:04:05' and `end` < '2025-04-10 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-04-10 05:04:18] Production.INFO: count ==361 [2025-04-10 05:04:18] Production.ERROR: pbx CDR StartTime 2025-04-10 02:04:05 - End Time 2025-04-10 05:04:05 [2025-04-10 05:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874617', 'tblTempUsageDetail_20' ) start [2025-04-10 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874617', 'tblTempUsageDetail_20' ) end [2025-04-10 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874617', 'tblTempVendorCDR_20' ) start [2025-04-10 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874617', 'tblTempVendorCDR_20' ) end [2025-04-10 05:04:19] Production.INFO: ProcessCDR(1,14874617,1,1,2) [2025-04-10 05:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874617', 'tblTempUsageDetail_20' ) start [2025-04-10 05:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874617', 'tblTempUsageDetail_20' ) end [2025-04-10 05:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 05:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 05:04:22] Production.INFO: ==17135== Releasing lock... [2025-04-10 05:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 05:04:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 05:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 02:05:04 [end_date_ymd] => 2025-04-10 05:05:04 [RateCDR] => 1 ) [2025-04-10 05:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 02:05:04' and `end` < '2025-04-10 05:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 05:05:17] Production.INFO: count ==359 [2025-04-10 05:05:18] Production.ERROR: pbx CDR StartTime 2025-04-10 02:05:04 - End Time 2025-04-10 05:05:04 [2025-04-10 05:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874622', 'tblTempUsageDetail_20' ) start [2025-04-10 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874622', 'tblTempUsageDetail_20' ) end [2025-04-10 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874622', 'tblTempVendorCDR_20' ) start [2025-04-10 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874622', 'tblTempVendorCDR_20' ) end [2025-04-10 05:05:18] Production.INFO: ProcessCDR(1,14874622,1,1,2) [2025-04-10 05:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874622', 'tblTempUsageDetail_20' ) start [2025-04-10 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874622', 'tblTempUsageDetail_20' ) end [2025-04-10 05:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 05:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 05:05:21] Production.INFO: ==17208== Releasing lock... [2025-04-10 05:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 05:05:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 05:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 02:06:06 [end_date_ymd] => 2025-04-10 05:06:06 [RateCDR] => 1 ) [2025-04-10 05:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 02:06:06' and `end` < '2025-04-10 05:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 05:06:19] Production.INFO: count ==359 [2025-04-10 05:06:19] Production.ERROR: pbx CDR StartTime 2025-04-10 02:06:06 - End Time 2025-04-10 05:06:06 [2025-04-10 05:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874627', 'tblTempUsageDetail_20' ) start [2025-04-10 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874627', 'tblTempUsageDetail_20' ) end [2025-04-10 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874627', 'tblTempVendorCDR_20' ) start [2025-04-10 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874627', 'tblTempVendorCDR_20' ) end [2025-04-10 05:06:19] Production.INFO: ProcessCDR(1,14874627,1,1,2) [2025-04-10 05:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874627', 'tblTempUsageDetail_20' ) start [2025-04-10 05:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874627', 'tblTempUsageDetail_20' ) end [2025-04-10 05:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 05:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 05:06:22] Production.INFO: ==17323== Releasing lock... [2025-04-10 05:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 05:06:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 02:07:05 [end_date_ymd] => 2025-04-10 05:07:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 02:07:05' and `end` < '2025-04-10 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-04-10 05:07:18] Production.INFO: count ==359 [2025-04-10 05:07:18] Production.ERROR: pbx CDR StartTime 2025-04-10 02:07:05 - End Time 2025-04-10 05:07:05 [2025-04-10 05:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874632', 'tblTempUsageDetail_20' ) start [2025-04-10 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874632', 'tblTempUsageDetail_20' ) end [2025-04-10 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874632', 'tblTempVendorCDR_20' ) start [2025-04-10 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874632', 'tblTempVendorCDR_20' ) end [2025-04-10 05:07:18] Production.INFO: ProcessCDR(1,14874632,1,1,2) [2025-04-10 05:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874632', 'tblTempUsageDetail_20' ) start [2025-04-10 05:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874632', 'tblTempUsageDetail_20' ) end [2025-04-10 05:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 05:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 05:07:22] Production.INFO: ==17399== Releasing lock... [2025-04-10 05:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 05:07:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 02:08:05 [end_date_ymd] => 2025-04-10 05:08:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 02:08:05' and `end` < '2025-04-10 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-04-10 05:08:18] Production.INFO: count ==359 [2025-04-10 05:08:18] Production.ERROR: pbx CDR StartTime 2025-04-10 02:08:05 - End Time 2025-04-10 05:08:05 [2025-04-10 05:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874637', 'tblTempUsageDetail_20' ) start [2025-04-10 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874637', 'tblTempUsageDetail_20' ) end [2025-04-10 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874637', 'tblTempVendorCDR_20' ) start [2025-04-10 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874637', 'tblTempVendorCDR_20' ) end [2025-04-10 05:08:18] Production.INFO: ProcessCDR(1,14874637,1,1,2) [2025-04-10 05:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874637', 'tblTempUsageDetail_20' ) start [2025-04-10 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874637', 'tblTempUsageDetail_20' ) end [2025-04-10 05:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 05:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 05:08:21] Production.INFO: ==17475== Releasing lock... [2025-04-10 05:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 05:08:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 02:09:05 [end_date_ymd] => 2025-04-10 05:09:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 02:09:05' and `end` < '2025-04-10 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-04-10 05:09:18] Production.INFO: count ==361 [2025-04-10 05:09:18] Production.ERROR: pbx CDR StartTime 2025-04-10 02:09:05 - End Time 2025-04-10 05:09:05 [2025-04-10 05:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874642', 'tblTempUsageDetail_20' ) start [2025-04-10 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874642', 'tblTempUsageDetail_20' ) end [2025-04-10 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874642', 'tblTempVendorCDR_20' ) start [2025-04-10 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874642', 'tblTempVendorCDR_20' ) end [2025-04-10 05:09:18] Production.INFO: ProcessCDR(1,14874642,1,1,2) [2025-04-10 05:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874642', 'tblTempUsageDetail_20' ) start [2025-04-10 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874642', 'tblTempUsageDetail_20' ) end [2025-04-10 05:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 05:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 05:09:21] Production.INFO: ==17552== Releasing lock... [2025-04-10 05:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 05:09:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-10 05:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 02:10:06 [end_date_ymd] => 2025-04-10 05:10:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 02:10:06' and `end` < '2025-04-10 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-04-10 05:10:19] Production.INFO: count ==361 [2025-04-10 05:10:19] Production.ERROR: pbx CDR StartTime 2025-04-10 02:10:06 - End Time 2025-04-10 05:10:06 [2025-04-10 05:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874648', 'tblTempUsageDetail_20' ) start [2025-04-10 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874648', 'tblTempUsageDetail_20' ) end [2025-04-10 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874648', 'tblTempVendorCDR_20' ) start [2025-04-10 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874648', 'tblTempVendorCDR_20' ) end [2025-04-10 05:10:19] Production.INFO: ProcessCDR(1,14874648,1,1,2) [2025-04-10 05:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874648', 'tblTempUsageDetail_20' ) start [2025-04-10 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874648', 'tblTempUsageDetail_20' ) end [2025-04-10 05:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 05:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 05:10:22] Production.INFO: ==17629== Releasing lock... [2025-04-10 05:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 05:10:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-10 05:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 02:11:04 [end_date_ymd] => 2025-04-10 05:11:04 [RateCDR] => 1 ) [2025-04-10 05: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-04-10 02:11:04' and `end` < '2025-04-10 05: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-04-10 05:11:17] Production.INFO: count ==361 [2025-04-10 05:11:17] Production.ERROR: pbx CDR StartTime 2025-04-10 02:11:04 - End Time 2025-04-10 05:11:04 [2025-04-10 05:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874653', 'tblTempUsageDetail_20' ) start [2025-04-10 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874653', 'tblTempUsageDetail_20' ) end [2025-04-10 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874653', 'tblTempVendorCDR_20' ) start [2025-04-10 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874653', 'tblTempVendorCDR_20' ) end [2025-04-10 05:11:17] Production.INFO: ProcessCDR(1,14874653,1,1,2) [2025-04-10 05:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874653', 'tblTempUsageDetail_20' ) start [2025-04-10 05:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874653', 'tblTempUsageDetail_20' ) end [2025-04-10 05:11:20] Production.ERROR: pbx prc_insertCDR start [2025-04-10 05:11:20] Production.ERROR: pbx prc_insertCDR end [2025-04-10 05:11:20] Production.INFO: ==17703== Releasing lock... [2025-04-10 05:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 05:11:20] Production.INFO: 31.25 MB #Memory Used# [2025-04-10 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 02:12:05 [end_date_ymd] => 2025-04-10 05:12:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 02:12:05' and `end` < '2025-04-10 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-04-10 05:12:18] Production.INFO: count ==361 [2025-04-10 05:12:18] Production.ERROR: pbx CDR StartTime 2025-04-10 02:12:05 - End Time 2025-04-10 05:12:05 [2025-04-10 05:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874658', 'tblTempUsageDetail_20' ) start [2025-04-10 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874658', 'tblTempUsageDetail_20' ) end [2025-04-10 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874658', 'tblTempVendorCDR_20' ) start [2025-04-10 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874658', 'tblTempVendorCDR_20' ) end [2025-04-10 05:12:18] Production.INFO: ProcessCDR(1,14874658,1,1,2) [2025-04-10 05:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874658', 'tblTempUsageDetail_20' ) start [2025-04-10 05:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874658', 'tblTempUsageDetail_20' ) end [2025-04-10 05:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 05:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 05:12:22] Production.INFO: ==17782== Releasing lock... [2025-04-10 05:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 05:12:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-10 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 02:13:05 [end_date_ymd] => 2025-04-10 05:13:05 [RateCDR] => 1 ) [2025-04-10 05:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 02:13:05' and `end` < '2025-04-10 05:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 05:13:18] Production.INFO: count ==361 [2025-04-10 05:13:18] Production.ERROR: pbx CDR StartTime 2025-04-10 02:13:05 - End Time 2025-04-10 05:13:05 [2025-04-10 05:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874663', 'tblTempUsageDetail_20' ) start [2025-04-10 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874663', 'tblTempUsageDetail_20' ) end [2025-04-10 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874663', 'tblTempVendorCDR_20' ) start [2025-04-10 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874663', 'tblTempVendorCDR_20' ) end [2025-04-10 05:13:18] Production.INFO: ProcessCDR(1,14874663,1,1,2) [2025-04-10 05:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874663', 'tblTempUsageDetail_20' ) start [2025-04-10 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874663', 'tblTempUsageDetail_20' ) end [2025-04-10 05:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 05:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 05:13:21] Production.INFO: ==17863== Releasing lock... [2025-04-10 05:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 05:13:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-10 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 02:14:04 [end_date_ymd] => 2025-04-10 05:14:04 [RateCDR] => 1 ) [2025-04-10 05:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 02:14:04' and `end` < '2025-04-10 05: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-04-10 05:14:17] Production.INFO: count ==361 [2025-04-10 05:14:17] Production.ERROR: pbx CDR StartTime 2025-04-10 02:14:04 - End Time 2025-04-10 05:14:04 [2025-04-10 05:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874668', 'tblTempUsageDetail_20' ) start [2025-04-10 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874668', 'tblTempUsageDetail_20' ) end [2025-04-10 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874668', 'tblTempVendorCDR_20' ) start [2025-04-10 05:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874668', 'tblTempVendorCDR_20' ) end [2025-04-10 05:14:17] Production.INFO: ProcessCDR(1,14874668,1,1,2) [2025-04-10 05:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874668', 'tblTempUsageDetail_20' ) start [2025-04-10 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874668', 'tblTempUsageDetail_20' ) end [2025-04-10 05:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 05:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 05:14:21] Production.INFO: ==17939== Releasing lock... [2025-04-10 05:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 05:14:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-10 05:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 02:15:06 [end_date_ymd] => 2025-04-10 05:15:06 [RateCDR] => 1 ) [2025-04-10 05: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-04-10 02:15:06' and `end` < '2025-04-10 05: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-04-10 05:15:19] Production.INFO: count ==361 [2025-04-10 05:15:19] Production.ERROR: pbx CDR StartTime 2025-04-10 02:15:06 - End Time 2025-04-10 05:15:06 [2025-04-10 05:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 05:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874673', 'tblTempUsageDetail_20' ) start [2025-04-10 05:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874673', 'tblTempUsageDetail_20' ) end [2025-04-10 05:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874673', 'tblTempVendorCDR_20' ) start [2025-04-10 05:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874673', 'tblTempVendorCDR_20' ) end [2025-04-10 05:15:19] Production.INFO: ProcessCDR(1,14874673,1,1,2) [2025-04-10 05:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874673', 'tblTempUsageDetail_20' ) start [2025-04-10 05:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874673', 'tblTempUsageDetail_20' ) end [2025-04-10 05:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 05:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 05:15:22] Production.INFO: ==18014== Releasing lock... [2025-04-10 05:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 05:15:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-10 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 02:16:05 [end_date_ymd] => 2025-04-10 05:16:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 02:16:05' and `end` < '2025-04-10 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-04-10 05:16:18] Production.INFO: count ==361 [2025-04-10 05:16:18] Production.ERROR: pbx CDR StartTime 2025-04-10 02:16:05 - End Time 2025-04-10 05:16:05 [2025-04-10 05:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874678', 'tblTempUsageDetail_20' ) start [2025-04-10 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874678', 'tblTempUsageDetail_20' ) end [2025-04-10 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874678', 'tblTempVendorCDR_20' ) start [2025-04-10 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874678', 'tblTempVendorCDR_20' ) end [2025-04-10 05:16:18] Production.INFO: ProcessCDR(1,14874678,1,1,2) [2025-04-10 05:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874678', 'tblTempUsageDetail_20' ) start [2025-04-10 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874678', 'tblTempUsageDetail_20' ) end [2025-04-10 05:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 05:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 05:16:21] Production.INFO: ==18089== Releasing lock... [2025-04-10 05:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 05:16:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-10 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 02:17:05 [end_date_ymd] => 2025-04-10 05:17:05 [RateCDR] => 1 ) [2025-04-10 05:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 02:17:05' and `end` < '2025-04-10 05:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 05:17:18] Production.INFO: count ==361 [2025-04-10 05:17:18] Production.ERROR: pbx CDR StartTime 2025-04-10 02:17:05 - End Time 2025-04-10 05:17:05 [2025-04-10 05:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874683', 'tblTempUsageDetail_20' ) start [2025-04-10 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874683', 'tblTempUsageDetail_20' ) end [2025-04-10 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874683', 'tblTempVendorCDR_20' ) start [2025-04-10 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874683', 'tblTempVendorCDR_20' ) end [2025-04-10 05:17:18] Production.INFO: ProcessCDR(1,14874683,1,1,2) [2025-04-10 05:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874683', 'tblTempUsageDetail_20' ) start [2025-04-10 05:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874683', 'tblTempUsageDetail_20' ) end [2025-04-10 05:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 05:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 05:17:22] Production.INFO: ==18163== Releasing lock... [2025-04-10 05:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 05:17:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-10 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 02:18:05 [end_date_ymd] => 2025-04-10 05:18:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 02:18:05' and `end` < '2025-04-10 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-04-10 05:18:18] Production.INFO: count ==361 [2025-04-10 05:18:18] Production.ERROR: pbx CDR StartTime 2025-04-10 02:18:05 - End Time 2025-04-10 05:18:05 [2025-04-10 05:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874688', 'tblTempUsageDetail_20' ) start [2025-04-10 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874688', 'tblTempUsageDetail_20' ) end [2025-04-10 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874688', 'tblTempVendorCDR_20' ) start [2025-04-10 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874688', 'tblTempVendorCDR_20' ) end [2025-04-10 05:18:18] Production.INFO: ProcessCDR(1,14874688,1,1,2) [2025-04-10 05:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874688', 'tblTempUsageDetail_20' ) start [2025-04-10 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874688', 'tblTempUsageDetail_20' ) end [2025-04-10 05:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 05:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 05:18:21] Production.INFO: ==18252== Releasing lock... [2025-04-10 05:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 05:18:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-10 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 02:19:05 [end_date_ymd] => 2025-04-10 05:19:05 [RateCDR] => 1 ) [2025-04-10 05:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 02:19:05' and `end` < '2025-04-10 05:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 05:19:18] Production.INFO: count ==359 [2025-04-10 05:19:18] Production.ERROR: pbx CDR StartTime 2025-04-10 02:19:05 - End Time 2025-04-10 05:19:05 [2025-04-10 05:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874693', 'tblTempUsageDetail_20' ) start [2025-04-10 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874693', 'tblTempUsageDetail_20' ) end [2025-04-10 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874693', 'tblTempVendorCDR_20' ) start [2025-04-10 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874693', 'tblTempVendorCDR_20' ) end [2025-04-10 05:19:18] Production.INFO: ProcessCDR(1,14874693,1,1,2) [2025-04-10 05:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874693', 'tblTempUsageDetail_20' ) start [2025-04-10 05:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874693', 'tblTempUsageDetail_20' ) end [2025-04-10 05:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 05:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 05:19:22] Production.INFO: ==18332== Releasing lock... [2025-04-10 05:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 05:19:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 05:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 02:20:05 [end_date_ymd] => 2025-04-10 05:20:05 [RateCDR] => 1 ) [2025-04-10 05:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 02:20:05' and `end` < '2025-04-10 05:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 05:20:18] Production.INFO: count ==351 [2025-04-10 05:20:18] Production.ERROR: pbx CDR StartTime 2025-04-10 02:20:05 - End Time 2025-04-10 05:20:05 [2025-04-10 05:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874699', 'tblTempUsageDetail_20' ) start [2025-04-10 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874699', 'tblTempUsageDetail_20' ) end [2025-04-10 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874699', 'tblTempVendorCDR_20' ) start [2025-04-10 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874699', 'tblTempVendorCDR_20' ) end [2025-04-10 05:20:18] Production.INFO: ProcessCDR(1,14874699,1,1,2) [2025-04-10 05:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874699', 'tblTempUsageDetail_20' ) start [2025-04-10 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874699', 'tblTempUsageDetail_20' ) end [2025-04-10 05:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 05:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 05:20:22] Production.INFO: ==18407== Releasing lock... [2025-04-10 05:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 05:20:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 02:21:05 [end_date_ymd] => 2025-04-10 05:21:05 [RateCDR] => 1 ) [2025-04-10 05:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 02:21:05' and `end` < '2025-04-10 05:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 05:21:18] Production.INFO: count ==349 [2025-04-10 05:21:18] Production.ERROR: pbx CDR StartTime 2025-04-10 02:21:05 - End Time 2025-04-10 05:21:05 [2025-04-10 05:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874704', 'tblTempUsageDetail_20' ) start [2025-04-10 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874704', 'tblTempUsageDetail_20' ) end [2025-04-10 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874704', 'tblTempVendorCDR_20' ) start [2025-04-10 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874704', 'tblTempVendorCDR_20' ) end [2025-04-10 05:21:18] Production.INFO: ProcessCDR(1,14874704,1,1,2) [2025-04-10 05:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874704', 'tblTempUsageDetail_20' ) start [2025-04-10 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874704', 'tblTempUsageDetail_20' ) end [2025-04-10 05:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 05:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 05:21:21] Production.INFO: ==18523== Releasing lock... [2025-04-10 05:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 05:21:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 02:22:05 [end_date_ymd] => 2025-04-10 05:22:05 [RateCDR] => 1 ) [2025-04-10 05:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 02:22:05' and `end` < '2025-04-10 05:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 05:22:18] Production.INFO: count ==347 [2025-04-10 05:22:18] Production.ERROR: pbx CDR StartTime 2025-04-10 02:22:05 - End Time 2025-04-10 05:22:05 [2025-04-10 05:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874709', 'tblTempUsageDetail_20' ) start [2025-04-10 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874709', 'tblTempUsageDetail_20' ) end [2025-04-10 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874709', 'tblTempVendorCDR_20' ) start [2025-04-10 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874709', 'tblTempVendorCDR_20' ) end [2025-04-10 05:22:18] Production.INFO: ProcessCDR(1,14874709,1,1,2) [2025-04-10 05:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874709', 'tblTempUsageDetail_20' ) start [2025-04-10 05:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874709', 'tblTempUsageDetail_20' ) end [2025-04-10 05:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 05:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 05:22:22] Production.INFO: ==18602== Releasing lock... [2025-04-10 05:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 05:22:22] Production.INFO: 31 MB #Memory Used# [2025-04-10 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 02:23:05 [end_date_ymd] => 2025-04-10 05:23:05 [RateCDR] => 1 ) [2025-04-10 05:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 02:23:05' and `end` < '2025-04-10 05:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 05:23:18] Production.INFO: count ==347 [2025-04-10 05:23:18] Production.ERROR: pbx CDR StartTime 2025-04-10 02:23:05 - End Time 2025-04-10 05:23:05 [2025-04-10 05:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874714', 'tblTempUsageDetail_20' ) start [2025-04-10 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874714', 'tblTempUsageDetail_20' ) end [2025-04-10 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874714', 'tblTempVendorCDR_20' ) start [2025-04-10 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874714', 'tblTempVendorCDR_20' ) end [2025-04-10 05:23:18] Production.INFO: ProcessCDR(1,14874714,1,1,2) [2025-04-10 05:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874714', 'tblTempUsageDetail_20' ) start [2025-04-10 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874714', 'tblTempUsageDetail_20' ) end [2025-04-10 05:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 05:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 05:23:22] Production.INFO: ==18675== Releasing lock... [2025-04-10 05:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 05:23:22] Production.INFO: 31 MB #Memory Used# [2025-04-10 05:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 02:24:06 [end_date_ymd] => 2025-04-10 05:24:06 [RateCDR] => 1 ) [2025-04-10 05:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 02:24:06' and `end` < '2025-04-10 05:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 05:24:18] Production.INFO: count ==347 [2025-04-10 05:24:19] Production.ERROR: pbx CDR StartTime 2025-04-10 02:24:06 - End Time 2025-04-10 05:24:06 [2025-04-10 05:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 05:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874719', 'tblTempUsageDetail_20' ) start [2025-04-10 05:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874719', 'tblTempUsageDetail_20' ) end [2025-04-10 05:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874719', 'tblTempVendorCDR_20' ) start [2025-04-10 05:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874719', 'tblTempVendorCDR_20' ) end [2025-04-10 05:24:19] Production.INFO: ProcessCDR(1,14874719,1,1,2) [2025-04-10 05:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874719', 'tblTempUsageDetail_20' ) start [2025-04-10 05:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874719', 'tblTempUsageDetail_20' ) end [2025-04-10 05:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 05:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 05:24:22] Production.INFO: ==18750== Releasing lock... [2025-04-10 05:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 05:24:22] Production.INFO: 31 MB #Memory Used# [2025-04-10 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 02:25:05 [end_date_ymd] => 2025-04-10 05:25:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 02:25:05' and `end` < '2025-04-10 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-04-10 05:25:18] Production.INFO: count ==347 [2025-04-10 05:25:18] Production.ERROR: pbx CDR StartTime 2025-04-10 02:25:05 - End Time 2025-04-10 05:25:05 [2025-04-10 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874724', 'tblTempUsageDetail_20' ) start [2025-04-10 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874724', 'tblTempUsageDetail_20' ) end [2025-04-10 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874724', 'tblTempVendorCDR_20' ) start [2025-04-10 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874724', 'tblTempVendorCDR_20' ) end [2025-04-10 05:25:18] Production.INFO: ProcessCDR(1,14874724,1,1,2) [2025-04-10 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874724', 'tblTempUsageDetail_20' ) start [2025-04-10 05:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874724', 'tblTempUsageDetail_20' ) end [2025-04-10 05:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 05:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 05:25:22] Production.INFO: ==18825== Releasing lock... [2025-04-10 05:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 05:25:22] Production.INFO: 31 MB #Memory Used# [2025-04-10 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 02:26:05 [end_date_ymd] => 2025-04-10 05:26:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 02:26:05' and `end` < '2025-04-10 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-04-10 05:26:18] Production.INFO: count ==347 [2025-04-10 05:26:18] Production.ERROR: pbx CDR StartTime 2025-04-10 02:26:05 - End Time 2025-04-10 05:26:05 [2025-04-10 05:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874729', 'tblTempUsageDetail_20' ) start [2025-04-10 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874729', 'tblTempUsageDetail_20' ) end [2025-04-10 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874729', 'tblTempVendorCDR_20' ) start [2025-04-10 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874729', 'tblTempVendorCDR_20' ) end [2025-04-10 05:26:18] Production.INFO: ProcessCDR(1,14874729,1,1,2) [2025-04-10 05:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874729', 'tblTempUsageDetail_20' ) start [2025-04-10 05:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874729', 'tblTempUsageDetail_20' ) end [2025-04-10 05:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 05:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 05:26:22] Production.INFO: ==18903== Releasing lock... [2025-04-10 05:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 05:26:22] Production.INFO: 31 MB #Memory Used# [2025-04-10 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 02:27:05 [end_date_ymd] => 2025-04-10 05:27:05 [RateCDR] => 1 ) [2025-04-10 05:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 02:27:05' and `end` < '2025-04-10 05:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 05:27:18] Production.INFO: count ==347 [2025-04-10 05:27:18] Production.ERROR: pbx CDR StartTime 2025-04-10 02:27:05 - End Time 2025-04-10 05:27:05 [2025-04-10 05:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874734', 'tblTempUsageDetail_20' ) start [2025-04-10 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874734', 'tblTempUsageDetail_20' ) end [2025-04-10 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874734', 'tblTempVendorCDR_20' ) start [2025-04-10 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874734', 'tblTempVendorCDR_20' ) end [2025-04-10 05:27:18] Production.INFO: ProcessCDR(1,14874734,1,1,2) [2025-04-10 05:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874734', 'tblTempUsageDetail_20' ) start [2025-04-10 05:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874734', 'tblTempUsageDetail_20' ) end [2025-04-10 05:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 05:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 05:27:22] Production.INFO: ==18987== Releasing lock... [2025-04-10 05:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 05:27:22] Production.INFO: 31 MB #Memory Used# [2025-04-10 05:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 02:28:06 [end_date_ymd] => 2025-04-10 05:28:06 [RateCDR] => 1 ) [2025-04-10 05:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 02:28:06' and `end` < '2025-04-10 05:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 05:28:19] Production.INFO: count ==347 [2025-04-10 05:28:19] Production.ERROR: pbx CDR StartTime 2025-04-10 02:28:06 - End Time 2025-04-10 05:28:06 [2025-04-10 05:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 05:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874739', 'tblTempUsageDetail_20' ) start [2025-04-10 05:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874739', 'tblTempUsageDetail_20' ) end [2025-04-10 05:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874739', 'tblTempVendorCDR_20' ) start [2025-04-10 05:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874739', 'tblTempVendorCDR_20' ) end [2025-04-10 05:28:19] Production.INFO: ProcessCDR(1,14874739,1,1,2) [2025-04-10 05:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874739', 'tblTempUsageDetail_20' ) start [2025-04-10 05:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874739', 'tblTempUsageDetail_20' ) end [2025-04-10 05:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 05:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 05:28:22] Production.INFO: ==19065== Releasing lock... [2025-04-10 05:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 05:28:22] Production.INFO: 31 MB #Memory Used# [2025-04-10 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 02:29:05 [end_date_ymd] => 2025-04-10 05:29:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 02:29:05' and `end` < '2025-04-10 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-04-10 05:29:18] Production.INFO: count ==347 [2025-04-10 05:29:18] Production.ERROR: pbx CDR StartTime 2025-04-10 02:29:05 - End Time 2025-04-10 05:29:05 [2025-04-10 05:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874744', 'tblTempUsageDetail_20' ) start [2025-04-10 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874744', 'tblTempUsageDetail_20' ) end [2025-04-10 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874744', 'tblTempVendorCDR_20' ) start [2025-04-10 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874744', 'tblTempVendorCDR_20' ) end [2025-04-10 05:29:18] Production.INFO: ProcessCDR(1,14874744,1,1,2) [2025-04-10 05:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874744', 'tblTempUsageDetail_20' ) start [2025-04-10 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874744', 'tblTempUsageDetail_20' ) end [2025-04-10 05:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 05:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 05:29:21] Production.INFO: ==19139== Releasing lock... [2025-04-10 05:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 05:29:21] Production.INFO: 31 MB #Memory Used# [2025-04-10 05:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 02:30:07 [end_date_ymd] => 2025-04-10 05:30:07 [RateCDR] => 1 ) [2025-04-10 05: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-04-10 02:30:07' and `end` < '2025-04-10 05: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-04-10 05:30:19] Production.INFO: count ==345 [2025-04-10 05:30:19] Production.ERROR: pbx CDR StartTime 2025-04-10 02:30:07 - End Time 2025-04-10 05:30:07 [2025-04-10 05:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874750', 'tblTempUsageDetail_20' ) start [2025-04-10 05:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874750', 'tblTempUsageDetail_20' ) end [2025-04-10 05:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874750', 'tblTempVendorCDR_20' ) start [2025-04-10 05:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874750', 'tblTempVendorCDR_20' ) end [2025-04-10 05:30:20] Production.INFO: ProcessCDR(1,14874750,1,1,2) [2025-04-10 05:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874750', 'tblTempUsageDetail_20' ) start [2025-04-10 05:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874750', 'tblTempUsageDetail_20' ) end [2025-04-10 05:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 05:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 05:30:23] Production.INFO: ==19214== Releasing lock... [2025-04-10 05:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 05:30:23] Production.INFO: 31 MB #Memory Used# [2025-04-10 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 02:31:05 [end_date_ymd] => 2025-04-10 05:31:05 [RateCDR] => 1 ) [2025-04-10 05:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 02:31:05' and `end` < '2025-04-10 05:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 05:31:18] Production.INFO: count ==345 [2025-04-10 05:31:18] Production.ERROR: pbx CDR StartTime 2025-04-10 02:31:05 - End Time 2025-04-10 05:31:05 [2025-04-10 05:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874755', 'tblTempUsageDetail_20' ) start [2025-04-10 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874755', 'tblTempUsageDetail_20' ) end [2025-04-10 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874755', 'tblTempVendorCDR_20' ) start [2025-04-10 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874755', 'tblTempVendorCDR_20' ) end [2025-04-10 05:31:18] Production.INFO: ProcessCDR(1,14874755,1,1,2) [2025-04-10 05:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874755', 'tblTempUsageDetail_20' ) start [2025-04-10 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874755', 'tblTempUsageDetail_20' ) end [2025-04-10 05:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 05:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 05:31:21] Production.INFO: ==19291== Releasing lock... [2025-04-10 05:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 05:31:21] Production.INFO: 31 MB #Memory Used# [2025-04-10 05:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 02:32:06 [end_date_ymd] => 2025-04-10 05:32:06 [RateCDR] => 1 ) [2025-04-10 05: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-04-10 02:32:06' and `end` < '2025-04-10 05: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-04-10 05:32:18] Production.INFO: count ==345 [2025-04-10 05:32:18] Production.ERROR: pbx CDR StartTime 2025-04-10 02:32:06 - End Time 2025-04-10 05:32:06 [2025-04-10 05:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874760', 'tblTempUsageDetail_20' ) start [2025-04-10 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874760', 'tblTempUsageDetail_20' ) end [2025-04-10 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874760', 'tblTempVendorCDR_20' ) start [2025-04-10 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874760', 'tblTempVendorCDR_20' ) end [2025-04-10 05:32:18] Production.INFO: ProcessCDR(1,14874760,1,1,2) [2025-04-10 05:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874760', 'tblTempUsageDetail_20' ) start [2025-04-10 05:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874760', 'tblTempUsageDetail_20' ) end [2025-04-10 05:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 05:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 05:32:22] Production.INFO: ==19364== Releasing lock... [2025-04-10 05:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 05:32:22] Production.INFO: 31 MB #Memory Used# [2025-04-10 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 02:33:05 [end_date_ymd] => 2025-04-10 05:33:05 [RateCDR] => 1 ) [2025-04-10 05:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 02:33:05' and `end` < '2025-04-10 05:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 05:33:17] Production.INFO: count ==346 [2025-04-10 05:33:17] Production.ERROR: pbx CDR StartTime 2025-04-10 02:33:05 - End Time 2025-04-10 05:33:05 [2025-04-10 05:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874765', 'tblTempUsageDetail_20' ) start [2025-04-10 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874765', 'tblTempUsageDetail_20' ) end [2025-04-10 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874765', 'tblTempVendorCDR_20' ) start [2025-04-10 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874765', 'tblTempVendorCDR_20' ) end [2025-04-10 05:33:17] Production.INFO: ProcessCDR(1,14874765,1,1,2) [2025-04-10 05:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874765', 'tblTempUsageDetail_20' ) start [2025-04-10 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874765', 'tblTempUsageDetail_20' ) end [2025-04-10 05:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 05:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 05:33:21] Production.INFO: ==19442== Releasing lock... [2025-04-10 05:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 05:33:21] Production.INFO: 31 MB #Memory Used# [2025-04-10 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 02:34:05 [end_date_ymd] => 2025-04-10 05:34:05 [RateCDR] => 1 ) [2025-04-10 05:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 02:34:05' and `end` < '2025-04-10 05:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 05:34:18] Production.INFO: count ==345 [2025-04-10 05:34:18] Production.ERROR: pbx CDR StartTime 2025-04-10 02:34:05 - End Time 2025-04-10 05:34:05 [2025-04-10 05:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874770', 'tblTempUsageDetail_20' ) start [2025-04-10 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874770', 'tblTempUsageDetail_20' ) end [2025-04-10 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874770', 'tblTempVendorCDR_20' ) start [2025-04-10 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874770', 'tblTempVendorCDR_20' ) end [2025-04-10 05:34:18] Production.INFO: ProcessCDR(1,14874770,1,1,2) [2025-04-10 05:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874770', 'tblTempUsageDetail_20' ) start [2025-04-10 05:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874770', 'tblTempUsageDetail_20' ) end [2025-04-10 05:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 05:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 05:34:22] Production.INFO: ==19516== Releasing lock... [2025-04-10 05:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 05:34:22] Production.INFO: 31 MB #Memory Used# [2025-04-10 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 02:35:05 [end_date_ymd] => 2025-04-10 05:35:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 02:35:05' and `end` < '2025-04-10 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-04-10 05:35:18] Production.INFO: count ==344 [2025-04-10 05:35:18] Production.ERROR: pbx CDR StartTime 2025-04-10 02:35:05 - End Time 2025-04-10 05:35:05 [2025-04-10 05:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874775', 'tblTempUsageDetail_20' ) start [2025-04-10 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874775', 'tblTempUsageDetail_20' ) end [2025-04-10 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874775', 'tblTempVendorCDR_20' ) start [2025-04-10 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874775', 'tblTempVendorCDR_20' ) end [2025-04-10 05:35:18] Production.INFO: ProcessCDR(1,14874775,1,1,2) [2025-04-10 05:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874775', 'tblTempUsageDetail_20' ) start [2025-04-10 05:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874775', 'tblTempUsageDetail_20' ) end [2025-04-10 05:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 05:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 05:35:22] Production.INFO: ==19590== Releasing lock... [2025-04-10 05:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 05:35:22] Production.INFO: 31 MB #Memory Used# [2025-04-10 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 02:36:05 [end_date_ymd] => 2025-04-10 05:36:05 [RateCDR] => 1 ) [2025-04-10 05:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 02:36:05' and `end` < '2025-04-10 05:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 05:36:18] Production.INFO: count ==346 [2025-04-10 05:36:18] Production.ERROR: pbx CDR StartTime 2025-04-10 02:36:05 - End Time 2025-04-10 05:36:05 [2025-04-10 05:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874780', 'tblTempUsageDetail_20' ) start [2025-04-10 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874780', 'tblTempUsageDetail_20' ) end [2025-04-10 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874780', 'tblTempVendorCDR_20' ) start [2025-04-10 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874780', 'tblTempVendorCDR_20' ) end [2025-04-10 05:36:18] Production.INFO: ProcessCDR(1,14874780,1,1,2) [2025-04-10 05:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874780', 'tblTempUsageDetail_20' ) start [2025-04-10 05:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874780', 'tblTempUsageDetail_20' ) end [2025-04-10 05:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 05:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 05:36:22] Production.INFO: ==19662== Releasing lock... [2025-04-10 05:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 05:36:22] Production.INFO: 31 MB #Memory Used# [2025-04-10 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 02:37:05 [end_date_ymd] => 2025-04-10 05:37:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 02:37:05' and `end` < '2025-04-10 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-04-10 05:37:18] Production.INFO: count ==346 [2025-04-10 05:37:18] Production.ERROR: pbx CDR StartTime 2025-04-10 02:37:05 - End Time 2025-04-10 05:37:05 [2025-04-10 05:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874785', 'tblTempUsageDetail_20' ) start [2025-04-10 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874785', 'tblTempUsageDetail_20' ) end [2025-04-10 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874785', 'tblTempVendorCDR_20' ) start [2025-04-10 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874785', 'tblTempVendorCDR_20' ) end [2025-04-10 05:37:18] Production.INFO: ProcessCDR(1,14874785,1,1,2) [2025-04-10 05:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874785', 'tblTempUsageDetail_20' ) start [2025-04-10 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874785', 'tblTempUsageDetail_20' ) end [2025-04-10 05:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 05:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 05:37:21] Production.INFO: ==19777== Releasing lock... [2025-04-10 05:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 05:37:21] Production.INFO: 31 MB #Memory Used# [2025-04-10 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 02:38:05 [end_date_ymd] => 2025-04-10 05:38:05 [RateCDR] => 1 ) [2025-04-10 05:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 02:38:05' and `end` < '2025-04-10 05:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 05:38:18] Production.INFO: count ==346 [2025-04-10 05:38:18] Production.ERROR: pbx CDR StartTime 2025-04-10 02:38:05 - End Time 2025-04-10 05:38:05 [2025-04-10 05:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874789', 'tblTempUsageDetail_20' ) start [2025-04-10 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874789', 'tblTempUsageDetail_20' ) end [2025-04-10 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874789', 'tblTempVendorCDR_20' ) start [2025-04-10 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874789', 'tblTempVendorCDR_20' ) end [2025-04-10 05:38:18] Production.INFO: ProcessCDR(1,14874789,1,1,2) [2025-04-10 05:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874789', 'tblTempUsageDetail_20' ) start [2025-04-10 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874789', 'tblTempUsageDetail_20' ) end [2025-04-10 05:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 05:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 05:38:21] Production.INFO: ==19853== Releasing lock... [2025-04-10 05:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 05:38:21] Production.INFO: 31 MB #Memory Used# [2025-04-10 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 02:39:05 [end_date_ymd] => 2025-04-10 05:39:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 02:39:05' and `end` < '2025-04-10 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-04-10 05:39:18] Production.INFO: count ==346 [2025-04-10 05:39:18] Production.ERROR: pbx CDR StartTime 2025-04-10 02:39:05 - End Time 2025-04-10 05:39:05 [2025-04-10 05:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874795', 'tblTempUsageDetail_20' ) start [2025-04-10 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874795', 'tblTempUsageDetail_20' ) end [2025-04-10 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874795', 'tblTempVendorCDR_20' ) start [2025-04-10 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874795', 'tblTempVendorCDR_20' ) end [2025-04-10 05:39:18] Production.INFO: ProcessCDR(1,14874795,1,1,2) [2025-04-10 05:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874795', 'tblTempUsageDetail_20' ) start [2025-04-10 05:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874795', 'tblTempUsageDetail_20' ) end [2025-04-10 05:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 05:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 05:39:22] Production.INFO: ==19927== Releasing lock... [2025-04-10 05:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 05:39:22] Production.INFO: 31 MB #Memory Used# [2025-04-10 05:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 02:40:07 [end_date_ymd] => 2025-04-10 05:40:07 [RateCDR] => 1 ) [2025-04-10 05: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-04-10 02:40:07' and `end` < '2025-04-10 05: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-04-10 05:40:19] Production.INFO: count ==354 [2025-04-10 05:40:19] Production.ERROR: pbx CDR StartTime 2025-04-10 02:40:07 - End Time 2025-04-10 05:40:07 [2025-04-10 05:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874801', 'tblTempUsageDetail_20' ) start [2025-04-10 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874801', 'tblTempUsageDetail_20' ) end [2025-04-10 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874801', 'tblTempVendorCDR_20' ) start [2025-04-10 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874801', 'tblTempVendorCDR_20' ) end [2025-04-10 05:40:19] Production.INFO: ProcessCDR(1,14874801,1,1,2) [2025-04-10 05:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874801', 'tblTempUsageDetail_20' ) start [2025-04-10 05:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874801', 'tblTempUsageDetail_20' ) end [2025-04-10 05:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 05:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 05:40:23] Production.INFO: ==20001== Releasing lock... [2025-04-10 05:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 05:40:23] Production.INFO: 31.25 MB #Memory Used# [2025-04-10 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 02:41:05 [end_date_ymd] => 2025-04-10 05:41:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 02:41:05' and `end` < '2025-04-10 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-04-10 05:41:18] Production.INFO: count ==354 [2025-04-10 05:41:18] Production.ERROR: pbx CDR StartTime 2025-04-10 02:41:05 - End Time 2025-04-10 05:41:05 [2025-04-10 05:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874806', 'tblTempUsageDetail_20' ) start [2025-04-10 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874806', 'tblTempUsageDetail_20' ) end [2025-04-10 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874806', 'tblTempVendorCDR_20' ) start [2025-04-10 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874806', 'tblTempVendorCDR_20' ) end [2025-04-10 05:41:18] Production.INFO: ProcessCDR(1,14874806,1,1,2) [2025-04-10 05:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874806', 'tblTempUsageDetail_20' ) start [2025-04-10 05:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874806', 'tblTempUsageDetail_20' ) end [2025-04-10 05:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 05:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 05:41:22] Production.INFO: ==20088== Releasing lock... [2025-04-10 05:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 05:41:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-10 05:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 02:42:06 [end_date_ymd] => 2025-04-10 05:42:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 02:42:06' and `end` < '2025-04-10 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-04-10 05:42:19] Production.INFO: count ==353 [2025-04-10 05:42:19] Production.ERROR: pbx CDR StartTime 2025-04-10 02:42:06 - End Time 2025-04-10 05:42:06 [2025-04-10 05:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 05:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874811', 'tblTempUsageDetail_20' ) start [2025-04-10 05:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874811', 'tblTempUsageDetail_20' ) end [2025-04-10 05:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874811', 'tblTempVendorCDR_20' ) start [2025-04-10 05:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874811', 'tblTempVendorCDR_20' ) end [2025-04-10 05:42:19] Production.INFO: ProcessCDR(1,14874811,1,1,2) [2025-04-10 05:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874811', 'tblTempUsageDetail_20' ) start [2025-04-10 05:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874811', 'tblTempUsageDetail_20' ) end [2025-04-10 05:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 05:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 05:42:22] Production.INFO: ==20161== Releasing lock... [2025-04-10 05:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 05:42:22] Production.INFO: 31 MB #Memory Used# [2025-04-10 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 02:43:05 [end_date_ymd] => 2025-04-10 05:43:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 02:43:05' and `end` < '2025-04-10 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-04-10 05:43:18] Production.INFO: count ==354 [2025-04-10 05:43:18] Production.ERROR: pbx CDR StartTime 2025-04-10 02:43:05 - End Time 2025-04-10 05:43:05 [2025-04-10 05:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874816', 'tblTempUsageDetail_20' ) start [2025-04-10 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874816', 'tblTempUsageDetail_20' ) end [2025-04-10 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874816', 'tblTempVendorCDR_20' ) start [2025-04-10 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874816', 'tblTempVendorCDR_20' ) end [2025-04-10 05:43:18] Production.INFO: ProcessCDR(1,14874816,1,1,2) [2025-04-10 05:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874816', 'tblTempUsageDetail_20' ) start [2025-04-10 05:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874816', 'tblTempUsageDetail_20' ) end [2025-04-10 05:43:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 05:43:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 05:43:23] Production.INFO: ==20233== Releasing lock... [2025-04-10 05:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 05:43:23] Production.INFO: 31.25 MB #Memory Used# [2025-04-10 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 02:44:05 [end_date_ymd] => 2025-04-10 05:44:05 [RateCDR] => 1 ) [2025-04-10 05:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 02:44:05' and `end` < '2025-04-10 05:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 05:44:18] Production.INFO: count ==352 [2025-04-10 05:44:18] Production.ERROR: pbx CDR StartTime 2025-04-10 02:44:05 - End Time 2025-04-10 05:44:05 [2025-04-10 05:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874821', 'tblTempUsageDetail_20' ) start [2025-04-10 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874821', 'tblTempUsageDetail_20' ) end [2025-04-10 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874821', 'tblTempVendorCDR_20' ) start [2025-04-10 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874821', 'tblTempVendorCDR_20' ) end [2025-04-10 05:44:18] Production.INFO: ProcessCDR(1,14874821,1,1,2) [2025-04-10 05:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874821', 'tblTempUsageDetail_20' ) start [2025-04-10 05:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874821', 'tblTempUsageDetail_20' ) end [2025-04-10 05:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 05:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 05:44:22] Production.INFO: ==20312== Releasing lock... [2025-04-10 05:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 05:44:22] Production.INFO: 31 MB #Memory Used# [2025-04-10 05:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 02:45:06 [end_date_ymd] => 2025-04-10 05:45:06 [RateCDR] => 1 ) [2025-04-10 05:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 02:45:06' and `end` < '2025-04-10 05: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-04-10 05:45:19] Production.INFO: count ==348 [2025-04-10 05:45:19] Production.ERROR: pbx CDR StartTime 2025-04-10 02:45:06 - End Time 2025-04-10 05:45:06 [2025-04-10 05:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 05:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874826', 'tblTempUsageDetail_20' ) start [2025-04-10 05:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874826', 'tblTempUsageDetail_20' ) end [2025-04-10 05:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874826', 'tblTempVendorCDR_20' ) start [2025-04-10 05:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874826', 'tblTempVendorCDR_20' ) end [2025-04-10 05:45:19] Production.INFO: ProcessCDR(1,14874826,1,1,2) [2025-04-10 05:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874826', 'tblTempUsageDetail_20' ) start [2025-04-10 05:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874826', 'tblTempUsageDetail_20' ) end [2025-04-10 05:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 05:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 05:45:22] Production.INFO: ==20392== Releasing lock... [2025-04-10 05:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 05:45:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 02:46:05 [end_date_ymd] => 2025-04-10 05:46:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 02:46:05' and `end` < '2025-04-10 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-04-10 05:46:18] Production.INFO: count ==346 [2025-04-10 05:46:18] Production.ERROR: pbx CDR StartTime 2025-04-10 02:46:05 - End Time 2025-04-10 05:46:05 [2025-04-10 05:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874831', 'tblTempUsageDetail_20' ) start [2025-04-10 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874831', 'tblTempUsageDetail_20' ) end [2025-04-10 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874831', 'tblTempVendorCDR_20' ) start [2025-04-10 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874831', 'tblTempVendorCDR_20' ) end [2025-04-10 05:46:18] Production.INFO: ProcessCDR(1,14874831,1,1,2) [2025-04-10 05:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874831', 'tblTempUsageDetail_20' ) start [2025-04-10 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874831', 'tblTempUsageDetail_20' ) end [2025-04-10 05:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 05:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 05:46:22] Production.INFO: ==20465== Releasing lock... [2025-04-10 05:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 05:46:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 02:47:05 [end_date_ymd] => 2025-04-10 05:47:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 02:47:05' and `end` < '2025-04-10 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-04-10 05:47:18] Production.INFO: count ==345 [2025-04-10 05:47:18] Production.ERROR: pbx CDR StartTime 2025-04-10 02:47:05 - End Time 2025-04-10 05:47:05 [2025-04-10 05:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874836', 'tblTempUsageDetail_20' ) start [2025-04-10 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874836', 'tblTempUsageDetail_20' ) end [2025-04-10 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874836', 'tblTempVendorCDR_20' ) start [2025-04-10 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874836', 'tblTempVendorCDR_20' ) end [2025-04-10 05:47:18] Production.INFO: ProcessCDR(1,14874836,1,1,2) [2025-04-10 05:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874836', 'tblTempUsageDetail_20' ) start [2025-04-10 05:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874836', 'tblTempUsageDetail_20' ) end [2025-04-10 05:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 05:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 05:47:22] Production.INFO: ==20538== Releasing lock... [2025-04-10 05:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 05:47:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-10 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 02:48:05 [end_date_ymd] => 2025-04-10 05:48:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 02:48:05' and `end` < '2025-04-10 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-04-10 05:48:18] Production.INFO: count ==345 [2025-04-10 05:48:18] Production.ERROR: pbx CDR StartTime 2025-04-10 02:48:05 - End Time 2025-04-10 05:48:05 [2025-04-10 05:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874841', 'tblTempUsageDetail_20' ) start [2025-04-10 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874841', 'tblTempUsageDetail_20' ) end [2025-04-10 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874841', 'tblTempVendorCDR_20' ) start [2025-04-10 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874841', 'tblTempVendorCDR_20' ) end [2025-04-10 05:48:18] Production.INFO: ProcessCDR(1,14874841,1,1,2) [2025-04-10 05:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874841', 'tblTempUsageDetail_20' ) start [2025-04-10 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874841', 'tblTempUsageDetail_20' ) end [2025-04-10 05:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 05:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 05:48:21] Production.INFO: ==20617== Releasing lock... [2025-04-10 05:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 05:48:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-10 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 02:49:05 [end_date_ymd] => 2025-04-10 05:49:05 [RateCDR] => 1 ) [2025-04-10 05:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 02:49:05' and `end` < '2025-04-10 05:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 05:49:18] Production.INFO: count ==345 [2025-04-10 05:49:18] Production.ERROR: pbx CDR StartTime 2025-04-10 02:49:05 - End Time 2025-04-10 05:49:05 [2025-04-10 05:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874846', 'tblTempUsageDetail_20' ) start [2025-04-10 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874846', 'tblTempUsageDetail_20' ) end [2025-04-10 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874846', 'tblTempVendorCDR_20' ) start [2025-04-10 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874846', 'tblTempVendorCDR_20' ) end [2025-04-10 05:49:18] Production.INFO: ProcessCDR(1,14874846,1,1,2) [2025-04-10 05:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874846', 'tblTempUsageDetail_20' ) start [2025-04-10 05:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874846', 'tblTempUsageDetail_20' ) end [2025-04-10 05:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 05:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 05:49:22] Production.INFO: ==20686== Releasing lock... [2025-04-10 05:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 05:49:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-10 05:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 02:50:05 [end_date_ymd] => 2025-04-10 05:50:05 [RateCDR] => 1 ) [2025-04-10 05:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 02:50:05' and `end` < '2025-04-10 05:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 05:50:18] Production.INFO: count ==337 [2025-04-10 05:50:18] Production.ERROR: pbx CDR StartTime 2025-04-10 02:50:05 - End Time 2025-04-10 05:50:05 [2025-04-10 05:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874852', 'tblTempUsageDetail_20' ) start [2025-04-10 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874852', 'tblTempUsageDetail_20' ) end [2025-04-10 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874852', 'tblTempVendorCDR_20' ) start [2025-04-10 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874852', 'tblTempVendorCDR_20' ) end [2025-04-10 05:50:18] Production.INFO: ProcessCDR(1,14874852,1,1,2) [2025-04-10 05:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874852', 'tblTempUsageDetail_20' ) start [2025-04-10 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874852', 'tblTempUsageDetail_20' ) end [2025-04-10 05:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 05:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 05:50:22] Production.INFO: ==20763== Releasing lock... [2025-04-10 05:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 05:50:22] Production.INFO: 32 MB #Memory Used# [2025-04-10 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 02:51:05 [end_date_ymd] => 2025-04-10 05:51:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 02:51:05' and `end` < '2025-04-10 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-04-10 05:51:18] Production.INFO: count ==337 [2025-04-10 05:51:18] Production.ERROR: pbx CDR StartTime 2025-04-10 02:51:05 - End Time 2025-04-10 05:51:05 [2025-04-10 05:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874857', 'tblTempUsageDetail_20' ) start [2025-04-10 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874857', 'tblTempUsageDetail_20' ) end [2025-04-10 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874857', 'tblTempVendorCDR_20' ) start [2025-04-10 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874857', 'tblTempVendorCDR_20' ) end [2025-04-10 05:51:18] Production.INFO: ProcessCDR(1,14874857,1,1,2) [2025-04-10 05:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874857', 'tblTempUsageDetail_20' ) start [2025-04-10 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874857', 'tblTempUsageDetail_20' ) end [2025-04-10 05:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 05:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 05:51:21] Production.INFO: ==20838== Releasing lock... [2025-04-10 05:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 05:51:22] Production.INFO: 32 MB #Memory Used# [2025-04-10 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 02:52:05 [end_date_ymd] => 2025-04-10 05:52:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 02:52:05' and `end` < '2025-04-10 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-04-10 05:52:18] Production.INFO: count ==337 [2025-04-10 05:52:18] Production.ERROR: pbx CDR StartTime 2025-04-10 02:52:05 - End Time 2025-04-10 05:52:05 [2025-04-10 05:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874862', 'tblTempUsageDetail_20' ) start [2025-04-10 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874862', 'tblTempUsageDetail_20' ) end [2025-04-10 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874862', 'tblTempVendorCDR_20' ) start [2025-04-10 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874862', 'tblTempVendorCDR_20' ) end [2025-04-10 05:52:18] Production.INFO: ProcessCDR(1,14874862,1,1,2) [2025-04-10 05:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874862', 'tblTempUsageDetail_20' ) start [2025-04-10 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874862', 'tblTempUsageDetail_20' ) end [2025-04-10 05:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 05:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 05:52:21] Production.INFO: ==20950== Releasing lock... [2025-04-10 05:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 05:52:21] Production.INFO: 32 MB #Memory Used# [2025-04-10 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 02:53:05 [end_date_ymd] => 2025-04-10 05:53:05 [RateCDR] => 1 ) [2025-04-10 05:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 02:53:05' and `end` < '2025-04-10 05:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 05:53:18] Production.INFO: count ==337 [2025-04-10 05:53:18] Production.ERROR: pbx CDR StartTime 2025-04-10 02:53:05 - End Time 2025-04-10 05:53:05 [2025-04-10 05:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874867', 'tblTempUsageDetail_20' ) start [2025-04-10 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874867', 'tblTempUsageDetail_20' ) end [2025-04-10 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874867', 'tblTempVendorCDR_20' ) start [2025-04-10 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874867', 'tblTempVendorCDR_20' ) end [2025-04-10 05:53:18] Production.INFO: ProcessCDR(1,14874867,1,1,2) [2025-04-10 05:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874867', 'tblTempUsageDetail_20' ) start [2025-04-10 05:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874867', 'tblTempUsageDetail_20' ) end [2025-04-10 05:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 05:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 05:53:22] Production.INFO: ==21025== Releasing lock... [2025-04-10 05:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 05:53:22] Production.INFO: 32 MB #Memory Used# [2025-04-10 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 02:54:05 [end_date_ymd] => 2025-04-10 05:54:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 02:54:05' and `end` < '2025-04-10 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-04-10 05:54:18] Production.INFO: count ==337 [2025-04-10 05:54:18] Production.ERROR: pbx CDR StartTime 2025-04-10 02:54:05 - End Time 2025-04-10 05:54:05 [2025-04-10 05:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874872', 'tblTempUsageDetail_20' ) start [2025-04-10 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874872', 'tblTempUsageDetail_20' ) end [2025-04-10 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874872', 'tblTempVendorCDR_20' ) start [2025-04-10 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874872', 'tblTempVendorCDR_20' ) end [2025-04-10 05:54:18] Production.INFO: ProcessCDR(1,14874872,1,1,2) [2025-04-10 05:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874872', 'tblTempUsageDetail_20' ) start [2025-04-10 05:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874872', 'tblTempUsageDetail_20' ) end [2025-04-10 05:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 05:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 05:54:22] Production.INFO: ==21100== Releasing lock... [2025-04-10 05:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 05:54:22] Production.INFO: 32 MB #Memory Used# [2025-04-10 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 02:55:05 [end_date_ymd] => 2025-04-10 05:55:05 [RateCDR] => 1 ) [2025-04-10 05:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 02:55:05' and `end` < '2025-04-10 05:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 05:55:18] Production.INFO: count ==335 [2025-04-10 05:55:19] Production.ERROR: pbx CDR StartTime 2025-04-10 02:55:05 - End Time 2025-04-10 05:55:05 [2025-04-10 05:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 05:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874877', 'tblTempUsageDetail_20' ) start [2025-04-10 05:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874877', 'tblTempUsageDetail_20' ) end [2025-04-10 05:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874877', 'tblTempVendorCDR_20' ) start [2025-04-10 05:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874877', 'tblTempVendorCDR_20' ) end [2025-04-10 05:55:19] Production.INFO: ProcessCDR(1,14874877,1,1,2) [2025-04-10 05:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874877', 'tblTempUsageDetail_20' ) start [2025-04-10 05:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874877', 'tblTempUsageDetail_20' ) end [2025-04-10 05:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 05:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 05:55:22] Production.INFO: ==21177== Releasing lock... [2025-04-10 05:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 05:55:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-10 05:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 02:56:06 [end_date_ymd] => 2025-04-10 05:56:06 [RateCDR] => 1 ) [2025-04-10 05: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-04-10 02:56:06' and `end` < '2025-04-10 05: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-04-10 05:56:19] Production.INFO: count ==335 [2025-04-10 05:56:19] Production.ERROR: pbx CDR StartTime 2025-04-10 02:56:06 - End Time 2025-04-10 05:56:06 [2025-04-10 05:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 05:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874882', 'tblTempUsageDetail_20' ) start [2025-04-10 05:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874882', 'tblTempUsageDetail_20' ) end [2025-04-10 05:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874882', 'tblTempVendorCDR_20' ) start [2025-04-10 05:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874882', 'tblTempVendorCDR_20' ) end [2025-04-10 05:56:19] Production.INFO: ProcessCDR(1,14874882,1,1,2) [2025-04-10 05:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874882', 'tblTempUsageDetail_20' ) start [2025-04-10 05:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874882', 'tblTempUsageDetail_20' ) end [2025-04-10 05:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 05:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 05:56:22] Production.INFO: ==21255== Releasing lock... [2025-04-10 05:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 05:56:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-10 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 02:57:05 [end_date_ymd] => 2025-04-10 05:57:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 02:57:05' and `end` < '2025-04-10 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-04-10 05:57:18] Production.INFO: count ==337 [2025-04-10 05:57:18] Production.ERROR: pbx CDR StartTime 2025-04-10 02:57:05 - End Time 2025-04-10 05:57:05 [2025-04-10 05:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874887', 'tblTempUsageDetail_20' ) start [2025-04-10 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874887', 'tblTempUsageDetail_20' ) end [2025-04-10 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874887', 'tblTempVendorCDR_20' ) start [2025-04-10 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874887', 'tblTempVendorCDR_20' ) end [2025-04-10 05:57:18] Production.INFO: ProcessCDR(1,14874887,1,1,2) [2025-04-10 05:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874887', 'tblTempUsageDetail_20' ) start [2025-04-10 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874887', 'tblTempUsageDetail_20' ) end [2025-04-10 05:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 05:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 05:57:21] Production.INFO: ==21330== Releasing lock... [2025-04-10 05:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 05:57:21] Production.INFO: 32 MB #Memory Used# [2025-04-10 05:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 02:58:06 [end_date_ymd] => 2025-04-10 05:58:06 [RateCDR] => 1 ) [2025-04-10 05: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-04-10 02:58:06' and `end` < '2025-04-10 05: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-04-10 05:58:19] Production.INFO: count ==337 [2025-04-10 05:58:19] Production.ERROR: pbx CDR StartTime 2025-04-10 02:58:06 - End Time 2025-04-10 05:58:06 [2025-04-10 05:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 05:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874892', 'tblTempUsageDetail_20' ) start [2025-04-10 05:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874892', 'tblTempUsageDetail_20' ) end [2025-04-10 05:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874892', 'tblTempVendorCDR_20' ) start [2025-04-10 05:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874892', 'tblTempVendorCDR_20' ) end [2025-04-10 05:58:19] Production.INFO: ProcessCDR(1,14874892,1,1,2) [2025-04-10 05:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874892', 'tblTempUsageDetail_20' ) start [2025-04-10 05:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874892', 'tblTempUsageDetail_20' ) end [2025-04-10 05:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 05:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 05:58:22] Production.INFO: ==21403== Releasing lock... [2025-04-10 05:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 05:58:22] Production.INFO: 32 MB #Memory Used# [2025-04-10 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 02:59:05 [end_date_ymd] => 2025-04-10 05:59:05 [RateCDR] => 1 ) [2025-04-10 05:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 02:59:05' and `end` < '2025-04-10 05:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 05:59:18] Production.INFO: count ==339 [2025-04-10 05:59:18] Production.ERROR: pbx CDR StartTime 2025-04-10 02:59:05 - End Time 2025-04-10 05:59:05 [2025-04-10 05:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874897', 'tblTempUsageDetail_20' ) start [2025-04-10 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874897', 'tblTempUsageDetail_20' ) end [2025-04-10 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874897', 'tblTempVendorCDR_20' ) start [2025-04-10 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874897', 'tblTempVendorCDR_20' ) end [2025-04-10 05:59:18] Production.INFO: ProcessCDR(1,14874897,1,1,2) [2025-04-10 05:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 05:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 05:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874897', 'tblTempUsageDetail_20' ) start [2025-04-10 05:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874897', 'tblTempUsageDetail_20' ) end [2025-04-10 05:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 05:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 05:59:22] Production.INFO: ==21477== Releasing lock... [2025-04-10 05:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 05:59:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-10 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 03:00:06 [end_date_ymd] => 2025-04-10 06:00:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 03:00:06' and `end` < '2025-04-10 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-04-10 06:00:19] Production.INFO: count ==339 [2025-04-10 06:00:19] Production.ERROR: pbx CDR StartTime 2025-04-10 03:00:06 - End Time 2025-04-10 06:00:06 [2025-04-10 06:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874902', 'tblTempUsageDetail_20' ) start [2025-04-10 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874902', 'tblTempUsageDetail_20' ) end [2025-04-10 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874902', 'tblTempVendorCDR_20' ) start [2025-04-10 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874902', 'tblTempVendorCDR_20' ) end [2025-04-10 06:00:19] Production.INFO: ProcessCDR(1,14874902,1,1,2) [2025-04-10 06:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874902', 'tblTempUsageDetail_20' ) start [2025-04-10 06:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874902', 'tblTempUsageDetail_20' ) end [2025-04-10 06:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 06:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 06:00:23] Production.INFO: ==21552== Releasing lock... [2025-04-10 06:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 06:00:23] Production.INFO: 31.75 MB #Memory Used# [2025-04-10 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 03:01:05 [end_date_ymd] => 2025-04-10 06:01:05 [RateCDR] => 1 ) [2025-04-10 06:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 03:01:05' and `end` < '2025-04-10 06:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 06:01:18] Production.INFO: count ==341 [2025-04-10 06:01:18] Production.ERROR: pbx CDR StartTime 2025-04-10 03:01:05 - End Time 2025-04-10 06:01:05 [2025-04-10 06:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874908', 'tblTempUsageDetail_20' ) start [2025-04-10 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874908', 'tblTempUsageDetail_20' ) end [2025-04-10 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874908', 'tblTempVendorCDR_20' ) start [2025-04-10 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874908', 'tblTempVendorCDR_20' ) end [2025-04-10 06:01:18] Production.INFO: ProcessCDR(1,14874908,1,1,2) [2025-04-10 06:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874908', 'tblTempUsageDetail_20' ) start [2025-04-10 06:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874908', 'tblTempUsageDetail_20' ) end [2025-04-10 06:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 06:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 06:01:22] Production.INFO: ==21640== Releasing lock... [2025-04-10 06:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 06:01:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 06:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 03:02:06 [end_date_ymd] => 2025-04-10 06:02:06 [RateCDR] => 1 ) [2025-04-10 06:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 03:02:06' and `end` < '2025-04-10 06:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 06:02:19] Production.INFO: count ==341 [2025-04-10 06:02:19] Production.ERROR: pbx CDR StartTime 2025-04-10 03:02:06 - End Time 2025-04-10 06:02:06 [2025-04-10 06:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874913', 'tblTempUsageDetail_20' ) start [2025-04-10 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874913', 'tblTempUsageDetail_20' ) end [2025-04-10 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874913', 'tblTempVendorCDR_20' ) start [2025-04-10 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874913', 'tblTempVendorCDR_20' ) end [2025-04-10 06:02:19] Production.INFO: ProcessCDR(1,14874913,1,1,2) [2025-04-10 06:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874913', 'tblTempUsageDetail_20' ) start [2025-04-10 06:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874913', 'tblTempUsageDetail_20' ) end [2025-04-10 06:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 06:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 06:02:23] Production.INFO: ==21713== Releasing lock... [2025-04-10 06:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 06:02:23] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 03:03:05 [end_date_ymd] => 2025-04-10 06:03:05 [RateCDR] => 1 ) [2025-04-10 06:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 03:03:05' and `end` < '2025-04-10 06:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 06:03:18] Production.INFO: count ==341 [2025-04-10 06:03:18] Production.ERROR: pbx CDR StartTime 2025-04-10 03:03:05 - End Time 2025-04-10 06:03:05 [2025-04-10 06:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874918', 'tblTempUsageDetail_20' ) start [2025-04-10 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874918', 'tblTempUsageDetail_20' ) end [2025-04-10 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874918', 'tblTempVendorCDR_20' ) start [2025-04-10 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874918', 'tblTempVendorCDR_20' ) end [2025-04-10 06:03:18] Production.INFO: ProcessCDR(1,14874918,1,1,2) [2025-04-10 06:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874918', 'tblTempUsageDetail_20' ) start [2025-04-10 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874918', 'tblTempUsageDetail_20' ) end [2025-04-10 06:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 06:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 06:03:21] Production.INFO: ==21788== Releasing lock... [2025-04-10 06:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 06:03:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 03:04:05 [end_date_ymd] => 2025-04-10 06:04:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 03:04:05' and `end` < '2025-04-10 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-04-10 06:04:18] Production.INFO: count ==342 [2025-04-10 06:04:18] Production.ERROR: pbx CDR StartTime 2025-04-10 03:04:05 - End Time 2025-04-10 06:04:05 [2025-04-10 06:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874923', 'tblTempUsageDetail_20' ) start [2025-04-10 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874923', 'tblTempUsageDetail_20' ) end [2025-04-10 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874923', 'tblTempVendorCDR_20' ) start [2025-04-10 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874923', 'tblTempVendorCDR_20' ) end [2025-04-10 06:04:18] Production.INFO: ProcessCDR(1,14874923,1,1,2) [2025-04-10 06:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874923', 'tblTempUsageDetail_20' ) start [2025-04-10 06:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874923', 'tblTempUsageDetail_20' ) end [2025-04-10 06:04:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 06:04:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 06:04:23] Production.INFO: ==21860== Releasing lock... [2025-04-10 06:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 06:04:23] Production.INFO: 31 MB #Memory Used# [2025-04-10 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 03:05:05 [end_date_ymd] => 2025-04-10 06:05:05 [RateCDR] => 1 ) [2025-04-10 06:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 03:05:05' and `end` < '2025-04-10 06:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 06:05:18] Production.INFO: count ==342 [2025-04-10 06:05:18] Production.ERROR: pbx CDR StartTime 2025-04-10 03:05:05 - End Time 2025-04-10 06:05:05 [2025-04-10 06:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874928', 'tblTempUsageDetail_20' ) start [2025-04-10 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874928', 'tblTempUsageDetail_20' ) end [2025-04-10 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874928', 'tblTempVendorCDR_20' ) start [2025-04-10 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874928', 'tblTempVendorCDR_20' ) end [2025-04-10 06:05:18] Production.INFO: ProcessCDR(1,14874928,1,1,2) [2025-04-10 06:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874928', 'tblTempUsageDetail_20' ) start [2025-04-10 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874928', 'tblTempUsageDetail_20' ) end [2025-04-10 06:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 06:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 06:05:21] Production.INFO: ==21932== Releasing lock... [2025-04-10 06:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 06:05:21] Production.INFO: 31 MB #Memory Used# [2025-04-10 06:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 03:06:06 [end_date_ymd] => 2025-04-10 06:06:06 [RateCDR] => 1 ) [2025-04-10 06:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 03:06:06' and `end` < '2025-04-10 06:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 06:06:19] Production.INFO: count ==342 [2025-04-10 06:06:19] Production.ERROR: pbx CDR StartTime 2025-04-10 03:06:06 - End Time 2025-04-10 06:06:06 [2025-04-10 06:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 06:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874933', 'tblTempUsageDetail_20' ) start [2025-04-10 06:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874933', 'tblTempUsageDetail_20' ) end [2025-04-10 06:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874933', 'tblTempVendorCDR_20' ) start [2025-04-10 06:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874933', 'tblTempVendorCDR_20' ) end [2025-04-10 06:06:19] Production.INFO: ProcessCDR(1,14874933,1,1,2) [2025-04-10 06:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874933', 'tblTempUsageDetail_20' ) start [2025-04-10 06:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874933', 'tblTempUsageDetail_20' ) end [2025-04-10 06:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 06:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 06:06:22] Production.INFO: ==22003== Releasing lock... [2025-04-10 06:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 06:06:22] Production.INFO: 31 MB #Memory Used# [2025-04-10 06:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 03:07:05 [end_date_ymd] => 2025-04-10 06:07:05 [RateCDR] => 1 ) [2025-04-10 06:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 03:07:05' and `end` < '2025-04-10 06:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 06:07:18] Production.INFO: count ==342 [2025-04-10 06:07:18] Production.ERROR: pbx CDR StartTime 2025-04-10 03:07:05 - End Time 2025-04-10 06:07:05 [2025-04-10 06:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874938', 'tblTempUsageDetail_20' ) start [2025-04-10 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874938', 'tblTempUsageDetail_20' ) end [2025-04-10 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874938', 'tblTempVendorCDR_20' ) start [2025-04-10 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874938', 'tblTempVendorCDR_20' ) end [2025-04-10 06:07:18] Production.INFO: ProcessCDR(1,14874938,1,1,2) [2025-04-10 06:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874938', 'tblTempUsageDetail_20' ) start [2025-04-10 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874938', 'tblTempUsageDetail_20' ) end [2025-04-10 06:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 06:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 06:07:21] Production.INFO: ==22117== Releasing lock... [2025-04-10 06:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 06:07:21] Production.INFO: 31 MB #Memory Used# [2025-04-10 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 03:08:05 [end_date_ymd] => 2025-04-10 06:08:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 03:08:05' and `end` < '2025-04-10 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-04-10 06:08:18] Production.INFO: count ==342 [2025-04-10 06:08:18] Production.ERROR: pbx CDR StartTime 2025-04-10 03:08:05 - End Time 2025-04-10 06:08:05 [2025-04-10 06:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874943', 'tblTempUsageDetail_20' ) start [2025-04-10 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874943', 'tblTempUsageDetail_20' ) end [2025-04-10 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874943', 'tblTempVendorCDR_20' ) start [2025-04-10 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874943', 'tblTempVendorCDR_20' ) end [2025-04-10 06:08:18] Production.INFO: ProcessCDR(1,14874943,1,1,2) [2025-04-10 06:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874943', 'tblTempUsageDetail_20' ) start [2025-04-10 06:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874943', 'tblTempUsageDetail_20' ) end [2025-04-10 06:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 06:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 06:08:22] Production.INFO: ==22198== Releasing lock... [2025-04-10 06:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 06:08:22] Production.INFO: 31 MB #Memory Used# [2025-04-10 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 03:09:05 [end_date_ymd] => 2025-04-10 06:09:05 [RateCDR] => 1 ) [2025-04-10 06:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 03:09:05' and `end` < '2025-04-10 06:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 06:09:18] Production.INFO: count ==342 [2025-04-10 06:09:18] Production.ERROR: pbx CDR StartTime 2025-04-10 03:09:05 - End Time 2025-04-10 06:09:05 [2025-04-10 06:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874948', 'tblTempUsageDetail_20' ) start [2025-04-10 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874948', 'tblTempUsageDetail_20' ) end [2025-04-10 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874948', 'tblTempVendorCDR_20' ) start [2025-04-10 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874948', 'tblTempVendorCDR_20' ) end [2025-04-10 06:09:18] Production.INFO: ProcessCDR(1,14874948,1,1,2) [2025-04-10 06:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874948', 'tblTempUsageDetail_20' ) start [2025-04-10 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874948', 'tblTempUsageDetail_20' ) end [2025-04-10 06:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 06:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 06:09:21] Production.INFO: ==22273== Releasing lock... [2025-04-10 06:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 06:09:21] Production.INFO: 31 MB #Memory Used# [2025-04-10 06:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 03:10:06 [end_date_ymd] => 2025-04-10 06:10:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 03:10:06' and `end` < '2025-04-10 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-04-10 06:10:19] Production.INFO: count ==342 [2025-04-10 06:10:19] Production.ERROR: pbx CDR StartTime 2025-04-10 03:10:06 - End Time 2025-04-10 06:10:06 [2025-04-10 06:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874954', 'tblTempUsageDetail_20' ) start [2025-04-10 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874954', 'tblTempUsageDetail_20' ) end [2025-04-10 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874954', 'tblTempVendorCDR_20' ) start [2025-04-10 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874954', 'tblTempVendorCDR_20' ) end [2025-04-10 06:10:19] Production.INFO: ProcessCDR(1,14874954,1,1,2) [2025-04-10 06:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874954', 'tblTempUsageDetail_20' ) start [2025-04-10 06:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874954', 'tblTempUsageDetail_20' ) end [2025-04-10 06:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 06:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 06:10:23] Production.INFO: ==22354== Releasing lock... [2025-04-10 06:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 06:10:23] Production.INFO: 31 MB #Memory Used# [2025-04-10 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 03:11:05 [end_date_ymd] => 2025-04-10 06:11:05 [RateCDR] => 1 ) [2025-04-10 06:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 03:11:05' and `end` < '2025-04-10 06:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 06:11:18] Production.INFO: count ==342 [2025-04-10 06:11:18] Production.ERROR: pbx CDR StartTime 2025-04-10 03:11:05 - End Time 2025-04-10 06:11:05 [2025-04-10 06:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874959', 'tblTempUsageDetail_20' ) start [2025-04-10 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874959', 'tblTempUsageDetail_20' ) end [2025-04-10 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874959', 'tblTempVendorCDR_20' ) start [2025-04-10 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874959', 'tblTempVendorCDR_20' ) end [2025-04-10 06:11:18] Production.INFO: ProcessCDR(1,14874959,1,1,2) [2025-04-10 06:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874959', 'tblTempUsageDetail_20' ) start [2025-04-10 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874959', 'tblTempUsageDetail_20' ) end [2025-04-10 06:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 06:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 06:11:21] Production.INFO: ==22428== Releasing lock... [2025-04-10 06:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 06:11:21] Production.INFO: 31 MB #Memory Used# [2025-04-10 06:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 03:12:06 [end_date_ymd] => 2025-04-10 06:12:06 [RateCDR] => 1 ) [2025-04-10 06:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 03:12:06' and `end` < '2025-04-10 06:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 06:12:19] Production.INFO: count ==344 [2025-04-10 06:12:19] Production.ERROR: pbx CDR StartTime 2025-04-10 03:12:06 - End Time 2025-04-10 06:12:06 [2025-04-10 06:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 06:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874964', 'tblTempUsageDetail_20' ) start [2025-04-10 06:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874964', 'tblTempUsageDetail_20' ) end [2025-04-10 06:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874964', 'tblTempVendorCDR_20' ) start [2025-04-10 06:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874964', 'tblTempVendorCDR_20' ) end [2025-04-10 06:12:19] Production.INFO: ProcessCDR(1,14874964,1,1,2) [2025-04-10 06:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874964', 'tblTempUsageDetail_20' ) start [2025-04-10 06:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874964', 'tblTempUsageDetail_20' ) end [2025-04-10 06:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 06:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 06:12:22] Production.INFO: ==22503== Releasing lock... [2025-04-10 06:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 06:12:22] Production.INFO: 31 MB #Memory Used# [2025-04-10 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 03:13:05 [end_date_ymd] => 2025-04-10 06:13:05 [RateCDR] => 1 ) [2025-04-10 06:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 03:13:05' and `end` < '2025-04-10 06:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 06:13:18] Production.INFO: count ==346 [2025-04-10 06:13:18] Production.ERROR: pbx CDR StartTime 2025-04-10 03:13:05 - End Time 2025-04-10 06:13:05 [2025-04-10 06:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874969', 'tblTempUsageDetail_20' ) start [2025-04-10 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874969', 'tblTempUsageDetail_20' ) end [2025-04-10 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874969', 'tblTempVendorCDR_20' ) start [2025-04-10 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874969', 'tblTempVendorCDR_20' ) end [2025-04-10 06:13:18] Production.INFO: ProcessCDR(1,14874969,1,1,2) [2025-04-10 06:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874969', 'tblTempUsageDetail_20' ) start [2025-04-10 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874969', 'tblTempUsageDetail_20' ) end [2025-04-10 06:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 06:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 06:13:21] Production.INFO: ==22577== Releasing lock... [2025-04-10 06:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 06:13:21] Production.INFO: 31 MB #Memory Used# [2025-04-10 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 03:14:05 [end_date_ymd] => 2025-04-10 06:14:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 03:14:05' and `end` < '2025-04-10 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-04-10 06:14:18] Production.INFO: count ==346 [2025-04-10 06:14:18] Production.ERROR: pbx CDR StartTime 2025-04-10 03:14:05 - End Time 2025-04-10 06:14:05 [2025-04-10 06:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874974', 'tblTempUsageDetail_20' ) start [2025-04-10 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874974', 'tblTempUsageDetail_20' ) end [2025-04-10 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874974', 'tblTempVendorCDR_20' ) start [2025-04-10 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874974', 'tblTempVendorCDR_20' ) end [2025-04-10 06:14:18] Production.INFO: ProcessCDR(1,14874974,1,1,2) [2025-04-10 06:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874974', 'tblTempUsageDetail_20' ) start [2025-04-10 06:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874974', 'tblTempUsageDetail_20' ) end [2025-04-10 06:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 06:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 06:14:22] Production.INFO: ==22652== Releasing lock... [2025-04-10 06:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 06:14:22] Production.INFO: 31 MB #Memory Used# [2025-04-10 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 03:15:05 [end_date_ymd] => 2025-04-10 06:15:05 [RateCDR] => 1 ) [2025-04-10 06:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 03:15:05' and `end` < '2025-04-10 06:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 06:15:18] Production.INFO: count ==346 [2025-04-10 06:15:18] Production.ERROR: pbx CDR StartTime 2025-04-10 03:15:05 - End Time 2025-04-10 06:15:05 [2025-04-10 06:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874979', 'tblTempUsageDetail_20' ) start [2025-04-10 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874979', 'tblTempUsageDetail_20' ) end [2025-04-10 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874979', 'tblTempVendorCDR_20' ) start [2025-04-10 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874979', 'tblTempVendorCDR_20' ) end [2025-04-10 06:15:18] Production.INFO: ProcessCDR(1,14874979,1,1,2) [2025-04-10 06:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874979', 'tblTempUsageDetail_20' ) start [2025-04-10 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874979', 'tblTempUsageDetail_20' ) end [2025-04-10 06:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 06:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 06:15:21] Production.INFO: ==22729== Releasing lock... [2025-04-10 06:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 06:15:21] Production.INFO: 31 MB #Memory Used# [2025-04-10 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 03:16:05 [end_date_ymd] => 2025-04-10 06:16:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 03:16:05' and `end` < '2025-04-10 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-04-10 06:16:18] Production.INFO: count ==345 [2025-04-10 06:16:18] Production.ERROR: pbx CDR StartTime 2025-04-10 03:16:05 - End Time 2025-04-10 06:16:05 [2025-04-10 06:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874984', 'tblTempUsageDetail_20' ) start [2025-04-10 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874984', 'tblTempUsageDetail_20' ) end [2025-04-10 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874984', 'tblTempVendorCDR_20' ) start [2025-04-10 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874984', 'tblTempVendorCDR_20' ) end [2025-04-10 06:16:18] Production.INFO: ProcessCDR(1,14874984,1,1,2) [2025-04-10 06:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874984', 'tblTempUsageDetail_20' ) start [2025-04-10 06:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874984', 'tblTempUsageDetail_20' ) end [2025-04-10 06:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 06:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 06:16:22] Production.INFO: ==22804== Releasing lock... [2025-04-10 06:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 06:16:22] Production.INFO: 31 MB #Memory Used# [2025-04-10 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 03:17:05 [end_date_ymd] => 2025-04-10 06:17:05 [RateCDR] => 1 ) [2025-04-10 06:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 03:17:05' and `end` < '2025-04-10 06:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 06:17:17] Production.INFO: count ==344 [2025-04-10 06:17:18] Production.ERROR: pbx CDR StartTime 2025-04-10 03:17:05 - End Time 2025-04-10 06:17:05 [2025-04-10 06:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874989', 'tblTempUsageDetail_20' ) start [2025-04-10 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874989', 'tblTempUsageDetail_20' ) end [2025-04-10 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874989', 'tblTempVendorCDR_20' ) start [2025-04-10 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874989', 'tblTempVendorCDR_20' ) end [2025-04-10 06:17:18] Production.INFO: ProcessCDR(1,14874989,1,1,2) [2025-04-10 06:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874989', 'tblTempUsageDetail_20' ) start [2025-04-10 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874989', 'tblTempUsageDetail_20' ) end [2025-04-10 06:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 06:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 06:17:21] Production.INFO: ==22881== Releasing lock... [2025-04-10 06:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 06:17:21] Production.INFO: 31 MB #Memory Used# [2025-04-10 06:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 03:18:06 [end_date_ymd] => 2025-04-10 06:18:06 [RateCDR] => 1 ) [2025-04-10 06:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 03:18:06' and `end` < '2025-04-10 06:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 06:18:18] Production.INFO: count ==344 [2025-04-10 06:18:19] Production.ERROR: pbx CDR StartTime 2025-04-10 03:18:06 - End Time 2025-04-10 06:18:06 [2025-04-10 06:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 06:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874994', 'tblTempUsageDetail_20' ) start [2025-04-10 06:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874994', 'tblTempUsageDetail_20' ) end [2025-04-10 06:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874994', 'tblTempVendorCDR_20' ) start [2025-04-10 06:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874994', 'tblTempVendorCDR_20' ) end [2025-04-10 06:18:19] Production.INFO: ProcessCDR(1,14874994,1,1,2) [2025-04-10 06:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874994', 'tblTempUsageDetail_20' ) start [2025-04-10 06:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874994', 'tblTempUsageDetail_20' ) end [2025-04-10 06:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 06:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 06:18:22] Production.INFO: ==22958== Releasing lock... [2025-04-10 06:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 06:18:22] Production.INFO: 31 MB #Memory Used# [2025-04-10 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 03:19:05 [end_date_ymd] => 2025-04-10 06:19:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 03:19:05' and `end` < '2025-04-10 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-04-10 06:19:18] Production.INFO: count ==344 [2025-04-10 06:19:18] Production.ERROR: pbx CDR StartTime 2025-04-10 03:19:05 - End Time 2025-04-10 06:19:05 [2025-04-10 06:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874999', 'tblTempUsageDetail_20' ) start [2025-04-10 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14874999', 'tblTempUsageDetail_20' ) end [2025-04-10 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874999', 'tblTempVendorCDR_20' ) start [2025-04-10 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14874999', 'tblTempVendorCDR_20' ) end [2025-04-10 06:19:18] Production.INFO: ProcessCDR(1,14874999,1,1,2) [2025-04-10 06:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14874999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14874999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14874999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14874999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874999', 'tblTempUsageDetail_20' ) start [2025-04-10 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14874999', 'tblTempUsageDetail_20' ) end [2025-04-10 06:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 06:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 06:19:21] Production.INFO: ==23029== Releasing lock... [2025-04-10 06:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 06:19:21] Production.INFO: 31 MB #Memory Used# [2025-04-10 06:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 03:20:06 [end_date_ymd] => 2025-04-10 06:20:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 03:20:06' and `end` < '2025-04-10 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-04-10 06:20:19] Production.INFO: count ==352 [2025-04-10 06:20:19] Production.ERROR: pbx CDR StartTime 2025-04-10 03:20:06 - End Time 2025-04-10 06:20:06 [2025-04-10 06:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875005', 'tblTempUsageDetail_20' ) start [2025-04-10 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875005', 'tblTempUsageDetail_20' ) end [2025-04-10 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875005', 'tblTempVendorCDR_20' ) start [2025-04-10 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875005', 'tblTempVendorCDR_20' ) end [2025-04-10 06:20:19] Production.INFO: ProcessCDR(1,14875005,1,1,2) [2025-04-10 06:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875005', 'tblTempUsageDetail_20' ) start [2025-04-10 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875005', 'tblTempUsageDetail_20' ) end [2025-04-10 06:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 06:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 06:20:22] Production.INFO: ==23104== Releasing lock... [2025-04-10 06:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 06:20:22] Production.INFO: 31 MB #Memory Used# [2025-04-10 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 03:21:05 [end_date_ymd] => 2025-04-10 06:21:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 03:21:05' and `end` < '2025-04-10 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-04-10 06:21:18] Production.INFO: count ==352 [2025-04-10 06:21:18] Production.ERROR: pbx CDR StartTime 2025-04-10 03:21:05 - End Time 2025-04-10 06:21:05 [2025-04-10 06:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875010', 'tblTempUsageDetail_20' ) start [2025-04-10 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875010', 'tblTempUsageDetail_20' ) end [2025-04-10 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875010', 'tblTempVendorCDR_20' ) start [2025-04-10 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875010', 'tblTempVendorCDR_20' ) end [2025-04-10 06:21:18] Production.INFO: ProcessCDR(1,14875010,1,1,2) [2025-04-10 06:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875010', 'tblTempUsageDetail_20' ) start [2025-04-10 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875010', 'tblTempUsageDetail_20' ) end [2025-04-10 06:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 06:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 06:21:21] Production.INFO: ==23185== Releasing lock... [2025-04-10 06:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 06:21:21] Production.INFO: 31 MB #Memory Used# [2025-04-10 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 03:22:05 [end_date_ymd] => 2025-04-10 06:22:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 03:22:05' and `end` < '2025-04-10 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-04-10 06:22:18] Production.INFO: count ==352 [2025-04-10 06:22:18] Production.ERROR: pbx CDR StartTime 2025-04-10 03:22:05 - End Time 2025-04-10 06:22:05 [2025-04-10 06:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875015', 'tblTempUsageDetail_20' ) start [2025-04-10 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875015', 'tblTempUsageDetail_20' ) end [2025-04-10 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875015', 'tblTempVendorCDR_20' ) start [2025-04-10 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875015', 'tblTempVendorCDR_20' ) end [2025-04-10 06:22:18] Production.INFO: ProcessCDR(1,14875015,1,1,2) [2025-04-10 06:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875015', 'tblTempUsageDetail_20' ) start [2025-04-10 06:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875015', 'tblTempUsageDetail_20' ) end [2025-04-10 06:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 06:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 06:22:22] Production.INFO: ==23263== Releasing lock... [2025-04-10 06:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 06:22:22] Production.INFO: 31 MB #Memory Used# [2025-04-10 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 03:23:05 [end_date_ymd] => 2025-04-10 06:23:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 03:23:05' and `end` < '2025-04-10 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-04-10 06:23:18] Production.INFO: count ==353 [2025-04-10 06:23:18] Production.ERROR: pbx CDR StartTime 2025-04-10 03:23:05 - End Time 2025-04-10 06:23:05 [2025-04-10 06:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875020', 'tblTempUsageDetail_20' ) start [2025-04-10 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875020', 'tblTempUsageDetail_20' ) end [2025-04-10 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875020', 'tblTempVendorCDR_20' ) start [2025-04-10 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875020', 'tblTempVendorCDR_20' ) end [2025-04-10 06:23:18] Production.INFO: ProcessCDR(1,14875020,1,1,2) [2025-04-10 06:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875020', 'tblTempUsageDetail_20' ) start [2025-04-10 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875020', 'tblTempUsageDetail_20' ) end [2025-04-10 06:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 06:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 06:23:21] Production.INFO: ==23375== Releasing lock... [2025-04-10 06:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 06:23:21] Production.INFO: 31 MB #Memory Used# [2025-04-10 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 03:24:05 [end_date_ymd] => 2025-04-10 06:24:05 [RateCDR] => 1 ) [2025-04-10 06:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 03:24:05' and `end` < '2025-04-10 06:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 06:24:18] Production.INFO: count ==353 [2025-04-10 06:24:18] Production.ERROR: pbx CDR StartTime 2025-04-10 03:24:05 - End Time 2025-04-10 06:24:05 [2025-04-10 06:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875025', 'tblTempUsageDetail_20' ) start [2025-04-10 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875025', 'tblTempUsageDetail_20' ) end [2025-04-10 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875025', 'tblTempVendorCDR_20' ) start [2025-04-10 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875025', 'tblTempVendorCDR_20' ) end [2025-04-10 06:24:18] Production.INFO: ProcessCDR(1,14875025,1,1,2) [2025-04-10 06:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875025', 'tblTempUsageDetail_20' ) start [2025-04-10 06:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875025', 'tblTempUsageDetail_20' ) end [2025-04-10 06:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 06:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 06:24:22] Production.INFO: ==23456== Releasing lock... [2025-04-10 06:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 06:24:22] Production.INFO: 31 MB #Memory Used# [2025-04-10 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 03:25:05 [end_date_ymd] => 2025-04-10 06:25:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 03:25:05' and `end` < '2025-04-10 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-04-10 06:25:17] Production.INFO: count ==353 [2025-04-10 06:25:18] Production.ERROR: pbx CDR StartTime 2025-04-10 03:25:05 - End Time 2025-04-10 06:25:05 [2025-04-10 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875030', 'tblTempUsageDetail_20' ) start [2025-04-10 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875030', 'tblTempUsageDetail_20' ) end [2025-04-10 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875030', 'tblTempVendorCDR_20' ) start [2025-04-10 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875030', 'tblTempVendorCDR_20' ) end [2025-04-10 06:25:18] Production.INFO: ProcessCDR(1,14875030,1,1,2) [2025-04-10 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875030', 'tblTempUsageDetail_20' ) start [2025-04-10 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875030', 'tblTempUsageDetail_20' ) end [2025-04-10 06:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 06:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 06:25:21] Production.INFO: ==23534== Releasing lock... [2025-04-10 06:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 06:25:21] Production.INFO: 31 MB #Memory Used# [2025-04-10 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 03:26:05 [end_date_ymd] => 2025-04-10 06:26:05 [RateCDR] => 1 ) [2025-04-10 06:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 03:26:05' and `end` < '2025-04-10 06:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 06:26:18] Production.INFO: count ==354 [2025-04-10 06:26:18] Production.ERROR: pbx CDR StartTime 2025-04-10 03:26:05 - End Time 2025-04-10 06:26:05 [2025-04-10 06:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875035', 'tblTempUsageDetail_20' ) start [2025-04-10 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875035', 'tblTempUsageDetail_20' ) end [2025-04-10 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875035', 'tblTempVendorCDR_20' ) start [2025-04-10 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875035', 'tblTempVendorCDR_20' ) end [2025-04-10 06:26:18] Production.INFO: ProcessCDR(1,14875035,1,1,2) [2025-04-10 06:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875035', 'tblTempUsageDetail_20' ) start [2025-04-10 06:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875035', 'tblTempUsageDetail_20' ) end [2025-04-10 06:26:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 06:26:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 06:26:23] Production.INFO: ==23608== Releasing lock... [2025-04-10 06:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 06:26:23] Production.INFO: 31.25 MB #Memory Used# [2025-04-10 06:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 03:27:04 [end_date_ymd] => 2025-04-10 06:27:04 [RateCDR] => 1 ) [2025-04-10 06:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 03:27:04' and `end` < '2025-04-10 06:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 06:27:17] Production.INFO: count ==355 [2025-04-10 06:27:17] Production.ERROR: pbx CDR StartTime 2025-04-10 03:27:04 - End Time 2025-04-10 06:27:04 [2025-04-10 06:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875040', 'tblTempUsageDetail_20' ) start [2025-04-10 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875040', 'tblTempUsageDetail_20' ) end [2025-04-10 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875040', 'tblTempVendorCDR_20' ) start [2025-04-10 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875040', 'tblTempVendorCDR_20' ) end [2025-04-10 06:27:17] Production.INFO: ProcessCDR(1,14875040,1,1,2) [2025-04-10 06:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875040', 'tblTempUsageDetail_20' ) start [2025-04-10 06:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875040', 'tblTempUsageDetail_20' ) end [2025-04-10 06:27:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 06:27:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 06:27:23] Production.INFO: ==23681== Releasing lock... [2025-04-10 06:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 06:27:23] Production.INFO: 31.25 MB #Memory Used# [2025-04-10 06:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 03:28:05 [end_date_ymd] => 2025-04-10 06:28:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 03:28:05' and `end` < '2025-04-10 06:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 06:28:19] Production.INFO: count ==355 [2025-04-10 06:28:19] Production.ERROR: pbx CDR StartTime 2025-04-10 03:28:05 - End Time 2025-04-10 06:28:05 [2025-04-10 06:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 06:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875045', 'tblTempUsageDetail_20' ) start [2025-04-10 06:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875045', 'tblTempUsageDetail_20' ) end [2025-04-10 06:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875045', 'tblTempVendorCDR_20' ) start [2025-04-10 06:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875045', 'tblTempVendorCDR_20' ) end [2025-04-10 06:28:19] Production.INFO: ProcessCDR(1,14875045,1,1,2) [2025-04-10 06:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875045', 'tblTempUsageDetail_20' ) start [2025-04-10 06:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875045', 'tblTempUsageDetail_20' ) end [2025-04-10 06:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 06:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 06:28:22] Production.INFO: ==23763== Releasing lock... [2025-04-10 06:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 06:28:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-10 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 03:29:05 [end_date_ymd] => 2025-04-10 06:29:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 03:29:05' and `end` < '2025-04-10 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-04-10 06:29:18] Production.INFO: count ==355 [2025-04-10 06:29:18] Production.ERROR: pbx CDR StartTime 2025-04-10 03:29:05 - End Time 2025-04-10 06:29:05 [2025-04-10 06:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875050', 'tblTempUsageDetail_20' ) start [2025-04-10 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875050', 'tblTempUsageDetail_20' ) end [2025-04-10 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875050', 'tblTempVendorCDR_20' ) start [2025-04-10 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875050', 'tblTempVendorCDR_20' ) end [2025-04-10 06:29:18] Production.INFO: ProcessCDR(1,14875050,1,1,2) [2025-04-10 06:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875050', 'tblTempUsageDetail_20' ) start [2025-04-10 06:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875050', 'tblTempUsageDetail_20' ) end [2025-04-10 06:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 06:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 06:29:22] Production.INFO: ==23837== Releasing lock... [2025-04-10 06:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 06:29:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-10 06:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 03:30:05 [end_date_ymd] => 2025-04-10 06:30:05 [RateCDR] => 1 ) [2025-04-10 06:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 03:30:05' and `end` < '2025-04-10 06:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 06:30:18] Production.INFO: count ==365 [2025-04-10 06:30:18] Production.ERROR: pbx CDR StartTime 2025-04-10 03:30:05 - End Time 2025-04-10 06:30:05 [2025-04-10 06:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875055', 'tblTempUsageDetail_20' ) start [2025-04-10 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875055', 'tblTempUsageDetail_20' ) end [2025-04-10 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875055', 'tblTempVendorCDR_20' ) start [2025-04-10 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875055', 'tblTempVendorCDR_20' ) end [2025-04-10 06:30:19] Production.INFO: ProcessCDR(1,14875055,1,1,2) [2025-04-10 06:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875055', 'tblTempUsageDetail_20' ) start [2025-04-10 06:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875055', 'tblTempUsageDetail_20' ) end [2025-04-10 06:30:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 06:30:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 06:30:24] Production.INFO: ==23912== Releasing lock... [2025-04-10 06:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 06:30:24] Production.INFO: 31.75 MB #Memory Used# [2025-04-10 06:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 03:31:04 [end_date_ymd] => 2025-04-10 06:31:04 [RateCDR] => 1 ) [2025-04-10 06: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-04-10 03:31:04' and `end` < '2025-04-10 06: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-04-10 06:31:17] Production.INFO: count ==367 [2025-04-10 06:31:17] Production.ERROR: pbx CDR StartTime 2025-04-10 03:31:04 - End Time 2025-04-10 06:31:04 [2025-04-10 06:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875061', 'tblTempUsageDetail_20' ) start [2025-04-10 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875061', 'tblTempUsageDetail_20' ) end [2025-04-10 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875061', 'tblTempVendorCDR_20' ) start [2025-04-10 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875061', 'tblTempVendorCDR_20' ) end [2025-04-10 06:31:17] Production.INFO: ProcessCDR(1,14875061,1,1,2) [2025-04-10 06:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875061', 'tblTempUsageDetail_20' ) start [2025-04-10 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875061', 'tblTempUsageDetail_20' ) end [2025-04-10 06:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 06:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 06:31:21] Production.INFO: ==23995== Releasing lock... [2025-04-10 06:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 06:31:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 03:32:05 [end_date_ymd] => 2025-04-10 06:32:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 03:32:05' and `end` < '2025-04-10 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-04-10 06:32:18] Production.INFO: count ==368 [2025-04-10 06:32:18] Production.ERROR: pbx CDR StartTime 2025-04-10 03:32:05 - End Time 2025-04-10 06:32:05 [2025-04-10 06:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875066', 'tblTempUsageDetail_20' ) start [2025-04-10 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875066', 'tblTempUsageDetail_20' ) end [2025-04-10 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875066', 'tblTempVendorCDR_20' ) start [2025-04-10 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875066', 'tblTempVendorCDR_20' ) end [2025-04-10 06:32:18] Production.INFO: ProcessCDR(1,14875066,1,1,2) [2025-04-10 06:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875066', 'tblTempUsageDetail_20' ) start [2025-04-10 06:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875066', 'tblTempUsageDetail_20' ) end [2025-04-10 06:32:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 06:32:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 06:32:23] Production.INFO: ==24067== Releasing lock... [2025-04-10 06:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 06:32:23] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 03:33:05 [end_date_ymd] => 2025-04-10 06:33:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 03:33:05' and `end` < '2025-04-10 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-04-10 06:33:18] Production.INFO: count ==360 [2025-04-10 06:33:18] Production.ERROR: pbx CDR StartTime 2025-04-10 03:33:05 - End Time 2025-04-10 06:33:05 [2025-04-10 06:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875071', 'tblTempUsageDetail_20' ) start [2025-04-10 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875071', 'tblTempUsageDetail_20' ) end [2025-04-10 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875071', 'tblTempVendorCDR_20' ) start [2025-04-10 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875071', 'tblTempVendorCDR_20' ) end [2025-04-10 06:33:18] Production.INFO: ProcessCDR(1,14875071,1,1,2) [2025-04-10 06:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875071', 'tblTempUsageDetail_20' ) start [2025-04-10 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875071', 'tblTempUsageDetail_20' ) end [2025-04-10 06:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 06:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 06:33:21] Production.INFO: ==24144== Releasing lock... [2025-04-10 06:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 06:33:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 03:34:05 [end_date_ymd] => 2025-04-10 06:34:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 03:34:05' and `end` < '2025-04-10 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-04-10 06:34:18] Production.INFO: count ==323 [2025-04-10 06:34:18] Production.ERROR: pbx CDR StartTime 2025-04-10 03:34:05 - End Time 2025-04-10 06:34:05 [2025-04-10 06:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875076', 'tblTempUsageDetail_20' ) start [2025-04-10 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875076', 'tblTempUsageDetail_20' ) end [2025-04-10 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875076', 'tblTempVendorCDR_20' ) start [2025-04-10 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875076', 'tblTempVendorCDR_20' ) end [2025-04-10 06:34:18] Production.INFO: ProcessCDR(1,14875076,1,1,2) [2025-04-10 06:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875076', 'tblTempUsageDetail_20' ) start [2025-04-10 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875076', 'tblTempUsageDetail_20' ) end [2025-04-10 06:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 06:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 06:34:21] Production.INFO: ==24225== Releasing lock... [2025-04-10 06:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 06:34:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-10 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 03:35:05 [end_date_ymd] => 2025-04-10 06:35:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 03:35:05' and `end` < '2025-04-10 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-04-10 06:35:18] Production.INFO: count ==290 [2025-04-10 06:35:18] Production.ERROR: pbx CDR StartTime 2025-04-10 03:35:05 - End Time 2025-04-10 06:35:05 [2025-04-10 06:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875081', 'tblTempUsageDetail_20' ) start [2025-04-10 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875081', 'tblTempUsageDetail_20' ) end [2025-04-10 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875081', 'tblTempVendorCDR_20' ) start [2025-04-10 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875081', 'tblTempVendorCDR_20' ) end [2025-04-10 06:35:18] Production.INFO: ProcessCDR(1,14875081,1,1,2) [2025-04-10 06:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875081', 'tblTempUsageDetail_20' ) start [2025-04-10 06:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875081', 'tblTempUsageDetail_20' ) end [2025-04-10 06:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 06:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 06:35:22] Production.INFO: ==24303== Releasing lock... [2025-04-10 06:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 06:35:22] Production.INFO: 31 MB #Memory Used# [2025-04-10 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 03:36:05 [end_date_ymd] => 2025-04-10 06:36:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 03:36:05' and `end` < '2025-04-10 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-04-10 06:36:17] Production.INFO: count ==279 [2025-04-10 06:36:18] Production.ERROR: pbx CDR StartTime 2025-04-10 03:36:05 - End Time 2025-04-10 06:36:05 [2025-04-10 06:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875086', 'tblTempUsageDetail_20' ) start [2025-04-10 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875086', 'tblTempUsageDetail_20' ) end [2025-04-10 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875086', 'tblTempVendorCDR_20' ) start [2025-04-10 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875086', 'tblTempVendorCDR_20' ) end [2025-04-10 06:36:18] Production.INFO: ProcessCDR(1,14875086,1,1,2) [2025-04-10 06:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875086', 'tblTempUsageDetail_20' ) start [2025-04-10 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875086', 'tblTempUsageDetail_20' ) end [2025-04-10 06:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 06:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 06:36:21] Production.INFO: ==24380== Releasing lock... [2025-04-10 06:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 06:36:21] Production.INFO: 31 MB #Memory Used# [2025-04-10 06:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 03:37:06 [end_date_ymd] => 2025-04-10 06:37:06 [RateCDR] => 1 ) [2025-04-10 06: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-04-10 03:37:06' and `end` < '2025-04-10 06: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-04-10 06:37:19] Production.INFO: count ==239 [2025-04-10 06:37:19] Production.ERROR: pbx CDR StartTime 2025-04-10 03:37:06 - End Time 2025-04-10 06:37:06 [2025-04-10 06:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 06:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875091', 'tblTempUsageDetail_20' ) start [2025-04-10 06:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875091', 'tblTempUsageDetail_20' ) end [2025-04-10 06:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875091', 'tblTempVendorCDR_20' ) start [2025-04-10 06:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875091', 'tblTempVendorCDR_20' ) end [2025-04-10 06:37:19] Production.INFO: ProcessCDR(1,14875091,1,1,2) [2025-04-10 06:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875091', 'tblTempUsageDetail_20' ) start [2025-04-10 06:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875091', 'tblTempUsageDetail_20' ) end [2025-04-10 06:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 06:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 06:37:22] Production.INFO: ==24460== Releasing lock... [2025-04-10 06:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 06:37:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-10 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 03:38:05 [end_date_ymd] => 2025-04-10 06:38:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 03:38:05' and `end` < '2025-04-10 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-04-10 06:38:18] Production.INFO: count ==200 [2025-04-10 06:38:18] Production.ERROR: pbx CDR StartTime 2025-04-10 03:38:05 - End Time 2025-04-10 06:38:05 [2025-04-10 06:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875096', 'tblTempUsageDetail_20' ) start [2025-04-10 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875096', 'tblTempUsageDetail_20' ) end [2025-04-10 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875096', 'tblTempVendorCDR_20' ) start [2025-04-10 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875096', 'tblTempVendorCDR_20' ) end [2025-04-10 06:38:18] Production.INFO: ProcessCDR(1,14875096,1,1,2) [2025-04-10 06:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875096', 'tblTempUsageDetail_20' ) start [2025-04-10 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875096', 'tblTempUsageDetail_20' ) end [2025-04-10 06:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 06:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 06:38:21] Production.INFO: ==24577== Releasing lock... [2025-04-10 06:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 06:38:21] Production.INFO: 30 MB #Memory Used# [2025-04-10 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 03:39:05 [end_date_ymd] => 2025-04-10 06:39:05 [RateCDR] => 1 ) [2025-04-10 06:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 03:39:05' and `end` < '2025-04-10 06:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 06:39:18] Production.INFO: count ==163 [2025-04-10 06:39:18] Production.ERROR: pbx CDR StartTime 2025-04-10 03:39:05 - End Time 2025-04-10 06:39:05 [2025-04-10 06:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875101', 'tblTempUsageDetail_20' ) start [2025-04-10 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875101', 'tblTempUsageDetail_20' ) end [2025-04-10 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875101', 'tblTempVendorCDR_20' ) start [2025-04-10 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875101', 'tblTempVendorCDR_20' ) end [2025-04-10 06:39:18] Production.INFO: ProcessCDR(1,14875101,1,1,2) [2025-04-10 06:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875101', 'tblTempUsageDetail_20' ) start [2025-04-10 06:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875101', 'tblTempUsageDetail_20' ) end [2025-04-10 06:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 06:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 06:39:22] Production.INFO: ==24654== Releasing lock... [2025-04-10 06:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 06:39:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-10 06:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 03:40:05 [end_date_ymd] => 2025-04-10 06:40:05 [RateCDR] => 1 ) [2025-04-10 06:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 03:40:05' and `end` < '2025-04-10 06:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 06:40:18] Production.INFO: count ==117 [2025-04-10 06:40:18] Production.ERROR: pbx CDR StartTime 2025-04-10 03:40:05 - End Time 2025-04-10 06:40:05 [2025-04-10 06:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875106', 'tblTempUsageDetail_20' ) start [2025-04-10 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875106', 'tblTempUsageDetail_20' ) end [2025-04-10 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875106', 'tblTempVendorCDR_20' ) start [2025-04-10 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875106', 'tblTempVendorCDR_20' ) end [2025-04-10 06:40:18] Production.INFO: ProcessCDR(1,14875106,1,1,2) [2025-04-10 06:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875106', 'tblTempUsageDetail_20' ) start [2025-04-10 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875106', 'tblTempUsageDetail_20' ) end [2025-04-10 06:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 06:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 06:40:22] Production.INFO: ==24732== Releasing lock... [2025-04-10 06:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 06:40:22] Production.INFO: 29 MB #Memory Used# [2025-04-10 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 03:41:05 [end_date_ymd] => 2025-04-10 06:41:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 03:41:05' and `end` < '2025-04-10 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-04-10 06:41:18] Production.INFO: count ==91 [2025-04-10 06:41:18] Production.ERROR: pbx CDR StartTime 2025-04-10 03:41:05 - End Time 2025-04-10 06:41:05 [2025-04-10 06:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875112', 'tblTempUsageDetail_20' ) start [2025-04-10 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875112', 'tblTempUsageDetail_20' ) end [2025-04-10 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875112', 'tblTempVendorCDR_20' ) start [2025-04-10 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875112', 'tblTempVendorCDR_20' ) end [2025-04-10 06:41:18] Production.INFO: ProcessCDR(1,14875112,1,1,2) [2025-04-10 06:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875112', 'tblTempUsageDetail_20' ) start [2025-04-10 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875112', 'tblTempUsageDetail_20' ) end [2025-04-10 06:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 06:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 06:41:21] Production.INFO: ==24814== Releasing lock... [2025-04-10 06:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 06:41:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-10 06:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 03:42:06 [end_date_ymd] => 2025-04-10 06:42:06 [RateCDR] => 1 ) [2025-04-10 06:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 03:42:06' and `end` < '2025-04-10 06:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 06:42:18] Production.INFO: count ==91 [2025-04-10 06:42:18] Production.ERROR: pbx CDR StartTime 2025-04-10 03:42:06 - End Time 2025-04-10 06:42:06 [2025-04-10 06:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875117', 'tblTempUsageDetail_20' ) start [2025-04-10 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875117', 'tblTempUsageDetail_20' ) end [2025-04-10 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875117', 'tblTempVendorCDR_20' ) start [2025-04-10 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875117', 'tblTempVendorCDR_20' ) end [2025-04-10 06:42:18] Production.INFO: ProcessCDR(1,14875117,1,1,2) [2025-04-10 06:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875117', 'tblTempUsageDetail_20' ) start [2025-04-10 06:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875117', 'tblTempUsageDetail_20' ) end [2025-04-10 06:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 06:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 06:42:22] Production.INFO: ==24886== Releasing lock... [2025-04-10 06:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 06:42:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-10 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 03:43:05 [end_date_ymd] => 2025-04-10 06:43:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 03:43:05' and `end` < '2025-04-10 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-04-10 06:43:17] Production.INFO: count ==91 [2025-04-10 06:43:17] Production.ERROR: pbx CDR StartTime 2025-04-10 03:43:05 - End Time 2025-04-10 06:43:05 [2025-04-10 06:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875122', 'tblTempUsageDetail_20' ) start [2025-04-10 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875122', 'tblTempUsageDetail_20' ) end [2025-04-10 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875122', 'tblTempVendorCDR_20' ) start [2025-04-10 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875122', 'tblTempVendorCDR_20' ) end [2025-04-10 06:43:17] Production.INFO: ProcessCDR(1,14875122,1,1,2) [2025-04-10 06:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875122', 'tblTempUsageDetail_20' ) start [2025-04-10 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875122', 'tblTempUsageDetail_20' ) end [2025-04-10 06:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 06:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 06:43:21] Production.INFO: ==24960== Releasing lock... [2025-04-10 06:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 06:43:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-10 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 03:44:05 [end_date_ymd] => 2025-04-10 06:44:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 03:44:05' and `end` < '2025-04-10 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-04-10 06:44:18] Production.INFO: count ==83 [2025-04-10 06:44:18] Production.ERROR: pbx CDR StartTime 2025-04-10 03:44:05 - End Time 2025-04-10 06:44:05 [2025-04-10 06:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875127', 'tblTempUsageDetail_20' ) start [2025-04-10 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875127', 'tblTempUsageDetail_20' ) end [2025-04-10 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875127', 'tblTempVendorCDR_20' ) start [2025-04-10 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875127', 'tblTempVendorCDR_20' ) end [2025-04-10 06:44:18] Production.INFO: ProcessCDR(1,14875127,1,1,2) [2025-04-10 06:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875127', 'tblTempUsageDetail_20' ) start [2025-04-10 06:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875127', 'tblTempUsageDetail_20' ) end [2025-04-10 06:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 06:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 06:44:22] Production.INFO: ==25040== Releasing lock... [2025-04-10 06:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 06:44:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-10 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 03:45:05 [end_date_ymd] => 2025-04-10 06:45:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 03:45:05' and `end` < '2025-04-10 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-04-10 06:45:18] Production.INFO: count ==68 [2025-04-10 06:45:18] Production.ERROR: pbx CDR StartTime 2025-04-10 03:45:05 - End Time 2025-04-10 06:45:05 [2025-04-10 06:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875132', 'tblTempUsageDetail_20' ) start [2025-04-10 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875132', 'tblTempUsageDetail_20' ) end [2025-04-10 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875132', 'tblTempVendorCDR_20' ) start [2025-04-10 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875132', 'tblTempVendorCDR_20' ) end [2025-04-10 06:45:18] Production.INFO: ProcessCDR(1,14875132,1,1,2) [2025-04-10 06:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875132', 'tblTempUsageDetail_20' ) start [2025-04-10 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875132', 'tblTempUsageDetail_20' ) end [2025-04-10 06:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 06:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 06:45:21] Production.INFO: ==25116== Releasing lock... [2025-04-10 06:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 06:45:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-10 06:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 03:46:06 [end_date_ymd] => 2025-04-10 06:46:06 [RateCDR] => 1 ) [2025-04-10 06:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 03:46:06' and `end` < '2025-04-10 06:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 06:46:19] Production.INFO: count ==61 [2025-04-10 06:46:19] Production.ERROR: pbx CDR StartTime 2025-04-10 03:46:06 - End Time 2025-04-10 06:46:06 [2025-04-10 06:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 06:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875137', 'tblTempUsageDetail_20' ) start [2025-04-10 06:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875137', 'tblTempUsageDetail_20' ) end [2025-04-10 06:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875137', 'tblTempVendorCDR_20' ) start [2025-04-10 06:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875137', 'tblTempVendorCDR_20' ) end [2025-04-10 06:46:19] Production.INFO: ProcessCDR(1,14875137,1,1,2) [2025-04-10 06:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875137', 'tblTempUsageDetail_20' ) start [2025-04-10 06:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875137', 'tblTempUsageDetail_20' ) end [2025-04-10 06:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 06:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 06:46:22] Production.INFO: ==25193== Releasing lock... [2025-04-10 06:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 06:46:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-10 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 03:47:05 [end_date_ymd] => 2025-04-10 06:47:05 [RateCDR] => 1 ) [2025-04-10 06:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 03:47:05' and `end` < '2025-04-10 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-04-10 06:47:18] Production.INFO: count ==61 [2025-04-10 06:47:18] Production.ERROR: pbx CDR StartTime 2025-04-10 03:47:05 - End Time 2025-04-10 06:47:05 [2025-04-10 06:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875142', 'tblTempUsageDetail_20' ) start [2025-04-10 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875142', 'tblTempUsageDetail_20' ) end [2025-04-10 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875142', 'tblTempVendorCDR_20' ) start [2025-04-10 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875142', 'tblTempVendorCDR_20' ) end [2025-04-10 06:47:18] Production.INFO: ProcessCDR(1,14875142,1,1,2) [2025-04-10 06:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875142', 'tblTempUsageDetail_20' ) start [2025-04-10 06:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875142', 'tblTempUsageDetail_20' ) end [2025-04-10 06:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 06:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 06:47:22] Production.INFO: ==25272== Releasing lock... [2025-04-10 06:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 06:47:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-10 06:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 03:48:06 [end_date_ymd] => 2025-04-10 06:48:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 03:48:06' and `end` < '2025-04-10 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-04-10 06:48:19] Production.INFO: count ==61 [2025-04-10 06:48:19] Production.ERROR: pbx CDR StartTime 2025-04-10 03:48:06 - End Time 2025-04-10 06:48:06 [2025-04-10 06:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 06:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875147', 'tblTempUsageDetail_20' ) start [2025-04-10 06:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875147', 'tblTempUsageDetail_20' ) end [2025-04-10 06:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875147', 'tblTempVendorCDR_20' ) start [2025-04-10 06:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875147', 'tblTempVendorCDR_20' ) end [2025-04-10 06:48:19] Production.INFO: ProcessCDR(1,14875147,1,1,2) [2025-04-10 06:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875147', 'tblTempUsageDetail_20' ) start [2025-04-10 06:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875147', 'tblTempUsageDetail_20' ) end [2025-04-10 06:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 06:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 06:48:22] Production.INFO: ==25345== Releasing lock... [2025-04-10 06:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 06:48:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-10 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 03:49:05 [end_date_ymd] => 2025-04-10 06:49:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 03:49:05' and `end` < '2025-04-10 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-04-10 06:49:17] Production.INFO: count ==61 [2025-04-10 06:49:17] Production.ERROR: pbx CDR StartTime 2025-04-10 03:49:05 - End Time 2025-04-10 06:49:05 [2025-04-10 06:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875152', 'tblTempUsageDetail_20' ) start [2025-04-10 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875152', 'tblTempUsageDetail_20' ) end [2025-04-10 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875152', 'tblTempVendorCDR_20' ) start [2025-04-10 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875152', 'tblTempVendorCDR_20' ) end [2025-04-10 06:49:17] Production.INFO: ProcessCDR(1,14875152,1,1,2) [2025-04-10 06:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875152', 'tblTempUsageDetail_20' ) start [2025-04-10 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875152', 'tblTempUsageDetail_20' ) end [2025-04-10 06:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 06:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 06:49:21] Production.INFO: ==25436== Releasing lock... [2025-04-10 06:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 06:49:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-10 06:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 03:50:06 [end_date_ymd] => 2025-04-10 06:50:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 03:50:06' and `end` < '2025-04-10 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-04-10 06:50:19] Production.INFO: count ==69 [2025-04-10 06:50:19] Production.ERROR: pbx CDR StartTime 2025-04-10 03:50:06 - End Time 2025-04-10 06:50:06 [2025-04-10 06:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875158', 'tblTempUsageDetail_20' ) start [2025-04-10 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875158', 'tblTempUsageDetail_20' ) end [2025-04-10 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875158', 'tblTempVendorCDR_20' ) start [2025-04-10 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875158', 'tblTempVendorCDR_20' ) end [2025-04-10 06:50:19] Production.INFO: ProcessCDR(1,14875158,1,1,2) [2025-04-10 06:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875158', 'tblTempUsageDetail_20' ) start [2025-04-10 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875158', 'tblTempUsageDetail_20' ) end [2025-04-10 06:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 06:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 06:50:22] Production.INFO: ==25549== Releasing lock... [2025-04-10 06:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 06:50:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-10 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 03:51:05 [end_date_ymd] => 2025-04-10 06:51:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 03:51:05' and `end` < '2025-04-10 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-04-10 06:51:18] Production.INFO: count ==70 [2025-04-10 06:51:18] Production.ERROR: pbx CDR StartTime 2025-04-10 03:51:05 - End Time 2025-04-10 06:51:05 [2025-04-10 06:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875163', 'tblTempUsageDetail_20' ) start [2025-04-10 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875163', 'tblTempUsageDetail_20' ) end [2025-04-10 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875163', 'tblTempVendorCDR_20' ) start [2025-04-10 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875163', 'tblTempVendorCDR_20' ) end [2025-04-10 06:51:18] Production.INFO: ProcessCDR(1,14875163,1,1,2) [2025-04-10 06:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875163', 'tblTempUsageDetail_20' ) start [2025-04-10 06:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875163', 'tblTempUsageDetail_20' ) end [2025-04-10 06:51:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 06:51:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 06:51:23] Production.INFO: ==25664== Releasing lock... [2025-04-10 06:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 06:51:23] Production.INFO: 28.25 MB #Memory Used# [2025-04-10 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 03:52:05 [end_date_ymd] => 2025-04-10 06:52:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 03:52:05' and `end` < '2025-04-10 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-04-10 06:52:18] Production.INFO: count ==70 [2025-04-10 06:52:18] Production.ERROR: pbx CDR StartTime 2025-04-10 03:52:05 - End Time 2025-04-10 06:52:05 [2025-04-10 06:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875168', 'tblTempUsageDetail_20' ) start [2025-04-10 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875168', 'tblTempUsageDetail_20' ) end [2025-04-10 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875168', 'tblTempVendorCDR_20' ) start [2025-04-10 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875168', 'tblTempVendorCDR_20' ) end [2025-04-10 06:52:18] Production.INFO: ProcessCDR(1,14875168,1,1,2) [2025-04-10 06:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875168', 'tblTempUsageDetail_20' ) start [2025-04-10 06:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875168', 'tblTempUsageDetail_20' ) end [2025-04-10 06:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 06:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 06:52:22] Production.INFO: ==25781== Releasing lock... [2025-04-10 06:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 06:52:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-10 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 03:53:05 [end_date_ymd] => 2025-04-10 06:53:05 [RateCDR] => 1 ) [2025-04-10 06:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 03:53:05' and `end` < '2025-04-10 06:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 06:53:17] Production.INFO: count ==70 [2025-04-10 06:53:17] Production.ERROR: pbx CDR StartTime 2025-04-10 03:53:05 - End Time 2025-04-10 06:53:05 [2025-04-10 06:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875173', 'tblTempUsageDetail_20' ) start [2025-04-10 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875173', 'tblTempUsageDetail_20' ) end [2025-04-10 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875173', 'tblTempVendorCDR_20' ) start [2025-04-10 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875173', 'tblTempVendorCDR_20' ) end [2025-04-10 06:53:18] Production.INFO: ProcessCDR(1,14875173,1,1,2) [2025-04-10 06:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875173', 'tblTempUsageDetail_20' ) start [2025-04-10 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875173', 'tblTempUsageDetail_20' ) end [2025-04-10 06:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 06:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 06:53:21] Production.INFO: ==25894== Releasing lock... [2025-04-10 06:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 06:53:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-10 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 03:54:05 [end_date_ymd] => 2025-04-10 06:54:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 03:54:05' and `end` < '2025-04-10 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-04-10 06:54:18] Production.INFO: count ==72 [2025-04-10 06:54:18] Production.ERROR: pbx CDR StartTime 2025-04-10 03:54:05 - End Time 2025-04-10 06:54:05 [2025-04-10 06:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875178', 'tblTempUsageDetail_20' ) start [2025-04-10 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875178', 'tblTempUsageDetail_20' ) end [2025-04-10 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875178', 'tblTempVendorCDR_20' ) start [2025-04-10 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875178', 'tblTempVendorCDR_20' ) end [2025-04-10 06:54:18] Production.INFO: ProcessCDR(1,14875178,1,1,2) [2025-04-10 06:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875178', 'tblTempUsageDetail_20' ) start [2025-04-10 06:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875178', 'tblTempUsageDetail_20' ) end [2025-04-10 06:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 06:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 06:54:22] Production.INFO: ==26047== Releasing lock... [2025-04-10 06:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 06:54:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-10 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 03:55:05 [end_date_ymd] => 2025-04-10 06:55:05 [RateCDR] => 1 ) [2025-04-10 06:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 03:55:05' and `end` < '2025-04-10 06:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 06:55:18] Production.INFO: count ==72 [2025-04-10 06:55:18] Production.ERROR: pbx CDR StartTime 2025-04-10 03:55:05 - End Time 2025-04-10 06:55:05 [2025-04-10 06:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875183', 'tblTempUsageDetail_20' ) start [2025-04-10 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875183', 'tblTempUsageDetail_20' ) end [2025-04-10 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875183', 'tblTempVendorCDR_20' ) start [2025-04-10 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875183', 'tblTempVendorCDR_20' ) end [2025-04-10 06:55:18] Production.INFO: ProcessCDR(1,14875183,1,1,2) [2025-04-10 06:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875183', 'tblTempUsageDetail_20' ) start [2025-04-10 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875183', 'tblTempUsageDetail_20' ) end [2025-04-10 06:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 06:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 06:55:21] Production.INFO: ==26155== Releasing lock... [2025-04-10 06:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 06:55:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-10 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 03:56:05 [end_date_ymd] => 2025-04-10 06:56:05 [RateCDR] => 1 ) [2025-04-10 06:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 03:56:05' and `end` < '2025-04-10 06:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 06:56:18] Production.INFO: count ==70 [2025-04-10 06:56:18] Production.ERROR: pbx CDR StartTime 2025-04-10 03:56:05 - End Time 2025-04-10 06:56:05 [2025-04-10 06:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875188', 'tblTempUsageDetail_20' ) start [2025-04-10 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875188', 'tblTempUsageDetail_20' ) end [2025-04-10 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875188', 'tblTempVendorCDR_20' ) start [2025-04-10 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875188', 'tblTempVendorCDR_20' ) end [2025-04-10 06:56:18] Production.INFO: ProcessCDR(1,14875188,1,1,2) [2025-04-10 06:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875188', 'tblTempUsageDetail_20' ) start [2025-04-10 06:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875188', 'tblTempUsageDetail_20' ) end [2025-04-10 06:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 06:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 06:56:22] Production.INFO: ==26270== Releasing lock... [2025-04-10 06:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 06:56:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-10 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 03:57:05 [end_date_ymd] => 2025-04-10 06:57:05 [RateCDR] => 1 ) [2025-04-10 06:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 03:57:05' and `end` < '2025-04-10 06:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 06:57:18] Production.INFO: count ==72 [2025-04-10 06:57:18] Production.ERROR: pbx CDR StartTime 2025-04-10 03:57:05 - End Time 2025-04-10 06:57:05 [2025-04-10 06:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875193', 'tblTempUsageDetail_20' ) start [2025-04-10 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875193', 'tblTempUsageDetail_20' ) end [2025-04-10 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875193', 'tblTempVendorCDR_20' ) start [2025-04-10 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875193', 'tblTempVendorCDR_20' ) end [2025-04-10 06:57:18] Production.INFO: ProcessCDR(1,14875193,1,1,2) [2025-04-10 06:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875193', 'tblTempUsageDetail_20' ) start [2025-04-10 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875193', 'tblTempUsageDetail_20' ) end [2025-04-10 06:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 06:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 06:57:21] Production.INFO: ==26387== Releasing lock... [2025-04-10 06:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 06:57:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-10 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 03:58:05 [end_date_ymd] => 2025-04-10 06:58:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 03:58:05' and `end` < '2025-04-10 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-04-10 06:58:18] Production.INFO: count ==74 [2025-04-10 06:58:18] Production.ERROR: pbx CDR StartTime 2025-04-10 03:58:05 - End Time 2025-04-10 06:58:05 [2025-04-10 06:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875198', 'tblTempUsageDetail_20' ) start [2025-04-10 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875198', 'tblTempUsageDetail_20' ) end [2025-04-10 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875198', 'tblTempVendorCDR_20' ) start [2025-04-10 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875198', 'tblTempVendorCDR_20' ) end [2025-04-10 06:58:18] Production.INFO: ProcessCDR(1,14875198,1,1,2) [2025-04-10 06:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875198', 'tblTempUsageDetail_20' ) start [2025-04-10 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875198', 'tblTempUsageDetail_20' ) end [2025-04-10 06:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 06:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 06:58:21] Production.INFO: ==26501== Releasing lock... [2025-04-10 06:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 06:58:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-10 06:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 03:59:06 [end_date_ymd] => 2025-04-10 06:59:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 03:59:06' and `end` < '2025-04-10 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-04-10 06:59:18] Production.INFO: count ==74 [2025-04-10 06:59:18] Production.ERROR: pbx CDR StartTime 2025-04-10 03:59:06 - End Time 2025-04-10 06:59:06 [2025-04-10 06:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875203', 'tblTempUsageDetail_20' ) start [2025-04-10 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875203', 'tblTempUsageDetail_20' ) end [2025-04-10 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875203', 'tblTempVendorCDR_20' ) start [2025-04-10 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875203', 'tblTempVendorCDR_20' ) end [2025-04-10 06:59:18] Production.INFO: ProcessCDR(1,14875203,1,1,2) [2025-04-10 06:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 06:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 06:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875203', 'tblTempUsageDetail_20' ) start [2025-04-10 06:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875203', 'tblTempUsageDetail_20' ) end [2025-04-10 06:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 06:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 06:59:22] Production.INFO: ==26613== Releasing lock... [2025-04-10 06:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 06:59:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-10 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 04:00:06 [end_date_ymd] => 2025-04-10 07:00:06 [RateCDR] => 1 ) [2025-04-10 07:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 04:00:06' and `end` < '2025-04-10 07:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 07:00:19] Production.INFO: count ==74 [2025-04-10 07:00:19] Production.ERROR: pbx CDR StartTime 2025-04-10 04:00:06 - End Time 2025-04-10 07:00:06 [2025-04-10 07:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875209', 'tblTempUsageDetail_20' ) start [2025-04-10 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875209', 'tblTempUsageDetail_20' ) end [2025-04-10 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875209', 'tblTempVendorCDR_20' ) start [2025-04-10 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875209', 'tblTempVendorCDR_20' ) end [2025-04-10 07:00:19] Production.INFO: ProcessCDR(1,14875209,1,1,2) [2025-04-10 07:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875209', 'tblTempUsageDetail_20' ) start [2025-04-10 07:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875209', 'tblTempUsageDetail_20' ) end [2025-04-10 07:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 07:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 07:00:23] Production.INFO: ==26728== Releasing lock... [2025-04-10 07:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 07:00:23] Production.INFO: 28.25 MB #Memory Used# [2025-04-10 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 04:01:05 [end_date_ymd] => 2025-04-10 07:01:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 04:01:05' and `end` < '2025-04-10 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-04-10 07:01:18] Production.INFO: count ==74 [2025-04-10 07:01:18] Production.ERROR: pbx CDR StartTime 2025-04-10 04:01:05 - End Time 2025-04-10 07:01:05 [2025-04-10 07:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875214', 'tblTempUsageDetail_20' ) start [2025-04-10 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875214', 'tblTempUsageDetail_20' ) end [2025-04-10 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875214', 'tblTempVendorCDR_20' ) start [2025-04-10 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875214', 'tblTempVendorCDR_20' ) end [2025-04-10 07:01:18] Production.INFO: ProcessCDR(1,14875214,1,1,2) [2025-04-10 07:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875214', 'tblTempUsageDetail_20' ) start [2025-04-10 07:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875214', 'tblTempUsageDetail_20' ) end [2025-04-10 07:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 07:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 07:01:22] Production.INFO: ==26937== Releasing lock... [2025-04-10 07:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 07:01:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-10 07:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 04:02:05 [end_date_ymd] => 2025-04-10 07:02:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 04:02:05' and `end` < '2025-04-10 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-04-10 07:02:18] Production.INFO: count ==74 [2025-04-10 07:02:18] Production.ERROR: pbx CDR StartTime 2025-04-10 04:02:05 - End Time 2025-04-10 07:02:05 [2025-04-10 07:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875219', 'tblTempUsageDetail_20' ) start [2025-04-10 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875219', 'tblTempUsageDetail_20' ) end [2025-04-10 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875219', 'tblTempVendorCDR_20' ) start [2025-04-10 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875219', 'tblTempVendorCDR_20' ) end [2025-04-10 07:02:18] Production.INFO: ProcessCDR(1,14875219,1,1,2) [2025-04-10 07:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875219', 'tblTempUsageDetail_20' ) start [2025-04-10 07:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875219', 'tblTempUsageDetail_20' ) end [2025-04-10 07:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 07:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 07:02:22] Production.INFO: ==27050== Releasing lock... [2025-04-10 07:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 07:02:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-10 07:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 04:03:06 [end_date_ymd] => 2025-04-10 07:03:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 04:03:06' and `end` < '2025-04-10 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-04-10 07:03:19] Production.INFO: count ==74 [2025-04-10 07:03:19] Production.ERROR: pbx CDR StartTime 2025-04-10 04:03:06 - End Time 2025-04-10 07:03:06 [2025-04-10 07:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875224', 'tblTempUsageDetail_20' ) start [2025-04-10 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875224', 'tblTempUsageDetail_20' ) end [2025-04-10 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875224', 'tblTempVendorCDR_20' ) start [2025-04-10 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875224', 'tblTempVendorCDR_20' ) end [2025-04-10 07:03:19] Production.INFO: ProcessCDR(1,14875224,1,1,2) [2025-04-10 07:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875224', 'tblTempUsageDetail_20' ) start [2025-04-10 07:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875224', 'tblTempUsageDetail_20' ) end [2025-04-10 07:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 07:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 07:03:22] Production.INFO: ==27136== Releasing lock... [2025-04-10 07:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 07:03:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-10 07:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 04:04:05 [end_date_ymd] => 2025-04-10 07:04:05 [RateCDR] => 1 ) [2025-04-10 07:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 04:04:05' and `end` < '2025-04-10 07:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 07:04:19] Production.INFO: count ==74 [2025-04-10 07:04:19] Production.ERROR: pbx CDR StartTime 2025-04-10 04:04:05 - End Time 2025-04-10 07:04:05 [2025-04-10 07:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875229', 'tblTempUsageDetail_20' ) start [2025-04-10 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875229', 'tblTempUsageDetail_20' ) end [2025-04-10 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875229', 'tblTempVendorCDR_20' ) start [2025-04-10 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875229', 'tblTempVendorCDR_20' ) end [2025-04-10 07:04:19] Production.INFO: ProcessCDR(1,14875229,1,1,2) [2025-04-10 07:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875229', 'tblTempUsageDetail_20' ) start [2025-04-10 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875229', 'tblTempUsageDetail_20' ) end [2025-04-10 07:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 07:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 07:04:22] Production.INFO: ==27213== Releasing lock... [2025-04-10 07:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 07:04:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-10 07:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 04:05:05 [end_date_ymd] => 2025-04-10 07:05:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 04:05:05' and `end` < '2025-04-10 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-04-10 07:05:19] Production.INFO: count ==74 [2025-04-10 07:05:19] Production.ERROR: pbx CDR StartTime 2025-04-10 04:05:05 - End Time 2025-04-10 07:05:05 [2025-04-10 07:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875234', 'tblTempUsageDetail_20' ) start [2025-04-10 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875234', 'tblTempUsageDetail_20' ) end [2025-04-10 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875234', 'tblTempVendorCDR_20' ) start [2025-04-10 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875234', 'tblTempVendorCDR_20' ) end [2025-04-10 07:05:19] Production.INFO: ProcessCDR(1,14875234,1,1,2) [2025-04-10 07:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875234', 'tblTempUsageDetail_20' ) start [2025-04-10 07:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875234', 'tblTempUsageDetail_20' ) end [2025-04-10 07:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 07:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 07:05:23] Production.INFO: ==27370== Releasing lock... [2025-04-10 07:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 07:05:23] Production.INFO: 28.25 MB #Memory Used# [2025-04-10 07:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 04:06:06 [end_date_ymd] => 2025-04-10 07:06:06 [RateCDR] => 1 ) [2025-04-10 07:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 04:06:06' and `end` < '2025-04-10 07:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 07:06:18] Production.INFO: count ==74 [2025-04-10 07:06:18] Production.ERROR: pbx CDR StartTime 2025-04-10 04:06:06 - End Time 2025-04-10 07:06:06 [2025-04-10 07:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875239', 'tblTempUsageDetail_20' ) start [2025-04-10 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875239', 'tblTempUsageDetail_20' ) end [2025-04-10 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875239', 'tblTempVendorCDR_20' ) start [2025-04-10 07:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875239', 'tblTempVendorCDR_20' ) end [2025-04-10 07:06:18] Production.INFO: ProcessCDR(1,14875239,1,1,2) [2025-04-10 07:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875239', 'tblTempUsageDetail_20' ) start [2025-04-10 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875239', 'tblTempUsageDetail_20' ) end [2025-04-10 07:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 07:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 07:06:22] Production.INFO: ==27444== Releasing lock... [2025-04-10 07:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 07:06:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-10 07:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 04:07:06 [end_date_ymd] => 2025-04-10 07:07:06 [RateCDR] => 1 ) [2025-04-10 07: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-04-10 04:07:06' and `end` < '2025-04-10 07: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-04-10 07:07:19] Production.INFO: count ==74 [2025-04-10 07:07:19] Production.ERROR: pbx CDR StartTime 2025-04-10 04:07:06 - End Time 2025-04-10 07:07:06 [2025-04-10 07:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875244', 'tblTempUsageDetail_20' ) start [2025-04-10 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875244', 'tblTempUsageDetail_20' ) end [2025-04-10 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875244', 'tblTempVendorCDR_20' ) start [2025-04-10 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875244', 'tblTempVendorCDR_20' ) end [2025-04-10 07:07:19] Production.INFO: ProcessCDR(1,14875244,1,1,2) [2025-04-10 07:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875244', 'tblTempUsageDetail_20' ) start [2025-04-10 07:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875244', 'tblTempUsageDetail_20' ) end [2025-04-10 07:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 07:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 07:07:23] Production.INFO: ==27526== Releasing lock... [2025-04-10 07:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 07:07:23] Production.INFO: 28.25 MB #Memory Used# [2025-04-10 07:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 04:08:05 [end_date_ymd] => 2025-04-10 07:08:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 04:08:05' and `end` < '2025-04-10 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-04-10 07:08:19] Production.INFO: count ==76 [2025-04-10 07:08:19] Production.ERROR: pbx CDR StartTime 2025-04-10 04:08:05 - End Time 2025-04-10 07:08:05 [2025-04-10 07:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875249', 'tblTempUsageDetail_20' ) start [2025-04-10 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875249', 'tblTempUsageDetail_20' ) end [2025-04-10 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875249', 'tblTempVendorCDR_20' ) start [2025-04-10 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875249', 'tblTempVendorCDR_20' ) end [2025-04-10 07:08:19] Production.INFO: ProcessCDR(1,14875249,1,1,2) [2025-04-10 07:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875249', 'tblTempUsageDetail_20' ) start [2025-04-10 07:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875249', 'tblTempUsageDetail_20' ) end [2025-04-10 07:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 07:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 07:08:22] Production.INFO: ==27682== Releasing lock... [2025-04-10 07:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 07:08:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-10 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 04:09:05 [end_date_ymd] => 2025-04-10 07:09:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 04:09:05' and `end` < '2025-04-10 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-04-10 07:09:18] Production.INFO: count ==76 [2025-04-10 07:09:18] Production.ERROR: pbx CDR StartTime 2025-04-10 04:09:05 - End Time 2025-04-10 07:09:05 [2025-04-10 07:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875254', 'tblTempUsageDetail_20' ) start [2025-04-10 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875254', 'tblTempUsageDetail_20' ) end [2025-04-10 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875254', 'tblTempVendorCDR_20' ) start [2025-04-10 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875254', 'tblTempVendorCDR_20' ) end [2025-04-10 07:09:18] Production.INFO: ProcessCDR(1,14875254,1,1,2) [2025-04-10 07:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875254', 'tblTempUsageDetail_20' ) start [2025-04-10 07:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875254', 'tblTempUsageDetail_20' ) end [2025-04-10 07:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 07:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 07:09:22] Production.INFO: ==27798== Releasing lock... [2025-04-10 07:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 07:09:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-10 07:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 04:10:06 [end_date_ymd] => 2025-04-10 07:10:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 04:10:06' and `end` < '2025-04-10 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-04-10 07:10:19] Production.INFO: count ==84 [2025-04-10 07:10:19] Production.ERROR: pbx CDR StartTime 2025-04-10 04:10:06 - End Time 2025-04-10 07:10:06 [2025-04-10 07:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875260', 'tblTempUsageDetail_20' ) start [2025-04-10 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875260', 'tblTempUsageDetail_20' ) end [2025-04-10 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875260', 'tblTempVendorCDR_20' ) start [2025-04-10 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875260', 'tblTempVendorCDR_20' ) end [2025-04-10 07:10:19] Production.INFO: ProcessCDR(1,14875260,1,1,2) [2025-04-10 07:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875260', 'tblTempUsageDetail_20' ) start [2025-04-10 07:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875260', 'tblTempUsageDetail_20' ) end [2025-04-10 07:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 07:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 07:10:23] Production.INFO: ==27873== Releasing lock... [2025-04-10 07:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 07:10:23] Production.INFO: 28.25 MB #Memory Used# [2025-04-10 07:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 04:11:06 [end_date_ymd] => 2025-04-10 07:11:06 [RateCDR] => 1 ) [2025-04-10 07:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 04:11:06' and `end` < '2025-04-10 07:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 07:11:19] Production.INFO: count ==85 [2025-04-10 07:11:19] Production.ERROR: pbx CDR StartTime 2025-04-10 04:11:06 - End Time 2025-04-10 07:11:06 [2025-04-10 07:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875265', 'tblTempUsageDetail_20' ) start [2025-04-10 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875265', 'tblTempUsageDetail_20' ) end [2025-04-10 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875265', 'tblTempVendorCDR_20' ) start [2025-04-10 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875265', 'tblTempVendorCDR_20' ) end [2025-04-10 07:11:19] Production.INFO: ProcessCDR(1,14875265,1,1,2) [2025-04-10 07:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875265', 'tblTempUsageDetail_20' ) start [2025-04-10 07:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875265', 'tblTempUsageDetail_20' ) end [2025-04-10 07:11:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 07:11:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 07:11:24] Production.INFO: ==27951== Releasing lock... [2025-04-10 07:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 07:11:24] Production.INFO: 28.25 MB #Memory Used# [2025-04-10 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 04:12:05 [end_date_ymd] => 2025-04-10 07:12:05 [RateCDR] => 1 ) [2025-04-10 07:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 04:12:05' and `end` < '2025-04-10 07:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 07:12:18] Production.INFO: count ==85 [2025-04-10 07:12:18] Production.ERROR: pbx CDR StartTime 2025-04-10 04:12:05 - End Time 2025-04-10 07:12:05 [2025-04-10 07:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875270', 'tblTempUsageDetail_20' ) start [2025-04-10 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875270', 'tblTempUsageDetail_20' ) end [2025-04-10 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875270', 'tblTempVendorCDR_20' ) start [2025-04-10 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875270', 'tblTempVendorCDR_20' ) end [2025-04-10 07:12:18] Production.INFO: ProcessCDR(1,14875270,1,1,2) [2025-04-10 07:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875270', 'tblTempUsageDetail_20' ) start [2025-04-10 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875270', 'tblTempUsageDetail_20' ) end [2025-04-10 07:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 07:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 07:12:21] Production.INFO: ==28109== Releasing lock... [2025-04-10 07:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 07:12:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-10 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 04:13:05 [end_date_ymd] => 2025-04-10 07:13:05 [RateCDR] => 1 ) [2025-04-10 07:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 04:13:05' and `end` < '2025-04-10 07:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 07:13:18] Production.INFO: count ==86 [2025-04-10 07:13:18] Production.ERROR: pbx CDR StartTime 2025-04-10 04:13:05 - End Time 2025-04-10 07:13:05 [2025-04-10 07:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875275', 'tblTempUsageDetail_20' ) start [2025-04-10 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875275', 'tblTempUsageDetail_20' ) end [2025-04-10 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875275', 'tblTempVendorCDR_20' ) start [2025-04-10 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875275', 'tblTempVendorCDR_20' ) end [2025-04-10 07:13:18] Production.INFO: ProcessCDR(1,14875275,1,1,2) [2025-04-10 07:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875275', 'tblTempUsageDetail_20' ) start [2025-04-10 07:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875275', 'tblTempUsageDetail_20' ) end [2025-04-10 07:13:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 07:13:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 07:13:24] Production.INFO: ==28184== Releasing lock... [2025-04-10 07:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 07:13:24] Production.INFO: 28.25 MB #Memory Used# [2025-04-10 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 04:14:05 [end_date_ymd] => 2025-04-10 07:14:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 04:14:05' and `end` < '2025-04-10 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-04-10 07:14:18] Production.INFO: count ==87 [2025-04-10 07:14:18] Production.ERROR: pbx CDR StartTime 2025-04-10 04:14:05 - End Time 2025-04-10 07:14:05 [2025-04-10 07:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875280', 'tblTempUsageDetail_20' ) start [2025-04-10 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875280', 'tblTempUsageDetail_20' ) end [2025-04-10 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875280', 'tblTempVendorCDR_20' ) start [2025-04-10 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875280', 'tblTempVendorCDR_20' ) end [2025-04-10 07:14:18] Production.INFO: ProcessCDR(1,14875280,1,1,2) [2025-04-10 07:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875280', 'tblTempUsageDetail_20' ) start [2025-04-10 07:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875280', 'tblTempUsageDetail_20' ) end [2025-04-10 07:14:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 07:14:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 07:14:23] Production.INFO: ==28256== Releasing lock... [2025-04-10 07:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 07:14:23] Production.INFO: 28.25 MB #Memory Used# [2025-04-10 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 04:15:05 [end_date_ymd] => 2025-04-10 07:15:05 [RateCDR] => 1 ) [2025-04-10 07:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 04:15:05' and `end` < '2025-04-10 07:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 07:15:18] Production.INFO: count ==87 [2025-04-10 07:15:18] Production.ERROR: pbx CDR StartTime 2025-04-10 04:15:05 - End Time 2025-04-10 07:15:05 [2025-04-10 07:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875285', 'tblTempUsageDetail_20' ) start [2025-04-10 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875285', 'tblTempUsageDetail_20' ) end [2025-04-10 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875285', 'tblTempVendorCDR_20' ) start [2025-04-10 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875285', 'tblTempVendorCDR_20' ) end [2025-04-10 07:15:18] Production.INFO: ProcessCDR(1,14875285,1,1,2) [2025-04-10 07:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875285', 'tblTempUsageDetail_20' ) start [2025-04-10 07:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875285', 'tblTempUsageDetail_20' ) end [2025-04-10 07:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 07:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 07:15:21] Production.INFO: ==28411== Releasing lock... [2025-04-10 07:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 07:15:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-10 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 04:16:05 [end_date_ymd] => 2025-04-10 07:16:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 04:16:05' and `end` < '2025-04-10 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-04-10 07:16:18] Production.INFO: count ==86 [2025-04-10 07:16:18] Production.ERROR: pbx CDR StartTime 2025-04-10 04:16:05 - End Time 2025-04-10 07:16:05 [2025-04-10 07:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875290', 'tblTempUsageDetail_20' ) start [2025-04-10 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875290', 'tblTempUsageDetail_20' ) end [2025-04-10 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875290', 'tblTempVendorCDR_20' ) start [2025-04-10 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875290', 'tblTempVendorCDR_20' ) end [2025-04-10 07:16:18] Production.INFO: ProcessCDR(1,14875290,1,1,2) [2025-04-10 07:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875290', 'tblTempUsageDetail_20' ) start [2025-04-10 07:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875290', 'tblTempUsageDetail_20' ) end [2025-04-10 07:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 07:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 07:16:21] Production.INFO: ==28494== Releasing lock... [2025-04-10 07:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 07:16:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-10 07:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 04:17:05 [end_date_ymd] => 2025-04-10 07:17:05 [RateCDR] => 1 ) [2025-04-10 07:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 04:17:05' and `end` < '2025-04-10 07:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 07:17:18] Production.INFO: count ==86 [2025-04-10 07:17:18] Production.ERROR: pbx CDR StartTime 2025-04-10 04:17:05 - End Time 2025-04-10 07:17:05 [2025-04-10 07:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875295', 'tblTempUsageDetail_20' ) start [2025-04-10 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875295', 'tblTempUsageDetail_20' ) end [2025-04-10 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875295', 'tblTempVendorCDR_20' ) start [2025-04-10 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875295', 'tblTempVendorCDR_20' ) end [2025-04-10 07:17:18] Production.INFO: ProcessCDR(1,14875295,1,1,2) [2025-04-10 07:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875295', 'tblTempUsageDetail_20' ) start [2025-04-10 07:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875295', 'tblTempUsageDetail_20' ) end [2025-04-10 07:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 07:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 07:17:21] Production.INFO: ==28570== Releasing lock... [2025-04-10 07:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 07:17:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-10 07:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 04:18:05 [end_date_ymd] => 2025-04-10 07:18:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 04:18:05' and `end` < '2025-04-10 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-04-10 07:18:18] Production.INFO: count ==88 [2025-04-10 07:18:18] Production.ERROR: pbx CDR StartTime 2025-04-10 04:18:05 - End Time 2025-04-10 07:18:05 [2025-04-10 07:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875300', 'tblTempUsageDetail_20' ) start [2025-04-10 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875300', 'tblTempUsageDetail_20' ) end [2025-04-10 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875300', 'tblTempVendorCDR_20' ) start [2025-04-10 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875300', 'tblTempVendorCDR_20' ) end [2025-04-10 07:18:18] Production.INFO: ProcessCDR(1,14875300,1,1,2) [2025-04-10 07:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875300', 'tblTempUsageDetail_20' ) start [2025-04-10 07:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875300', 'tblTempUsageDetail_20' ) end [2025-04-10 07:18:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 07:18:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 07:18:23] Production.INFO: ==28644== Releasing lock... [2025-04-10 07:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 07:18:23] Production.INFO: 28.25 MB #Memory Used# [2025-04-10 07:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 04:19:05 [end_date_ymd] => 2025-04-10 07:19:05 [RateCDR] => 1 ) [2025-04-10 07:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 04:19:05' and `end` < '2025-04-10 07:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 07:19:18] Production.INFO: count ==88 [2025-04-10 07:19:18] Production.ERROR: pbx CDR StartTime 2025-04-10 04:19:05 - End Time 2025-04-10 07:19:05 [2025-04-10 07:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875305', 'tblTempUsageDetail_20' ) start [2025-04-10 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875305', 'tblTempUsageDetail_20' ) end [2025-04-10 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875305', 'tblTempVendorCDR_20' ) start [2025-04-10 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875305', 'tblTempVendorCDR_20' ) end [2025-04-10 07:19:18] Production.INFO: ProcessCDR(1,14875305,1,1,2) [2025-04-10 07:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875305', 'tblTempUsageDetail_20' ) start [2025-04-10 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875305', 'tblTempUsageDetail_20' ) end [2025-04-10 07:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 07:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 07:19:21] Production.INFO: ==28716== Releasing lock... [2025-04-10 07:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 07:19:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-10 07:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 04:20:06 [end_date_ymd] => 2025-04-10 07:20:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 04:20:06' and `end` < '2025-04-10 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-04-10 07:20:19] Production.INFO: count ==88 [2025-04-10 07:20:19] Production.ERROR: pbx CDR StartTime 2025-04-10 04:20:06 - End Time 2025-04-10 07:20:06 [2025-04-10 07:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875311', 'tblTempUsageDetail_20' ) start [2025-04-10 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875311', 'tblTempUsageDetail_20' ) end [2025-04-10 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875311', 'tblTempVendorCDR_20' ) start [2025-04-10 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875311', 'tblTempVendorCDR_20' ) end [2025-04-10 07:20:19] Production.INFO: ProcessCDR(1,14875311,1,1,2) [2025-04-10 07:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875311', 'tblTempUsageDetail_20' ) start [2025-04-10 07:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875311', 'tblTempUsageDetail_20' ) end [2025-04-10 07:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 07:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 07:20:23] Production.INFO: ==28798== Releasing lock... [2025-04-10 07:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 07:20:23] Production.INFO: 28.25 MB #Memory Used# [2025-04-10 07:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 04:21:05 [end_date_ymd] => 2025-04-10 07:21:05 [RateCDR] => 1 ) [2025-04-10 07:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 04:21:05' and `end` < '2025-04-10 07:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 07:21:18] Production.INFO: count ==88 [2025-04-10 07:21:18] Production.ERROR: pbx CDR StartTime 2025-04-10 04:21:05 - End Time 2025-04-10 07:21:05 [2025-04-10 07:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875316', 'tblTempUsageDetail_20' ) start [2025-04-10 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875316', 'tblTempUsageDetail_20' ) end [2025-04-10 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875316', 'tblTempVendorCDR_20' ) start [2025-04-10 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875316', 'tblTempVendorCDR_20' ) end [2025-04-10 07:21:18] Production.INFO: ProcessCDR(1,14875316,1,1,2) [2025-04-10 07:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875316', 'tblTempUsageDetail_20' ) start [2025-04-10 07:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875316', 'tblTempUsageDetail_20' ) end [2025-04-10 07:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 07:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 07:21:21] Production.INFO: ==28875== Releasing lock... [2025-04-10 07:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 07:21:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-10 07:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 04:22:05 [end_date_ymd] => 2025-04-10 07:22:05 [RateCDR] => 1 ) [2025-04-10 07:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 04:22:05' and `end` < '2025-04-10 07:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 07:22:19] Production.INFO: count ==88 [2025-04-10 07:22:19] Production.ERROR: pbx CDR StartTime 2025-04-10 04:22:05 - End Time 2025-04-10 07:22:05 [2025-04-10 07:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875321', 'tblTempUsageDetail_20' ) start [2025-04-10 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875321', 'tblTempUsageDetail_20' ) end [2025-04-10 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875321', 'tblTempVendorCDR_20' ) start [2025-04-10 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875321', 'tblTempVendorCDR_20' ) end [2025-04-10 07:22:19] Production.INFO: ProcessCDR(1,14875321,1,1,2) [2025-04-10 07:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875321', 'tblTempUsageDetail_20' ) start [2025-04-10 07:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875321', 'tblTempUsageDetail_20' ) end [2025-04-10 07:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 07:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 07:22:22] Production.INFO: ==28949== Releasing lock... [2025-04-10 07:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 07:22:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-10 07:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 04:23:05 [end_date_ymd] => 2025-04-10 07:23:05 [RateCDR] => 1 ) [2025-04-10 07:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 04:23:05' and `end` < '2025-04-10 07:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 07:23:18] Production.INFO: count ==90 [2025-04-10 07:23:18] Production.ERROR: pbx CDR StartTime 2025-04-10 04:23:05 - End Time 2025-04-10 07:23:05 [2025-04-10 07:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875326', 'tblTempUsageDetail_20' ) start [2025-04-10 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875326', 'tblTempUsageDetail_20' ) end [2025-04-10 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875326', 'tblTempVendorCDR_20' ) start [2025-04-10 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875326', 'tblTempVendorCDR_20' ) end [2025-04-10 07:23:18] Production.INFO: ProcessCDR(1,14875326,1,1,2) [2025-04-10 07:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875326', 'tblTempUsageDetail_20' ) start [2025-04-10 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875326', 'tblTempUsageDetail_20' ) end [2025-04-10 07:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 07:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 07:23:21] Production.INFO: ==29024== Releasing lock... [2025-04-10 07:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 07:23:21] Production.INFO: 28.25 MB #Memory Used# [2025-04-10 07:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 04:24:05 [end_date_ymd] => 2025-04-10 07:24:05 [RateCDR] => 1 ) [2025-04-10 07:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 04:24:05' and `end` < '2025-04-10 07:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 07:24:18] Production.INFO: count ==90 [2025-04-10 07:24:18] Production.ERROR: pbx CDR StartTime 2025-04-10 04:24:05 - End Time 2025-04-10 07:24:05 [2025-04-10 07:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875331', 'tblTempUsageDetail_20' ) start [2025-04-10 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875331', 'tblTempUsageDetail_20' ) end [2025-04-10 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875331', 'tblTempVendorCDR_20' ) start [2025-04-10 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875331', 'tblTempVendorCDR_20' ) end [2025-04-10 07:24:18] Production.INFO: ProcessCDR(1,14875331,1,1,2) [2025-04-10 07:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875331', 'tblTempUsageDetail_20' ) start [2025-04-10 07:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875331', 'tblTempUsageDetail_20' ) end [2025-04-10 07:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 07:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 07:24:22] Production.INFO: ==29103== Releasing lock... [2025-04-10 07:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 07:24:22] Production.INFO: 28.25 MB #Memory Used# [2025-04-10 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 04:25:05 [end_date_ymd] => 2025-04-10 07:25:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 04:25:05' and `end` < '2025-04-10 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-04-10 07:25:18] Production.INFO: count ==95 [2025-04-10 07:25:18] Production.ERROR: pbx CDR StartTime 2025-04-10 04:25:05 - End Time 2025-04-10 07:25:05 [2025-04-10 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875336', 'tblTempUsageDetail_20' ) start [2025-04-10 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875336', 'tblTempUsageDetail_20' ) end [2025-04-10 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875336', 'tblTempVendorCDR_20' ) start [2025-04-10 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875336', 'tblTempVendorCDR_20' ) end [2025-04-10 07:25:18] Production.INFO: ProcessCDR(1,14875336,1,1,2) [2025-04-10 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875336', 'tblTempUsageDetail_20' ) start [2025-04-10 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875336', 'tblTempUsageDetail_20' ) end [2025-04-10 07:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 07:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 07:25:21] Production.INFO: ==29220== Releasing lock... [2025-04-10 07:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 07:25:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-10 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 04:26:05 [end_date_ymd] => 2025-04-10 07:26:05 [RateCDR] => 1 ) [2025-04-10 07:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 04:26:05' and `end` < '2025-04-10 07:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 07:26:18] Production.INFO: count ==95 [2025-04-10 07:26:18] Production.ERROR: pbx CDR StartTime 2025-04-10 04:26:05 - End Time 2025-04-10 07:26:05 [2025-04-10 07:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875341', 'tblTempUsageDetail_20' ) start [2025-04-10 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875341', 'tblTempUsageDetail_20' ) end [2025-04-10 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875341', 'tblTempVendorCDR_20' ) start [2025-04-10 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875341', 'tblTempVendorCDR_20' ) end [2025-04-10 07:26:18] Production.INFO: ProcessCDR(1,14875341,1,1,2) [2025-04-10 07:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875341', 'tblTempUsageDetail_20' ) start [2025-04-10 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875341', 'tblTempUsageDetail_20' ) end [2025-04-10 07:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 07:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 07:26:21] Production.INFO: ==29293== Releasing lock... [2025-04-10 07:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 07:26:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-10 07:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 04:27:05 [end_date_ymd] => 2025-04-10 07:27:05 [RateCDR] => 1 ) [2025-04-10 07:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 04:27:05' and `end` < '2025-04-10 07:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 07:27:17] Production.INFO: count ==95 [2025-04-10 07:27:17] Production.ERROR: pbx CDR StartTime 2025-04-10 04:27:05 - End Time 2025-04-10 07:27:05 [2025-04-10 07:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875346', 'tblTempUsageDetail_20' ) start [2025-04-10 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875346', 'tblTempUsageDetail_20' ) end [2025-04-10 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875346', 'tblTempVendorCDR_20' ) start [2025-04-10 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875346', 'tblTempVendorCDR_20' ) end [2025-04-10 07:27:17] Production.INFO: ProcessCDR(1,14875346,1,1,2) [2025-04-10 07:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875346', 'tblTempUsageDetail_20' ) start [2025-04-10 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875346', 'tblTempUsageDetail_20' ) end [2025-04-10 07:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 07:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 07:27:21] Production.INFO: ==29368== Releasing lock... [2025-04-10 07:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 07:27:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-10 07:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 04:28:06 [end_date_ymd] => 2025-04-10 07:28:06 [RateCDR] => 1 ) [2025-04-10 07:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 04:28:06' and `end` < '2025-04-10 07:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 07:28:18] Production.INFO: count ==96 [2025-04-10 07:28:18] Production.ERROR: pbx CDR StartTime 2025-04-10 04:28:06 - End Time 2025-04-10 07:28:06 [2025-04-10 07:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875351', 'tblTempUsageDetail_20' ) start [2025-04-10 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875351', 'tblTempUsageDetail_20' ) end [2025-04-10 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875351', 'tblTempVendorCDR_20' ) start [2025-04-10 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875351', 'tblTempVendorCDR_20' ) end [2025-04-10 07:28:18] Production.INFO: ProcessCDR(1,14875351,1,1,2) [2025-04-10 07:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875351', 'tblTempUsageDetail_20' ) start [2025-04-10 07:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875351', 'tblTempUsageDetail_20' ) end [2025-04-10 07:28:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 07:28:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 07:28:24] Production.INFO: ==29448== Releasing lock... [2025-04-10 07:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 07:28:24] Production.INFO: 28.5 MB #Memory Used# [2025-04-10 07:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 04:29:05 [end_date_ymd] => 2025-04-10 07:29:05 [RateCDR] => 1 ) [2025-04-10 07:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 04:29:05' and `end` < '2025-04-10 07:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 07:29:17] Production.INFO: count ==96 [2025-04-10 07:29:17] Production.ERROR: pbx CDR StartTime 2025-04-10 04:29:05 - End Time 2025-04-10 07:29:05 [2025-04-10 07:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875356', 'tblTempUsageDetail_20' ) start [2025-04-10 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875356', 'tblTempUsageDetail_20' ) end [2025-04-10 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875356', 'tblTempVendorCDR_20' ) start [2025-04-10 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875356', 'tblTempVendorCDR_20' ) end [2025-04-10 07:29:17] Production.INFO: ProcessCDR(1,14875356,1,1,2) [2025-04-10 07:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875356', 'tblTempUsageDetail_20' ) start [2025-04-10 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875356', 'tblTempUsageDetail_20' ) end [2025-04-10 07:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 07:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 07:29:21] Production.INFO: ==29523== Releasing lock... [2025-04-10 07:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 07:29:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-10 07:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 04:30:06 [end_date_ymd] => 2025-04-10 07:30:06 [RateCDR] => 1 ) [2025-04-10 07:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 04:30:06' and `end` < '2025-04-10 07:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 07:30:19] Production.INFO: count ==95 [2025-04-10 07:30:19] Production.ERROR: pbx CDR StartTime 2025-04-10 04:30:06 - End Time 2025-04-10 07:30:06 [2025-04-10 07:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875362', 'tblTempUsageDetail_20' ) start [2025-04-10 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875362', 'tblTempUsageDetail_20' ) end [2025-04-10 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875362', 'tblTempVendorCDR_20' ) start [2025-04-10 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875362', 'tblTempVendorCDR_20' ) end [2025-04-10 07:30:19] Production.INFO: ProcessCDR(1,14875362,1,1,2) [2025-04-10 07:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875362', 'tblTempUsageDetail_20' ) start [2025-04-10 07:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875362', 'tblTempUsageDetail_20' ) end [2025-04-10 07:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 07:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 07:30:24] Production.INFO: ==29601== Releasing lock... [2025-04-10 07:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 07:30:24] Production.INFO: 28.5 MB #Memory Used# [2025-04-10 07:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 04:31:05 [end_date_ymd] => 2025-04-10 07:31:05 [RateCDR] => 1 ) [2025-04-10 07:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 04:31:05' and `end` < '2025-04-10 07:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 07:31:17] Production.INFO: count ==95 [2025-04-10 07:31:17] Production.ERROR: pbx CDR StartTime 2025-04-10 04:31:05 - End Time 2025-04-10 07:31:05 [2025-04-10 07:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875367', 'tblTempUsageDetail_20' ) start [2025-04-10 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875367', 'tblTempUsageDetail_20' ) end [2025-04-10 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875367', 'tblTempVendorCDR_20' ) start [2025-04-10 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875367', 'tblTempVendorCDR_20' ) end [2025-04-10 07:31:18] Production.INFO: ProcessCDR(1,14875367,1,1,2) [2025-04-10 07:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875367', 'tblTempUsageDetail_20' ) start [2025-04-10 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875367', 'tblTempUsageDetail_20' ) end [2025-04-10 07:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 07:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 07:31:21] Production.INFO: ==29677== Releasing lock... [2025-04-10 07:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 07:31:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-10 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 04:32:05 [end_date_ymd] => 2025-04-10 07:32:05 [RateCDR] => 1 ) [2025-04-10 07:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 04:32:05' and `end` < '2025-04-10 07:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 07:32:18] Production.INFO: count ==97 [2025-04-10 07:32:18] Production.ERROR: pbx CDR StartTime 2025-04-10 04:32:05 - End Time 2025-04-10 07:32:05 [2025-04-10 07:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875372', 'tblTempUsageDetail_20' ) start [2025-04-10 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875372', 'tblTempUsageDetail_20' ) end [2025-04-10 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875372', 'tblTempVendorCDR_20' ) start [2025-04-10 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875372', 'tblTempVendorCDR_20' ) end [2025-04-10 07:32:18] Production.INFO: ProcessCDR(1,14875372,1,1,2) [2025-04-10 07:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875372', 'tblTempUsageDetail_20' ) start [2025-04-10 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875372', 'tblTempUsageDetail_20' ) end [2025-04-10 07:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 07:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 07:32:21] Production.INFO: ==29759== Releasing lock... [2025-04-10 07:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 07:32:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-10 07:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 04:33:06 [end_date_ymd] => 2025-04-10 07:33:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 04:33:06' and `end` < '2025-04-10 07:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 07:33:19] Production.INFO: count ==97 [2025-04-10 07:33:19] Production.ERROR: pbx CDR StartTime 2025-04-10 04:33:06 - End Time 2025-04-10 07:33:06 [2025-04-10 07:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875377', 'tblTempUsageDetail_20' ) start [2025-04-10 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875377', 'tblTempUsageDetail_20' ) end [2025-04-10 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875377', 'tblTempVendorCDR_20' ) start [2025-04-10 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875377', 'tblTempVendorCDR_20' ) end [2025-04-10 07:33:19] Production.INFO: ProcessCDR(1,14875377,1,1,2) [2025-04-10 07:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875377', 'tblTempUsageDetail_20' ) start [2025-04-10 07:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875377', 'tblTempUsageDetail_20' ) end [2025-04-10 07:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 07:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 07:33:22] Production.INFO: ==29832== Releasing lock... [2025-04-10 07:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 07:33:22] Production.INFO: 28.5 MB #Memory Used# [2025-04-10 07:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 04:34:05 [end_date_ymd] => 2025-04-10 07:34:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 04:34:05' and `end` < '2025-04-10 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-04-10 07:34:18] Production.INFO: count ==98 [2025-04-10 07:34:18] Production.ERROR: pbx CDR StartTime 2025-04-10 04:34:05 - End Time 2025-04-10 07:34:05 [2025-04-10 07:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875382', 'tblTempUsageDetail_20' ) start [2025-04-10 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875382', 'tblTempUsageDetail_20' ) end [2025-04-10 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875382', 'tblTempVendorCDR_20' ) start [2025-04-10 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875382', 'tblTempVendorCDR_20' ) end [2025-04-10 07:34:18] Production.INFO: ProcessCDR(1,14875382,1,1,2) [2025-04-10 07:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875382', 'tblTempUsageDetail_20' ) start [2025-04-10 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875382', 'tblTempUsageDetail_20' ) end [2025-04-10 07:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 07:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 07:34:21] Production.INFO: ==29905== Releasing lock... [2025-04-10 07:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 07:34:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-10 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 04:35:05 [end_date_ymd] => 2025-04-10 07:35:05 [RateCDR] => 1 ) [2025-04-10 07:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 04:35:05' and `end` < '2025-04-10 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-04-10 07:35:18] Production.INFO: count ==98 [2025-04-10 07:35:18] Production.ERROR: pbx CDR StartTime 2025-04-10 04:35:05 - End Time 2025-04-10 07:35:05 [2025-04-10 07:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875387', 'tblTempUsageDetail_20' ) start [2025-04-10 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875387', 'tblTempUsageDetail_20' ) end [2025-04-10 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875387', 'tblTempVendorCDR_20' ) start [2025-04-10 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875387', 'tblTempVendorCDR_20' ) end [2025-04-10 07:35:18] Production.INFO: ProcessCDR(1,14875387,1,1,2) [2025-04-10 07:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875387', 'tblTempUsageDetail_20' ) start [2025-04-10 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875387', 'tblTempUsageDetail_20' ) end [2025-04-10 07:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 07:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 07:35:21] Production.INFO: ==29994== Releasing lock... [2025-04-10 07:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 07:35:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-10 07:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 04:36:04 [end_date_ymd] => 2025-04-10 07:36:04 [RateCDR] => 1 ) [2025-04-10 07:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 04:36:04' and `end` < '2025-04-10 07:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 07:36:17] Production.INFO: count ==98 [2025-04-10 07:36:17] Production.ERROR: pbx CDR StartTime 2025-04-10 04:36:04 - End Time 2025-04-10 07:36:04 [2025-04-10 07:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875392', 'tblTempUsageDetail_20' ) start [2025-04-10 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875392', 'tblTempUsageDetail_20' ) end [2025-04-10 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875392', 'tblTempVendorCDR_20' ) start [2025-04-10 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875392', 'tblTempVendorCDR_20' ) end [2025-04-10 07:36:17] Production.INFO: ProcessCDR(1,14875392,1,1,2) [2025-04-10 07:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875392', 'tblTempUsageDetail_20' ) start [2025-04-10 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875392', 'tblTempUsageDetail_20' ) end [2025-04-10 07:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 07:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 07:36:21] Production.INFO: ==30072== Releasing lock... [2025-04-10 07:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 07:36:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-10 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 04:37:05 [end_date_ymd] => 2025-04-10 07:37:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 04:37:05' and `end` < '2025-04-10 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-04-10 07:37:18] Production.INFO: count ==98 [2025-04-10 07:37:18] Production.ERROR: pbx CDR StartTime 2025-04-10 04:37:05 - End Time 2025-04-10 07:37:05 [2025-04-10 07:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875397', 'tblTempUsageDetail_20' ) start [2025-04-10 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875397', 'tblTempUsageDetail_20' ) end [2025-04-10 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875397', 'tblTempVendorCDR_20' ) start [2025-04-10 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875397', 'tblTempVendorCDR_20' ) end [2025-04-10 07:37:18] Production.INFO: ProcessCDR(1,14875397,1,1,2) [2025-04-10 07:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875397', 'tblTempUsageDetail_20' ) start [2025-04-10 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875397', 'tblTempUsageDetail_20' ) end [2025-04-10 07:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 07:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 07:37:21] Production.INFO: ==30144== Releasing lock... [2025-04-10 07:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 07:37:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-10 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 04:38:05 [end_date_ymd] => 2025-04-10 07:38:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 04:38:05' and `end` < '2025-04-10 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-04-10 07:38:18] Production.INFO: count ==99 [2025-04-10 07:38:18] Production.ERROR: pbx CDR StartTime 2025-04-10 04:38:05 - End Time 2025-04-10 07:38:05 [2025-04-10 07:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875402', 'tblTempUsageDetail_20' ) start [2025-04-10 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875402', 'tblTempUsageDetail_20' ) end [2025-04-10 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875402', 'tblTempVendorCDR_20' ) start [2025-04-10 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875402', 'tblTempVendorCDR_20' ) end [2025-04-10 07:38:18] Production.INFO: ProcessCDR(1,14875402,1,1,2) [2025-04-10 07:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875402', 'tblTempUsageDetail_20' ) start [2025-04-10 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875402', 'tblTempUsageDetail_20' ) end [2025-04-10 07:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 07:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 07:38:21] Production.INFO: ==30220== Releasing lock... [2025-04-10 07:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 07:38:21] Production.INFO: 28.5 MB #Memory Used# [2025-04-10 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 04:39:05 [end_date_ymd] => 2025-04-10 07:39:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 04:39:05' and `end` < '2025-04-10 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-04-10 07:39:18] Production.INFO: count ==105 [2025-04-10 07:39:18] Production.ERROR: pbx CDR StartTime 2025-04-10 04:39:05 - End Time 2025-04-10 07:39:05 [2025-04-10 07:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875407', 'tblTempUsageDetail_20' ) start [2025-04-10 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875407', 'tblTempUsageDetail_20' ) end [2025-04-10 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875407', 'tblTempVendorCDR_20' ) start [2025-04-10 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875407', 'tblTempVendorCDR_20' ) end [2025-04-10 07:39:18] Production.INFO: ProcessCDR(1,14875407,1,1,2) [2025-04-10 07:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875407', 'tblTempUsageDetail_20' ) start [2025-04-10 07:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875407', 'tblTempUsageDetail_20' ) end [2025-04-10 07:39:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 07:39:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 07:39:23] Production.INFO: ==30299== Releasing lock... [2025-04-10 07:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 07:39:23] Production.INFO: 28.75 MB #Memory Used# [2025-04-10 07:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 04:40:05 [end_date_ymd] => 2025-04-10 07:40:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 04:40:05' and `end` < '2025-04-10 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-04-10 07:40:18] Production.INFO: count ==108 [2025-04-10 07:40:18] Production.ERROR: pbx CDR StartTime 2025-04-10 04:40:05 - End Time 2025-04-10 07:40:05 [2025-04-10 07:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875412', 'tblTempUsageDetail_20' ) start [2025-04-10 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875412', 'tblTempUsageDetail_20' ) end [2025-04-10 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875412', 'tblTempVendorCDR_20' ) start [2025-04-10 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875412', 'tblTempVendorCDR_20' ) end [2025-04-10 07:40:18] Production.INFO: ProcessCDR(1,14875412,1,1,2) [2025-04-10 07:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875412', 'tblTempUsageDetail_20' ) start [2025-04-10 07:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875412', 'tblTempUsageDetail_20' ) end [2025-04-10 07:40:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 07:40:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 07:40:21] Production.INFO: ==30415== Releasing lock... [2025-04-10 07:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 07:40:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-10 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 04:41:05 [end_date_ymd] => 2025-04-10 07:41:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 04:41:05' and `end` < '2025-04-10 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-04-10 07:41:18] Production.INFO: count ==108 [2025-04-10 07:41:18] Production.ERROR: pbx CDR StartTime 2025-04-10 04:41:05 - End Time 2025-04-10 07:41:05 [2025-04-10 07:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875418', 'tblTempUsageDetail_20' ) start [2025-04-10 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875418', 'tblTempUsageDetail_20' ) end [2025-04-10 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875418', 'tblTempVendorCDR_20' ) start [2025-04-10 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875418', 'tblTempVendorCDR_20' ) end [2025-04-10 07:41:18] Production.INFO: ProcessCDR(1,14875418,1,1,2) [2025-04-10 07:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875418', 'tblTempUsageDetail_20' ) start [2025-04-10 07:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875418', 'tblTempUsageDetail_20' ) end [2025-04-10 07:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 07:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 07:41:22] Production.INFO: ==30489== Releasing lock... [2025-04-10 07:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 07:41:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-10 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 04:42:05 [end_date_ymd] => 2025-04-10 07:42:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 04:42:05' and `end` < '2025-04-10 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-04-10 07:42:18] Production.INFO: count ==109 [2025-04-10 07:42:18] Production.ERROR: pbx CDR StartTime 2025-04-10 04:42:05 - End Time 2025-04-10 07:42:05 [2025-04-10 07:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875423', 'tblTempUsageDetail_20' ) start [2025-04-10 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875423', 'tblTempUsageDetail_20' ) end [2025-04-10 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875423', 'tblTempVendorCDR_20' ) start [2025-04-10 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875423', 'tblTempVendorCDR_20' ) end [2025-04-10 07:42:18] Production.INFO: ProcessCDR(1,14875423,1,1,2) [2025-04-10 07:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875423', 'tblTempUsageDetail_20' ) start [2025-04-10 07:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875423', 'tblTempUsageDetail_20' ) end [2025-04-10 07:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 07:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 07:42:22] Production.INFO: ==30572== Releasing lock... [2025-04-10 07:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 07:42:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-10 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 04:43:05 [end_date_ymd] => 2025-04-10 07:43:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 04:43:05' and `end` < '2025-04-10 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-04-10 07:43:18] Production.INFO: count ==109 [2025-04-10 07:43:18] Production.ERROR: pbx CDR StartTime 2025-04-10 04:43:05 - End Time 2025-04-10 07:43:05 [2025-04-10 07:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875428', 'tblTempUsageDetail_20' ) start [2025-04-10 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875428', 'tblTempUsageDetail_20' ) end [2025-04-10 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875428', 'tblTempVendorCDR_20' ) start [2025-04-10 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875428', 'tblTempVendorCDR_20' ) end [2025-04-10 07:43:18] Production.INFO: ProcessCDR(1,14875428,1,1,2) [2025-04-10 07:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875428', 'tblTempUsageDetail_20' ) start [2025-04-10 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875428', 'tblTempUsageDetail_20' ) end [2025-04-10 07:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 07:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 07:43:21] Production.INFO: ==30652== Releasing lock... [2025-04-10 07:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 07:43:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-10 07:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 04:44:06 [end_date_ymd] => 2025-04-10 07:44:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 04:44:06' and `end` < '2025-04-10 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-04-10 07:44:19] Production.INFO: count ==110 [2025-04-10 07:44:19] Production.ERROR: pbx CDR StartTime 2025-04-10 04:44:06 - End Time 2025-04-10 07:44:06 [2025-04-10 07:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 07:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875433', 'tblTempUsageDetail_20' ) start [2025-04-10 07:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875433', 'tblTempUsageDetail_20' ) end [2025-04-10 07:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875433', 'tblTempVendorCDR_20' ) start [2025-04-10 07:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875433', 'tblTempVendorCDR_20' ) end [2025-04-10 07:44:19] Production.INFO: ProcessCDR(1,14875433,1,1,2) [2025-04-10 07:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875433', 'tblTempUsageDetail_20' ) start [2025-04-10 07:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875433', 'tblTempUsageDetail_20' ) end [2025-04-10 07:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 07:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 07:44:22] Production.INFO: ==30732== Releasing lock... [2025-04-10 07:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 07:44:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-10 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 04:45:05 [end_date_ymd] => 2025-04-10 07:45:05 [RateCDR] => 1 ) [2025-04-10 07:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 04:45:05' and `end` < '2025-04-10 07:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 07:45:17] Production.INFO: count ==111 [2025-04-10 07:45:17] Production.ERROR: pbx CDR StartTime 2025-04-10 04:45:05 - End Time 2025-04-10 07:45:05 [2025-04-10 07:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875438', 'tblTempUsageDetail_20' ) start [2025-04-10 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875438', 'tblTempUsageDetail_20' ) end [2025-04-10 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875438', 'tblTempVendorCDR_20' ) start [2025-04-10 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875438', 'tblTempVendorCDR_20' ) end [2025-04-10 07:45:17] Production.INFO: ProcessCDR(1,14875438,1,1,2) [2025-04-10 07:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875438', 'tblTempUsageDetail_20' ) start [2025-04-10 07:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875438', 'tblTempUsageDetail_20' ) end [2025-04-10 07:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 07:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 07:45:22] Production.INFO: ==30805== Releasing lock... [2025-04-10 07:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 07:45:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-10 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 04:46:05 [end_date_ymd] => 2025-04-10 07:46:05 [RateCDR] => 1 ) [2025-04-10 07:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 04:46:05' and `end` < '2025-04-10 07:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 07:46:17] Production.INFO: count ==114 [2025-04-10 07:46:18] Production.ERROR: pbx CDR StartTime 2025-04-10 04:46:05 - End Time 2025-04-10 07:46:05 [2025-04-10 07:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875443', 'tblTempUsageDetail_20' ) start [2025-04-10 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875443', 'tblTempUsageDetail_20' ) end [2025-04-10 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875443', 'tblTempVendorCDR_20' ) start [2025-04-10 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875443', 'tblTempVendorCDR_20' ) end [2025-04-10 07:46:18] Production.INFO: ProcessCDR(1,14875443,1,1,2) [2025-04-10 07:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875443', 'tblTempUsageDetail_20' ) start [2025-04-10 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875443', 'tblTempUsageDetail_20' ) end [2025-04-10 07:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 07:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 07:46:21] Production.INFO: ==30880== Releasing lock... [2025-04-10 07:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 07:46:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-10 07:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 04:47:04 [end_date_ymd] => 2025-04-10 07:47:04 [RateCDR] => 1 ) [2025-04-10 07:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 04:47:04' and `end` < '2025-04-10 07:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 07:47:17] Production.INFO: count ==114 [2025-04-10 07:47:17] Production.ERROR: pbx CDR StartTime 2025-04-10 04:47:04 - End Time 2025-04-10 07:47:04 [2025-04-10 07:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875448', 'tblTempUsageDetail_20' ) start [2025-04-10 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875448', 'tblTempUsageDetail_20' ) end [2025-04-10 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875448', 'tblTempVendorCDR_20' ) start [2025-04-10 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875448', 'tblTempVendorCDR_20' ) end [2025-04-10 07:47:17] Production.INFO: ProcessCDR(1,14875448,1,1,2) [2025-04-10 07:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875448', 'tblTempUsageDetail_20' ) start [2025-04-10 07:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875448', 'tblTempUsageDetail_20' ) end [2025-04-10 07:47:20] Production.ERROR: pbx prc_insertCDR start [2025-04-10 07:47:20] Production.ERROR: pbx prc_insertCDR end [2025-04-10 07:47:20] Production.INFO: ==30955== Releasing lock... [2025-04-10 07:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 07:47:20] Production.INFO: 28.75 MB #Memory Used# [2025-04-10 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 04:48:05 [end_date_ymd] => 2025-04-10 07:48:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 04:48:05' and `end` < '2025-04-10 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-04-10 07:48:18] Production.INFO: count ==114 [2025-04-10 07:48:18] Production.ERROR: pbx CDR StartTime 2025-04-10 04:48:05 - End Time 2025-04-10 07:48:05 [2025-04-10 07:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875453', 'tblTempUsageDetail_20' ) start [2025-04-10 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875453', 'tblTempUsageDetail_20' ) end [2025-04-10 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875453', 'tblTempVendorCDR_20' ) start [2025-04-10 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875453', 'tblTempVendorCDR_20' ) end [2025-04-10 07:48:18] Production.INFO: ProcessCDR(1,14875453,1,1,2) [2025-04-10 07:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875453', 'tblTempUsageDetail_20' ) start [2025-04-10 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875453', 'tblTempUsageDetail_20' ) end [2025-04-10 07:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 07:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 07:48:21] Production.INFO: ==31035== Releasing lock... [2025-04-10 07:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 07:48:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-10 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 04:49:05 [end_date_ymd] => 2025-04-10 07:49:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 04:49:05' and `end` < '2025-04-10 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-04-10 07:49:17] Production.INFO: count ==115 [2025-04-10 07:49:17] Production.ERROR: pbx CDR StartTime 2025-04-10 04:49:05 - End Time 2025-04-10 07:49:05 [2025-04-10 07:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875458', 'tblTempUsageDetail_20' ) start [2025-04-10 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875458', 'tblTempUsageDetail_20' ) end [2025-04-10 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875458', 'tblTempVendorCDR_20' ) start [2025-04-10 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875458', 'tblTempVendorCDR_20' ) end [2025-04-10 07:49:18] Production.INFO: ProcessCDR(1,14875458,1,1,2) [2025-04-10 07:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875458', 'tblTempUsageDetail_20' ) start [2025-04-10 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875458', 'tblTempUsageDetail_20' ) end [2025-04-10 07:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 07:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 07:49:21] Production.INFO: ==31115== Releasing lock... [2025-04-10 07:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 07:49:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-10 07:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 04:50:06 [end_date_ymd] => 2025-04-10 07:50:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 04:50:06' and `end` < '2025-04-10 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-04-10 07:50:19] Production.INFO: count ==115 [2025-04-10 07:50:19] Production.ERROR: pbx CDR StartTime 2025-04-10 04:50:06 - End Time 2025-04-10 07:50:06 [2025-04-10 07:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875464', 'tblTempUsageDetail_20' ) start [2025-04-10 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875464', 'tblTempUsageDetail_20' ) end [2025-04-10 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875464', 'tblTempVendorCDR_20' ) start [2025-04-10 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875464', 'tblTempVendorCDR_20' ) end [2025-04-10 07:50:19] Production.INFO: ProcessCDR(1,14875464,1,1,2) [2025-04-10 07:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875464', 'tblTempUsageDetail_20' ) start [2025-04-10 07:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875464', 'tblTempUsageDetail_20' ) end [2025-04-10 07:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 07:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 07:50:22] Production.INFO: ==31195== Releasing lock... [2025-04-10 07:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 07:50:22] Production.INFO: 28.75 MB #Memory Used# [2025-04-10 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 04:51:05 [end_date_ymd] => 2025-04-10 07:51:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 04:51:05' and `end` < '2025-04-10 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-04-10 07:51:18] Production.INFO: count ==115 [2025-04-10 07:51:18] Production.ERROR: pbx CDR StartTime 2025-04-10 04:51:05 - End Time 2025-04-10 07:51:05 [2025-04-10 07:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875469', 'tblTempUsageDetail_20' ) start [2025-04-10 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875469', 'tblTempUsageDetail_20' ) end [2025-04-10 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875469', 'tblTempVendorCDR_20' ) start [2025-04-10 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875469', 'tblTempVendorCDR_20' ) end [2025-04-10 07:51:18] Production.INFO: ProcessCDR(1,14875469,1,1,2) [2025-04-10 07:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875469', 'tblTempUsageDetail_20' ) start [2025-04-10 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875469', 'tblTempUsageDetail_20' ) end [2025-04-10 07:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 07:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 07:51:21] Production.INFO: ==31272== Releasing lock... [2025-04-10 07:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 07:51:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-10 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 04:52:05 [end_date_ymd] => 2025-04-10 07:52:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 04:52:05' and `end` < '2025-04-10 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-04-10 07:52:18] Production.INFO: count ==118 [2025-04-10 07:52:18] Production.ERROR: pbx CDR StartTime 2025-04-10 04:52:05 - End Time 2025-04-10 07:52:05 [2025-04-10 07:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875474', 'tblTempUsageDetail_20' ) start [2025-04-10 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875474', 'tblTempUsageDetail_20' ) end [2025-04-10 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875474', 'tblTempVendorCDR_20' ) start [2025-04-10 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875474', 'tblTempVendorCDR_20' ) end [2025-04-10 07:52:18] Production.INFO: ProcessCDR(1,14875474,1,1,2) [2025-04-10 07:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875474', 'tblTempUsageDetail_20' ) start [2025-04-10 07:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875474', 'tblTempUsageDetail_20' ) end [2025-04-10 07:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 07:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 07:52:21] Production.INFO: ==31351== Releasing lock... [2025-04-10 07:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 07:52:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-10 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 04:53:05 [end_date_ymd] => 2025-04-10 07:53:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 04:53:05' and `end` < '2025-04-10 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-04-10 07:53:18] Production.INFO: count ==118 [2025-04-10 07:53:18] Production.ERROR: pbx CDR StartTime 2025-04-10 04:53:05 - End Time 2025-04-10 07:53:05 [2025-04-10 07:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875479', 'tblTempUsageDetail_20' ) start [2025-04-10 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875479', 'tblTempUsageDetail_20' ) end [2025-04-10 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875479', 'tblTempVendorCDR_20' ) start [2025-04-10 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875479', 'tblTempVendorCDR_20' ) end [2025-04-10 07:53:18] Production.INFO: ProcessCDR(1,14875479,1,1,2) [2025-04-10 07:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875479', 'tblTempUsageDetail_20' ) start [2025-04-10 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875479', 'tblTempUsageDetail_20' ) end [2025-04-10 07:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 07:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 07:53:21] Production.INFO: ==31428== Releasing lock... [2025-04-10 07:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 07:53:21] Production.INFO: 28.75 MB #Memory Used# [2025-04-10 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 04:54:05 [end_date_ymd] => 2025-04-10 07:54:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 04:54:05' and `end` < '2025-04-10 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-04-10 07:54:18] Production.INFO: count ==123 [2025-04-10 07:54:18] Production.ERROR: pbx CDR StartTime 2025-04-10 04:54:05 - End Time 2025-04-10 07:54:05 [2025-04-10 07:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875484', 'tblTempUsageDetail_20' ) start [2025-04-10 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875484', 'tblTempUsageDetail_20' ) end [2025-04-10 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875484', 'tblTempVendorCDR_20' ) start [2025-04-10 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875484', 'tblTempVendorCDR_20' ) end [2025-04-10 07:54:18] Production.INFO: ProcessCDR(1,14875484,1,1,2) [2025-04-10 07:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875484', 'tblTempUsageDetail_20' ) start [2025-04-10 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875484', 'tblTempUsageDetail_20' ) end [2025-04-10 07:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 07:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 07:54:21] Production.INFO: ==31505== Releasing lock... [2025-04-10 07:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 07:54:21] Production.INFO: 29 MB #Memory Used# [2025-04-10 07:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 04:55:06 [end_date_ymd] => 2025-04-10 07:55:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 04:55:06' and `end` < '2025-04-10 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-04-10 07:55:18] Production.INFO: count ==124 [2025-04-10 07:55:18] Production.ERROR: pbx CDR StartTime 2025-04-10 04:55:06 - End Time 2025-04-10 07:55:06 [2025-04-10 07:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 07:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875489', 'tblTempUsageDetail_20' ) start [2025-04-10 07:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875489', 'tblTempUsageDetail_20' ) end [2025-04-10 07:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875489', 'tblTempVendorCDR_20' ) start [2025-04-10 07:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875489', 'tblTempVendorCDR_20' ) end [2025-04-10 07:55:19] Production.INFO: ProcessCDR(1,14875489,1,1,2) [2025-04-10 07:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875489', 'tblTempUsageDetail_20' ) start [2025-04-10 07:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875489', 'tblTempUsageDetail_20' ) end [2025-04-10 07:55:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 07:55:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 07:55:24] Production.INFO: ==31583== Releasing lock... [2025-04-10 07:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 07:55:24] Production.INFO: 29 MB #Memory Used# [2025-04-10 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 04:56:05 [end_date_ymd] => 2025-04-10 07:56:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 04:56:05' and `end` < '2025-04-10 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-04-10 07:56:18] Production.INFO: count ==124 [2025-04-10 07:56:18] Production.ERROR: pbx CDR StartTime 2025-04-10 04:56:05 - End Time 2025-04-10 07:56:05 [2025-04-10 07:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875494', 'tblTempUsageDetail_20' ) start [2025-04-10 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875494', 'tblTempUsageDetail_20' ) end [2025-04-10 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875494', 'tblTempVendorCDR_20' ) start [2025-04-10 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875494', 'tblTempVendorCDR_20' ) end [2025-04-10 07:56:18] Production.INFO: ProcessCDR(1,14875494,1,1,2) [2025-04-10 07:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875494', 'tblTempUsageDetail_20' ) start [2025-04-10 07:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875494', 'tblTempUsageDetail_20' ) end [2025-04-10 07:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 07:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 07:56:22] Production.INFO: ==31697== Releasing lock... [2025-04-10 07:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 07:56:22] Production.INFO: 29 MB #Memory Used# [2025-04-10 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 04:57:05 [end_date_ymd] => 2025-04-10 07:57:05 [RateCDR] => 1 ) [2025-04-10 07:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 04:57:05' and `end` < '2025-04-10 07:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 07:57:18] Production.INFO: count ==126 [2025-04-10 07:57:18] Production.ERROR: pbx CDR StartTime 2025-04-10 04:57:05 - End Time 2025-04-10 07:57:05 [2025-04-10 07:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875499', 'tblTempUsageDetail_20' ) start [2025-04-10 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875499', 'tblTempUsageDetail_20' ) end [2025-04-10 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875499', 'tblTempVendorCDR_20' ) start [2025-04-10 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875499', 'tblTempVendorCDR_20' ) end [2025-04-10 07:57:18] Production.INFO: ProcessCDR(1,14875499,1,1,2) [2025-04-10 07:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875499', 'tblTempUsageDetail_20' ) start [2025-04-10 07:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875499', 'tblTempUsageDetail_20' ) end [2025-04-10 07:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 07:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 07:57:22] Production.INFO: ==31777== Releasing lock... [2025-04-10 07:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 07:57:22] Production.INFO: 29 MB #Memory Used# [2025-04-10 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 04:58:05 [end_date_ymd] => 2025-04-10 07:58:05 [RateCDR] => 1 ) [2025-04-10 07:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 04:58:05' and `end` < '2025-04-10 07:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 07:58:18] Production.INFO: count ==126 [2025-04-10 07:58:18] Production.ERROR: pbx CDR StartTime 2025-04-10 04:58:05 - End Time 2025-04-10 07:58:05 [2025-04-10 07:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875504', 'tblTempUsageDetail_20' ) start [2025-04-10 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875504', 'tblTempUsageDetail_20' ) end [2025-04-10 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875504', 'tblTempVendorCDR_20' ) start [2025-04-10 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875504', 'tblTempVendorCDR_20' ) end [2025-04-10 07:58:18] Production.INFO: ProcessCDR(1,14875504,1,1,2) [2025-04-10 07:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875504', 'tblTempUsageDetail_20' ) start [2025-04-10 07:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875504', 'tblTempUsageDetail_20' ) end [2025-04-10 07:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 07:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 07:58:21] Production.INFO: ==31855== Releasing lock... [2025-04-10 07:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 07:58:21] Production.INFO: 29 MB #Memory Used# [2025-04-10 07:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 04:59:06 [end_date_ymd] => 2025-04-10 07:59:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 04:59:06' and `end` < '2025-04-10 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-04-10 07:59:18] Production.INFO: count ==126 [2025-04-10 07:59:18] Production.ERROR: pbx CDR StartTime 2025-04-10 04:59:06 - End Time 2025-04-10 07:59:06 [2025-04-10 07:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875509', 'tblTempUsageDetail_20' ) start [2025-04-10 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875509', 'tblTempUsageDetail_20' ) end [2025-04-10 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875509', 'tblTempVendorCDR_20' ) start [2025-04-10 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875509', 'tblTempVendorCDR_20' ) end [2025-04-10 07:59:18] Production.INFO: ProcessCDR(1,14875509,1,1,2) [2025-04-10 07:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 07:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 07:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875509', 'tblTempUsageDetail_20' ) start [2025-04-10 07:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875509', 'tblTempUsageDetail_20' ) end [2025-04-10 07:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 07:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 07:59:22] Production.INFO: ==31934== Releasing lock... [2025-04-10 07:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 07:59:22] Production.INFO: 29 MB #Memory Used# [2025-04-10 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 05:00:06 [end_date_ymd] => 2025-04-10 08:00:06 [RateCDR] => 1 ) [2025-04-10 08:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 05:00:06' and `end` < '2025-04-10 08:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 08:00:19] Production.INFO: count ==136 [2025-04-10 08:00:19] Production.ERROR: pbx CDR StartTime 2025-04-10 05:00:06 - End Time 2025-04-10 08:00:06 [2025-04-10 08:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875515', 'tblTempUsageDetail_20' ) start [2025-04-10 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875515', 'tblTempUsageDetail_20' ) end [2025-04-10 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875515', 'tblTempVendorCDR_20' ) start [2025-04-10 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875515', 'tblTempVendorCDR_20' ) end [2025-04-10 08:00:19] Production.INFO: ProcessCDR(1,14875515,1,1,2) [2025-04-10 08:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875515', 'tblTempUsageDetail_20' ) start [2025-04-10 08:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875515', 'tblTempUsageDetail_20' ) end [2025-04-10 08:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 08:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 08:00:22] Production.INFO: ==32009== Releasing lock... [2025-04-10 08:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 08:00:22] Production.INFO: 29 MB #Memory Used# [2025-04-10 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 05:01:05 [end_date_ymd] => 2025-04-10 08:01:05 [RateCDR] => 1 ) [2025-04-10 08:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 05:01:05' and `end` < '2025-04-10 08:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 08:01:18] Production.INFO: count ==148 [2025-04-10 08:01:18] Production.ERROR: pbx CDR StartTime 2025-04-10 05:01:05 - End Time 2025-04-10 08:01:05 [2025-04-10 08:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875520', 'tblTempUsageDetail_20' ) start [2025-04-10 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875520', 'tblTempUsageDetail_20' ) end [2025-04-10 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875520', 'tblTempVendorCDR_20' ) start [2025-04-10 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875520', 'tblTempVendorCDR_20' ) end [2025-04-10 08:01:18] Production.INFO: ProcessCDR(1,14875520,1,1,2) [2025-04-10 08:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875520', 'tblTempUsageDetail_20' ) start [2025-04-10 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875520', 'tblTempUsageDetail_20' ) end [2025-04-10 08:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 08:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 08:01:21] Production.INFO: ==32102== Releasing lock... [2025-04-10 08:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 08:01:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 05:02:05 [end_date_ymd] => 2025-04-10 08:02:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 05:02:05' and `end` < '2025-04-10 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-04-10 08:02:18] Production.INFO: count ==149 [2025-04-10 08:02:18] Production.ERROR: pbx CDR StartTime 2025-04-10 05:02:05 - End Time 2025-04-10 08:02:05 [2025-04-10 08:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875525', 'tblTempUsageDetail_20' ) start [2025-04-10 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875525', 'tblTempUsageDetail_20' ) end [2025-04-10 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875525', 'tblTempVendorCDR_20' ) start [2025-04-10 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875525', 'tblTempVendorCDR_20' ) end [2025-04-10 08:02:18] Production.INFO: ProcessCDR(1,14875525,1,1,2) [2025-04-10 08:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875525', 'tblTempUsageDetail_20' ) start [2025-04-10 08:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875525', 'tblTempUsageDetail_20' ) end [2025-04-10 08:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 08:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 08:02:23] Production.INFO: ==32176== Releasing lock... [2025-04-10 08:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 08:02:23] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 05:03:05 [end_date_ymd] => 2025-04-10 08:03:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 05:03:05' and `end` < '2025-04-10 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-04-10 08:03:18] Production.INFO: count ==149 [2025-04-10 08:03:18] Production.ERROR: pbx CDR StartTime 2025-04-10 05:03:05 - End Time 2025-04-10 08:03:05 [2025-04-10 08:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875530', 'tblTempUsageDetail_20' ) start [2025-04-10 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875530', 'tblTempUsageDetail_20' ) end [2025-04-10 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875530', 'tblTempVendorCDR_20' ) start [2025-04-10 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875530', 'tblTempVendorCDR_20' ) end [2025-04-10 08:03:18] Production.INFO: ProcessCDR(1,14875530,1,1,2) [2025-04-10 08:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875530', 'tblTempUsageDetail_20' ) start [2025-04-10 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875530', 'tblTempUsageDetail_20' ) end [2025-04-10 08:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 08:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 08:03:21] Production.INFO: ==32259== Releasing lock... [2025-04-10 08:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 08:03:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 08:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 05:04:05 [end_date_ymd] => 2025-04-10 08:04:05 [RateCDR] => 1 ) [2025-04-10 08:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 05:04:05' and `end` < '2025-04-10 08:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 08:04:18] Production.INFO: count ==149 [2025-04-10 08:04:18] Production.ERROR: pbx CDR StartTime 2025-04-10 05:04:05 - End Time 2025-04-10 08:04:05 [2025-04-10 08:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875535', 'tblTempUsageDetail_20' ) start [2025-04-10 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875535', 'tblTempUsageDetail_20' ) end [2025-04-10 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875535', 'tblTempVendorCDR_20' ) start [2025-04-10 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875535', 'tblTempVendorCDR_20' ) end [2025-04-10 08:04:18] Production.INFO: ProcessCDR(1,14875535,1,1,2) [2025-04-10 08:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875535', 'tblTempUsageDetail_20' ) start [2025-04-10 08:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875535', 'tblTempUsageDetail_20' ) end [2025-04-10 08:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 08:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 08:04:21] Production.INFO: ==32338== Releasing lock... [2025-04-10 08:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 08:04:21] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 05:05:05 [end_date_ymd] => 2025-04-10 08:05:05 [RateCDR] => 1 ) [2025-04-10 08:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 05:05:05' and `end` < '2025-04-10 08:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 08:05:18] Production.INFO: count ==150 [2025-04-10 08:05:18] Production.ERROR: pbx CDR StartTime 2025-04-10 05:05:05 - End Time 2025-04-10 08:05:05 [2025-04-10 08:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875540', 'tblTempUsageDetail_20' ) start [2025-04-10 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875540', 'tblTempUsageDetail_20' ) end [2025-04-10 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875540', 'tblTempVendorCDR_20' ) start [2025-04-10 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875540', 'tblTempVendorCDR_20' ) end [2025-04-10 08:05:18] Production.INFO: ProcessCDR(1,14875540,1,1,2) [2025-04-10 08:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875540', 'tblTempUsageDetail_20' ) start [2025-04-10 08:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875540', 'tblTempUsageDetail_20' ) end [2025-04-10 08:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 08:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 08:05:23] Production.INFO: ==32414== Releasing lock... [2025-04-10 08:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 08:05:23] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 05:06:05 [end_date_ymd] => 2025-04-10 08:06:05 [RateCDR] => 1 ) [2025-04-10 08:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 05:06:05' and `end` < '2025-04-10 08:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 08:06:18] Production.INFO: count ==152 [2025-04-10 08:06:18] Production.ERROR: pbx CDR StartTime 2025-04-10 05:06:05 - End Time 2025-04-10 08:06:05 [2025-04-10 08:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875545', 'tblTempUsageDetail_20' ) start [2025-04-10 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875545', 'tblTempUsageDetail_20' ) end [2025-04-10 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875545', 'tblTempVendorCDR_20' ) start [2025-04-10 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875545', 'tblTempVendorCDR_20' ) end [2025-04-10 08:06:18] Production.INFO: ProcessCDR(1,14875545,1,1,2) [2025-04-10 08:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875545', 'tblTempUsageDetail_20' ) start [2025-04-10 08:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875545', 'tblTempUsageDetail_20' ) end [2025-04-10 08:06:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 08:06:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 08:06:23] Production.INFO: ==32493== Releasing lock... [2025-04-10 08:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 08:06:23] Production.INFO: 29.25 MB #Memory Used# [2025-04-10 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 05:07:05 [end_date_ymd] => 2025-04-10 08:07:05 [RateCDR] => 1 ) [2025-04-10 08:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 05:07:05' and `end` < '2025-04-10 08:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 08:07:18] Production.INFO: count ==185 [2025-04-10 08:07:19] Production.ERROR: pbx CDR StartTime 2025-04-10 05:07:05 - End Time 2025-04-10 08:07:05 [2025-04-10 08:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 08:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875550', 'tblTempUsageDetail_20' ) start [2025-04-10 08:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875550', 'tblTempUsageDetail_20' ) end [2025-04-10 08:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875550', 'tblTempVendorCDR_20' ) start [2025-04-10 08:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875550', 'tblTempVendorCDR_20' ) end [2025-04-10 08:07:19] Production.INFO: ProcessCDR(1,14875550,1,1,2) [2025-04-10 08:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875550', 'tblTempUsageDetail_20' ) start [2025-04-10 08:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875550', 'tblTempUsageDetail_20' ) end [2025-04-10 08:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 08:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 08:07:22] Production.INFO: ==32568== Releasing lock... [2025-04-10 08:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 08:07:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-10 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 05:08:05 [end_date_ymd] => 2025-04-10 08:08:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 05:08:05' and `end` < '2025-04-10 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-04-10 08:08:18] Production.INFO: count ==202 [2025-04-10 08:08:18] Production.ERROR: pbx CDR StartTime 2025-04-10 05:08:05 - End Time 2025-04-10 08:08:05 [2025-04-10 08:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875555', 'tblTempUsageDetail_20' ) start [2025-04-10 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875555', 'tblTempUsageDetail_20' ) end [2025-04-10 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875555', 'tblTempVendorCDR_20' ) start [2025-04-10 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875555', 'tblTempVendorCDR_20' ) end [2025-04-10 08:08:18] Production.INFO: ProcessCDR(1,14875555,1,1,2) [2025-04-10 08:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875555', 'tblTempUsageDetail_20' ) start [2025-04-10 08:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875555', 'tblTempUsageDetail_20' ) end [2025-04-10 08:08:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 08:08:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 08:08:23] Production.INFO: ==32645== Releasing lock... [2025-04-10 08:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 08:08:23] Production.INFO: 29.75 MB #Memory Used# [2025-04-10 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 05:09:05 [end_date_ymd] => 2025-04-10 08:09:05 [RateCDR] => 1 ) [2025-04-10 08:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 05:09:05' and `end` < '2025-04-10 08:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 08:09:18] Production.INFO: count ==205 [2025-04-10 08:09:18] Production.ERROR: pbx CDR StartTime 2025-04-10 05:09:05 - End Time 2025-04-10 08:09:05 [2025-04-10 08:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875560', 'tblTempUsageDetail_20' ) start [2025-04-10 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875560', 'tblTempUsageDetail_20' ) end [2025-04-10 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875560', 'tblTempVendorCDR_20' ) start [2025-04-10 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875560', 'tblTempVendorCDR_20' ) end [2025-04-10 08:09:18] Production.INFO: ProcessCDR(1,14875560,1,1,2) [2025-04-10 08:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875560', 'tblTempUsageDetail_20' ) start [2025-04-10 08:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875560', 'tblTempUsageDetail_20' ) end [2025-04-10 08:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 08:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 08:09:22] Production.INFO: ==32726== Releasing lock... [2025-04-10 08:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 08:09:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-10 08:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 05:10:06 [end_date_ymd] => 2025-04-10 08:10:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 05:10:06' and `end` < '2025-04-10 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-04-10 08:10:18] Production.INFO: count ==213 [2025-04-10 08:10:18] Production.ERROR: pbx CDR StartTime 2025-04-10 05:10:06 - End Time 2025-04-10 08:10:06 [2025-04-10 08:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875566', 'tblTempUsageDetail_20' ) start [2025-04-10 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875566', 'tblTempUsageDetail_20' ) end [2025-04-10 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875566', 'tblTempVendorCDR_20' ) start [2025-04-10 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875566', 'tblTempVendorCDR_20' ) end [2025-04-10 08:10:18] Production.INFO: ProcessCDR(1,14875566,1,1,2) [2025-04-10 08:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875566', 'tblTempUsageDetail_20' ) start [2025-04-10 08:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875566', 'tblTempUsageDetail_20' ) end [2025-04-10 08:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 08:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 08:10:22] Production.INFO: ==362== Releasing lock... [2025-04-10 08:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 08:10:22] Production.INFO: 30 MB #Memory Used# [2025-04-10 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 05:11:05 [end_date_ymd] => 2025-04-10 08:11:05 [RateCDR] => 1 ) [2025-04-10 08:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 05:11:05' and `end` < '2025-04-10 08:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 08:11:18] Production.INFO: count ==230 [2025-04-10 08:11:18] Production.ERROR: pbx CDR StartTime 2025-04-10 05:11:05 - End Time 2025-04-10 08:11:05 [2025-04-10 08:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875571', 'tblTempUsageDetail_20' ) start [2025-04-10 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875571', 'tblTempUsageDetail_20' ) end [2025-04-10 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875571', 'tblTempVendorCDR_20' ) start [2025-04-10 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875571', 'tblTempVendorCDR_20' ) end [2025-04-10 08:11:18] Production.INFO: ProcessCDR(1,14875571,1,1,2) [2025-04-10 08:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875571', 'tblTempUsageDetail_20' ) start [2025-04-10 08:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875571', 'tblTempUsageDetail_20' ) end [2025-04-10 08:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 08:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 08:11:22] Production.INFO: ==477== Releasing lock... [2025-04-10 08:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 08:11:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-10 08:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 05:12:05 [end_date_ymd] => 2025-04-10 08:12:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 05:12:05' and `end` < '2025-04-10 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-04-10 08:12:17] Production.INFO: count ==235 [2025-04-10 08:12:18] Production.ERROR: pbx CDR StartTime 2025-04-10 05:12:05 - End Time 2025-04-10 08:12:05 [2025-04-10 08:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875576', 'tblTempUsageDetail_20' ) start [2025-04-10 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875576', 'tblTempUsageDetail_20' ) end [2025-04-10 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875576', 'tblTempVendorCDR_20' ) start [2025-04-10 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875576', 'tblTempVendorCDR_20' ) end [2025-04-10 08:12:18] Production.INFO: ProcessCDR(1,14875576,1,1,2) [2025-04-10 08:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875576', 'tblTempUsageDetail_20' ) start [2025-04-10 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875576', 'tblTempUsageDetail_20' ) end [2025-04-10 08:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 08:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 08:12:21] Production.INFO: ==555== Releasing lock... [2025-04-10 08:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 08:12:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-10 08:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 05:13:05 [end_date_ymd] => 2025-04-10 08:13:05 [RateCDR] => 1 ) [2025-04-10 08:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 05:13:05' and `end` < '2025-04-10 08:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 08:13:18] Production.INFO: count ==235 [2025-04-10 08:13:18] Production.ERROR: pbx CDR StartTime 2025-04-10 05:13:05 - End Time 2025-04-10 08:13:05 [2025-04-10 08:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875581', 'tblTempUsageDetail_20' ) start [2025-04-10 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875581', 'tblTempUsageDetail_20' ) end [2025-04-10 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875581', 'tblTempVendorCDR_20' ) start [2025-04-10 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875581', 'tblTempVendorCDR_20' ) end [2025-04-10 08:13:18] Production.INFO: ProcessCDR(1,14875581,1,1,2) [2025-04-10 08:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875581', 'tblTempUsageDetail_20' ) start [2025-04-10 08:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875581', 'tblTempUsageDetail_20' ) end [2025-04-10 08:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 08:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 08:13:22] Production.INFO: ==640== Releasing lock... [2025-04-10 08:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 08:13:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-10 08:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 05:14:04 [end_date_ymd] => 2025-04-10 08:14:04 [RateCDR] => 1 ) [2025-04-10 08:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 05:14:04' and `end` < '2025-04-10 08:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 08:14:17] Production.INFO: count ==238 [2025-04-10 08:14:17] Production.ERROR: pbx CDR StartTime 2025-04-10 05:14:04 - End Time 2025-04-10 08:14:04 [2025-04-10 08:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875586', 'tblTempUsageDetail_20' ) start [2025-04-10 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875586', 'tblTempUsageDetail_20' ) end [2025-04-10 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875586', 'tblTempVendorCDR_20' ) start [2025-04-10 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875586', 'tblTempVendorCDR_20' ) end [2025-04-10 08:14:17] Production.INFO: ProcessCDR(1,14875586,1,1,2) [2025-04-10 08:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875586', 'tblTempUsageDetail_20' ) start [2025-04-10 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875586', 'tblTempUsageDetail_20' ) end [2025-04-10 08:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 08:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 08:14:21] Production.INFO: ==748== Releasing lock... [2025-04-10 08:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 08:14:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-10 08:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 05:15:05 [end_date_ymd] => 2025-04-10 08:15:05 [RateCDR] => 1 ) [2025-04-10 08:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 05:15:05' and `end` < '2025-04-10 08:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 08:15:18] Production.INFO: count ==240 [2025-04-10 08:15:18] Production.ERROR: pbx CDR StartTime 2025-04-10 05:15:05 - End Time 2025-04-10 08:15:05 [2025-04-10 08:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875590', 'tblTempUsageDetail_20' ) start [2025-04-10 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875590', 'tblTempUsageDetail_20' ) end [2025-04-10 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875590', 'tblTempVendorCDR_20' ) start [2025-04-10 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875590', 'tblTempVendorCDR_20' ) end [2025-04-10 08:15:18] Production.INFO: ProcessCDR(1,14875590,1,1,2) [2025-04-10 08:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875590', 'tblTempUsageDetail_20' ) start [2025-04-10 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875590', 'tblTempUsageDetail_20' ) end [2025-04-10 08:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 08:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 08:15:21] Production.INFO: ==827== Releasing lock... [2025-04-10 08:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 08:15:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-10 08:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 05:16:06 [end_date_ymd] => 2025-04-10 08:16:06 [RateCDR] => 1 ) [2025-04-10 08:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 05:16:06' and `end` < '2025-04-10 08:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 08:16:19] Production.INFO: count ==240 [2025-04-10 08:16:19] Production.ERROR: pbx CDR StartTime 2025-04-10 05:16:06 - End Time 2025-04-10 08:16:06 [2025-04-10 08:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 08:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875596', 'tblTempUsageDetail_20' ) start [2025-04-10 08:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875596', 'tblTempUsageDetail_20' ) end [2025-04-10 08:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875596', 'tblTempVendorCDR_20' ) start [2025-04-10 08:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875596', 'tblTempVendorCDR_20' ) end [2025-04-10 08:16:19] Production.INFO: ProcessCDR(1,14875596,1,1,2) [2025-04-10 08:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875596', 'tblTempUsageDetail_20' ) start [2025-04-10 08:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875596', 'tblTempUsageDetail_20' ) end [2025-04-10 08:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 08:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 08:16:22] Production.INFO: ==904== Releasing lock... [2025-04-10 08:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 08:16:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-10 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 05:17:05 [end_date_ymd] => 2025-04-10 08:17:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 05:17:05' and `end` < '2025-04-10 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-04-10 08:17:18] Production.INFO: count ==246 [2025-04-10 08:17:18] Production.ERROR: pbx CDR StartTime 2025-04-10 05:17:05 - End Time 2025-04-10 08:17:05 [2025-04-10 08:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875601', 'tblTempUsageDetail_20' ) start [2025-04-10 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875601', 'tblTempUsageDetail_20' ) end [2025-04-10 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875601', 'tblTempVendorCDR_20' ) start [2025-04-10 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875601', 'tblTempVendorCDR_20' ) end [2025-04-10 08:17:18] Production.INFO: ProcessCDR(1,14875601,1,1,2) [2025-04-10 08:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875601', 'tblTempUsageDetail_20' ) start [2025-04-10 08:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875601', 'tblTempUsageDetail_20' ) end [2025-04-10 08:17:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 08:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 08:17:23] Production.INFO: ==981== Releasing lock... [2025-04-10 08:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 08:17:23] Production.INFO: 30.5 MB #Memory Used# [2025-04-10 08:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 05:18:06 [end_date_ymd] => 2025-04-10 08:18:06 [RateCDR] => 1 ) [2025-04-10 08:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 05:18:06' and `end` < '2025-04-10 08:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 08:18:19] Production.INFO: count ==272 [2025-04-10 08:18:19] Production.ERROR: pbx CDR StartTime 2025-04-10 05:18:06 - End Time 2025-04-10 08:18:06 [2025-04-10 08:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 08:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875606', 'tblTempUsageDetail_20' ) start [2025-04-10 08:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875606', 'tblTempUsageDetail_20' ) end [2025-04-10 08:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875606', 'tblTempVendorCDR_20' ) start [2025-04-10 08:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875606', 'tblTempVendorCDR_20' ) end [2025-04-10 08:18:19] Production.INFO: ProcessCDR(1,14875606,1,1,2) [2025-04-10 08:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875606', 'tblTempUsageDetail_20' ) start [2025-04-10 08:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875606', 'tblTempUsageDetail_20' ) end [2025-04-10 08:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 08:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 08:18:22] Production.INFO: ==1059== Releasing lock... [2025-04-10 08:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 08:18:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-10 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 05:19:05 [end_date_ymd] => 2025-04-10 08:19:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 05:19:05' and `end` < '2025-04-10 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-04-10 08:19:18] Production.INFO: count ==273 [2025-04-10 08:19:18] Production.ERROR: pbx CDR StartTime 2025-04-10 05:19:05 - End Time 2025-04-10 08:19:05 [2025-04-10 08:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875611', 'tblTempUsageDetail_20' ) start [2025-04-10 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875611', 'tblTempUsageDetail_20' ) end [2025-04-10 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875611', 'tblTempVendorCDR_20' ) start [2025-04-10 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875611', 'tblTempVendorCDR_20' ) end [2025-04-10 08:19:18] Production.INFO: ProcessCDR(1,14875611,1,1,2) [2025-04-10 08:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875611', 'tblTempUsageDetail_20' ) start [2025-04-10 08:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875611', 'tblTempUsageDetail_20' ) end [2025-04-10 08:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 08:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 08:19:21] Production.INFO: ==1135== Releasing lock... [2025-04-10 08:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 08:19:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-10 08:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 05:20:06 [end_date_ymd] => 2025-04-10 08:20:06 [RateCDR] => 1 ) [2025-04-10 08:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 05:20:06' and `end` < '2025-04-10 08:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 08:20:18] Production.INFO: count ==291 [2025-04-10 08:20:19] Production.ERROR: pbx CDR StartTime 2025-04-10 05:20:06 - End Time 2025-04-10 08:20:06 [2025-04-10 08:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875616', 'tblTempUsageDetail_20' ) start [2025-04-10 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875616', 'tblTempUsageDetail_20' ) end [2025-04-10 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875616', 'tblTempVendorCDR_20' ) start [2025-04-10 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875616', 'tblTempVendorCDR_20' ) end [2025-04-10 08:20:19] Production.INFO: ProcessCDR(1,14875616,1,1,2) [2025-04-10 08:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875616', 'tblTempUsageDetail_20' ) start [2025-04-10 08:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875616', 'tblTempUsageDetail_20' ) end [2025-04-10 08:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 08:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 08:20:23] Production.INFO: ==1218== Releasing lock... [2025-04-10 08:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 08:20:23] Production.INFO: 30.5 MB #Memory Used# [2025-04-10 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 05:21:05 [end_date_ymd] => 2025-04-10 08:21:05 [RateCDR] => 1 ) [2025-04-10 08:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 05:21:05' and `end` < '2025-04-10 08:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 08:21:18] Production.INFO: count ==316 [2025-04-10 08:21:18] Production.ERROR: pbx CDR StartTime 2025-04-10 05:21:05 - End Time 2025-04-10 08:21:05 [2025-04-10 08:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875622', 'tblTempUsageDetail_20' ) start [2025-04-10 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875622', 'tblTempUsageDetail_20' ) end [2025-04-10 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875622', 'tblTempVendorCDR_20' ) start [2025-04-10 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875622', 'tblTempVendorCDR_20' ) end [2025-04-10 08:21:18] Production.INFO: ProcessCDR(1,14875622,1,1,2) [2025-04-10 08:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875622', 'tblTempUsageDetail_20' ) start [2025-04-10 08:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875622', 'tblTempUsageDetail_20' ) end [2025-04-10 08:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 08:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 08:21:21] Production.INFO: ==1308== Releasing lock... [2025-04-10 08:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 08:21:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-10 08:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 05:22:06 [end_date_ymd] => 2025-04-10 08:22:06 [RateCDR] => 1 ) [2025-04-10 08:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 05:22:06' and `end` < '2025-04-10 08:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 08:22:19] Production.INFO: count ==317 [2025-04-10 08:22:19] Production.ERROR: pbx CDR StartTime 2025-04-10 05:22:06 - End Time 2025-04-10 08:22:06 [2025-04-10 08:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 08:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875627', 'tblTempUsageDetail_20' ) start [2025-04-10 08:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875627', 'tblTempUsageDetail_20' ) end [2025-04-10 08:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875627', 'tblTempVendorCDR_20' ) start [2025-04-10 08:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875627', 'tblTempVendorCDR_20' ) end [2025-04-10 08:22:19] Production.INFO: ProcessCDR(1,14875627,1,1,2) [2025-04-10 08:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875627', 'tblTempUsageDetail_20' ) start [2025-04-10 08:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875627', 'tblTempUsageDetail_20' ) end [2025-04-10 08:22:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 08:22:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 08:22:24] Production.INFO: ==1389== Releasing lock... [2025-04-10 08:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 08:22:24] Production.INFO: 30.75 MB #Memory Used# [2025-04-10 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 05:23:05 [end_date_ymd] => 2025-04-10 08:23:05 [RateCDR] => 1 ) [2025-04-10 08:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 05:23:05' and `end` < '2025-04-10 08:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 08:23:17] Production.INFO: count ==322 [2025-04-10 08:23:17] Production.ERROR: pbx CDR StartTime 2025-04-10 05:23:05 - End Time 2025-04-10 08:23:05 [2025-04-10 08:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875632', 'tblTempUsageDetail_20' ) start [2025-04-10 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875632', 'tblTempUsageDetail_20' ) end [2025-04-10 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875632', 'tblTempVendorCDR_20' ) start [2025-04-10 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875632', 'tblTempVendorCDR_20' ) end [2025-04-10 08:23:17] Production.INFO: ProcessCDR(1,14875632,1,1,2) [2025-04-10 08:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875632', 'tblTempUsageDetail_20' ) start [2025-04-10 08:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875632', 'tblTempUsageDetail_20' ) end [2025-04-10 08:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 08:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 08:23:21] Production.INFO: ==1464== Releasing lock... [2025-04-10 08:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 08:23:21] Production.INFO: 31 MB #Memory Used# [2025-04-10 08:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 05:24:06 [end_date_ymd] => 2025-04-10 08:24:06 [RateCDR] => 1 ) [2025-04-10 08:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 05:24:06' and `end` < '2025-04-10 08:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 08:24:19] Production.INFO: count ==327 [2025-04-10 08:24:19] Production.ERROR: pbx CDR StartTime 2025-04-10 05:24:06 - End Time 2025-04-10 08:24:06 [2025-04-10 08:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875637', 'tblTempUsageDetail_20' ) start [2025-04-10 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875637', 'tblTempUsageDetail_20' ) end [2025-04-10 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875637', 'tblTempVendorCDR_20' ) start [2025-04-10 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875637', 'tblTempVendorCDR_20' ) end [2025-04-10 08:24:19] Production.INFO: ProcessCDR(1,14875637,1,1,2) [2025-04-10 08:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875637', 'tblTempUsageDetail_20' ) start [2025-04-10 08:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875637', 'tblTempUsageDetail_20' ) end [2025-04-10 08:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 08:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 08:24:22] Production.INFO: ==1581== Releasing lock... [2025-04-10 08:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 08:24:22] Production.INFO: 31 MB #Memory Used# [2025-04-10 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 05:25:05 [end_date_ymd] => 2025-04-10 08:25:05 [RateCDR] => 1 ) [2025-04-10 08:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 05:25:05' and `end` < '2025-04-10 08:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 08:25:17] Production.INFO: count ==327 [2025-04-10 08:25:18] Production.ERROR: pbx CDR StartTime 2025-04-10 05:25:05 - End Time 2025-04-10 08:25:05 [2025-04-10 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875642', 'tblTempUsageDetail_20' ) start [2025-04-10 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875642', 'tblTempUsageDetail_20' ) end [2025-04-10 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875642', 'tblTempVendorCDR_20' ) start [2025-04-10 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875642', 'tblTempVendorCDR_20' ) end [2025-04-10 08:25:18] Production.INFO: ProcessCDR(1,14875642,1,1,2) [2025-04-10 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875642', 'tblTempUsageDetail_20' ) start [2025-04-10 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875642', 'tblTempUsageDetail_20' ) end [2025-04-10 08:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 08:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 08:25:21] Production.INFO: ==1656== Releasing lock... [2025-04-10 08:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 08:25:21] Production.INFO: 31 MB #Memory Used# [2025-04-10 08:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 05:26:05 [end_date_ymd] => 2025-04-10 08:26:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 05:26:05' and `end` < '2025-04-10 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-04-10 08:26:18] Production.INFO: count ==346 [2025-04-10 08:26:18] Production.ERROR: pbx CDR StartTime 2025-04-10 05:26:05 - End Time 2025-04-10 08:26:05 [2025-04-10 08:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875647', 'tblTempUsageDetail_20' ) start [2025-04-10 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875647', 'tblTempUsageDetail_20' ) end [2025-04-10 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875647', 'tblTempVendorCDR_20' ) start [2025-04-10 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875647', 'tblTempVendorCDR_20' ) end [2025-04-10 08:26:18] Production.INFO: ProcessCDR(1,14875647,1,1,2) [2025-04-10 08:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875647', 'tblTempUsageDetail_20' ) start [2025-04-10 08:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875647', 'tblTempUsageDetail_20' ) end [2025-04-10 08:26:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 08:26:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 08:26:23] Production.INFO: ==1775== Releasing lock... [2025-04-10 08:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 08:26:23] Production.INFO: 31 MB #Memory Used# [2025-04-10 08:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 05:27:04 [end_date_ymd] => 2025-04-10 08:27:04 [RateCDR] => 1 ) [2025-04-10 08:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 05:27:04' and `end` < '2025-04-10 08:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 08:27:17] Production.INFO: count ==348 [2025-04-10 08:27:17] Production.ERROR: pbx CDR StartTime 2025-04-10 05:27:04 - End Time 2025-04-10 08:27:04 [2025-04-10 08:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875652', 'tblTempUsageDetail_20' ) start [2025-04-10 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875652', 'tblTempUsageDetail_20' ) end [2025-04-10 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875652', 'tblTempVendorCDR_20' ) start [2025-04-10 08:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875652', 'tblTempVendorCDR_20' ) end [2025-04-10 08:27:17] Production.INFO: ProcessCDR(1,14875652,1,1,2) [2025-04-10 08:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875652', 'tblTempUsageDetail_20' ) start [2025-04-10 08:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875652', 'tblTempUsageDetail_20' ) end [2025-04-10 08:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 08:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 08:27:22] Production.INFO: ==1851== Releasing lock... [2025-04-10 08:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 08:27:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 08:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 05:28:06 [end_date_ymd] => 2025-04-10 08:28:06 [RateCDR] => 1 ) [2025-04-10 08:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 05:28:06' and `end` < '2025-04-10 08:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 08:28:18] Production.INFO: count ==354 [2025-04-10 08:28:19] Production.ERROR: pbx CDR StartTime 2025-04-10 05:28:06 - End Time 2025-04-10 08:28:06 [2025-04-10 08:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875657', 'tblTempUsageDetail_20' ) start [2025-04-10 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875657', 'tblTempUsageDetail_20' ) end [2025-04-10 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875657', 'tblTempVendorCDR_20' ) start [2025-04-10 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875657', 'tblTempVendorCDR_20' ) end [2025-04-10 08:28:19] Production.INFO: ProcessCDR(1,14875657,1,1,2) [2025-04-10 08:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875657', 'tblTempUsageDetail_20' ) start [2025-04-10 08:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875657', 'tblTempUsageDetail_20' ) end [2025-04-10 08:28:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 08:28:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 08:28:24] Production.INFO: ==1922== Releasing lock... [2025-04-10 08:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 08:28:24] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 05:29:05 [end_date_ymd] => 2025-04-10 08:29:05 [RateCDR] => 1 ) [2025-04-10 08:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 05:29:05' and `end` < '2025-04-10 08:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 08:29:18] Production.INFO: count ==361 [2025-04-10 08:29:18] Production.ERROR: pbx CDR StartTime 2025-04-10 05:29:05 - End Time 2025-04-10 08:29:05 [2025-04-10 08:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875662', 'tblTempUsageDetail_20' ) start [2025-04-10 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875662', 'tblTempUsageDetail_20' ) end [2025-04-10 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875662', 'tblTempVendorCDR_20' ) start [2025-04-10 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875662', 'tblTempVendorCDR_20' ) end [2025-04-10 08:29:18] Production.INFO: ProcessCDR(1,14875662,1,1,2) [2025-04-10 08:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875662', 'tblTempUsageDetail_20' ) start [2025-04-10 08:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875662', 'tblTempUsageDetail_20' ) end [2025-04-10 08:29:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 08:29:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 08:29:23] Production.INFO: ==1999== Releasing lock... [2025-04-10 08:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 08:29:23] Production.INFO: 31.25 MB #Memory Used# [2025-04-10 08:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 05:30:05 [end_date_ymd] => 2025-04-10 08:30:05 [RateCDR] => 1 ) [2025-04-10 08:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 05:30:05' and `end` < '2025-04-10 08:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 08:30:18] Production.INFO: count ==373 [2025-04-10 08:30:18] Production.ERROR: pbx CDR StartTime 2025-04-10 05:30:05 - End Time 2025-04-10 08:30:05 [2025-04-10 08:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875667', 'tblTempUsageDetail_20' ) start [2025-04-10 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875667', 'tblTempUsageDetail_20' ) end [2025-04-10 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875667', 'tblTempVendorCDR_20' ) start [2025-04-10 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875667', 'tblTempVendorCDR_20' ) end [2025-04-10 08:30:18] Production.INFO: ProcessCDR(1,14875667,1,1,2) [2025-04-10 08:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875667', 'tblTempUsageDetail_20' ) start [2025-04-10 08:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875667', 'tblTempUsageDetail_20' ) end [2025-04-10 08:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 08:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 08:30:23] Production.INFO: ==2085== Releasing lock... [2025-04-10 08:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 08:30:23] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 08:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 05:31:05 [end_date_ymd] => 2025-04-10 08:31:05 [RateCDR] => 1 ) [2025-04-10 08:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 05:31:05' and `end` < '2025-04-10 08:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 08:31:18] Production.INFO: count ==401 [2025-04-10 08:31:18] Production.ERROR: pbx CDR StartTime 2025-04-10 05:31:05 - End Time 2025-04-10 08:31:05 [2025-04-10 08:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875673', 'tblTempUsageDetail_20' ) start [2025-04-10 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875673', 'tblTempUsageDetail_20' ) end [2025-04-10 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875673', 'tblTempVendorCDR_20' ) start [2025-04-10 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875673', 'tblTempVendorCDR_20' ) end [2025-04-10 08:31:18] Production.INFO: ProcessCDR(1,14875673,1,1,2) [2025-04-10 08:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875673', 'tblTempUsageDetail_20' ) start [2025-04-10 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875673', 'tblTempUsageDetail_20' ) end [2025-04-10 08:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 08:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 08:31:21] Production.INFO: ==2160== Releasing lock... [2025-04-10 08:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 08:31:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 08:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 05:32:05 [end_date_ymd] => 2025-04-10 08:32:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 05:32:05' and `end` < '2025-04-10 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-04-10 08:32:18] Production.INFO: count ==428 [2025-04-10 08:32:18] Production.ERROR: pbx CDR StartTime 2025-04-10 05:32:05 - End Time 2025-04-10 08:32:05 [2025-04-10 08:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875678', 'tblTempUsageDetail_20' ) start [2025-04-10 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875678', 'tblTempUsageDetail_20' ) end [2025-04-10 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875678', 'tblTempVendorCDR_20' ) start [2025-04-10 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875678', 'tblTempVendorCDR_20' ) end [2025-04-10 08:32:18] Production.INFO: ProcessCDR(1,14875678,1,1,2) [2025-04-10 08:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875678', 'tblTempUsageDetail_20' ) start [2025-04-10 08:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875678', 'tblTempUsageDetail_20' ) end [2025-04-10 08:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 08:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 08:32:21] Production.INFO: ==2241== Releasing lock... [2025-04-10 08:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 08:32:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-10 08:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 05:33:06 [end_date_ymd] => 2025-04-10 08:33:06 [RateCDR] => 1 ) [2025-04-10 08:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 05:33:06' and `end` < '2025-04-10 08:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 08:33:18] Production.INFO: count ==442 [2025-04-10 08:33:19] Production.ERROR: pbx CDR StartTime 2025-04-10 05:33:06 - End Time 2025-04-10 08:33:06 [2025-04-10 08:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 08:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875683', 'tblTempUsageDetail_20' ) start [2025-04-10 08:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875683', 'tblTempUsageDetail_20' ) end [2025-04-10 08:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875683', 'tblTempVendorCDR_20' ) start [2025-04-10 08:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875683', 'tblTempVendorCDR_20' ) end [2025-04-10 08:33:19] Production.INFO: ProcessCDR(1,14875683,1,1,2) [2025-04-10 08:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875683', 'tblTempUsageDetail_20' ) start [2025-04-10 08:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875683', 'tblTempUsageDetail_20' ) end [2025-04-10 08:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 08:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 08:33:22] Production.INFO: ==2318== Releasing lock... [2025-04-10 08:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 08:33:22] Production.INFO: 32 MB #Memory Used# [2025-04-10 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 05:34:05 [end_date_ymd] => 2025-04-10 08:34:05 [RateCDR] => 1 ) [2025-04-10 08:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 05:34:05' and `end` < '2025-04-10 08:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 08:34:18] Production.INFO: count ==444 [2025-04-10 08:34:18] Production.ERROR: pbx CDR StartTime 2025-04-10 05:34:05 - End Time 2025-04-10 08:34:05 [2025-04-10 08:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875688', 'tblTempUsageDetail_20' ) start [2025-04-10 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875688', 'tblTempUsageDetail_20' ) end [2025-04-10 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875688', 'tblTempVendorCDR_20' ) start [2025-04-10 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875688', 'tblTempVendorCDR_20' ) end [2025-04-10 08:34:18] Production.INFO: ProcessCDR(1,14875688,1,1,2) [2025-04-10 08:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875688', 'tblTempUsageDetail_20' ) start [2025-04-10 08:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875688', 'tblTempUsageDetail_20' ) end [2025-04-10 08:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 08:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 08:34:22] Production.INFO: ==2393== Releasing lock... [2025-04-10 08:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 08:34:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-10 08:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 05:35:05 [end_date_ymd] => 2025-04-10 08:35:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 05:35:05' and `end` < '2025-04-10 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-04-10 08:35:18] Production.INFO: count ==453 [2025-04-10 08:35:18] Production.ERROR: pbx CDR StartTime 2025-04-10 05:35:05 - End Time 2025-04-10 08:35:05 [2025-04-10 08:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875693', 'tblTempUsageDetail_20' ) start [2025-04-10 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875693', 'tblTempUsageDetail_20' ) end [2025-04-10 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875693', 'tblTempVendorCDR_20' ) start [2025-04-10 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875693', 'tblTempVendorCDR_20' ) end [2025-04-10 08:35:18] Production.INFO: ProcessCDR(1,14875693,1,1,2) [2025-04-10 08:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875693', 'tblTempUsageDetail_20' ) start [2025-04-10 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875693', 'tblTempUsageDetail_20' ) end [2025-04-10 08:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 08:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 08:35:21] Production.INFO: ==2468== Releasing lock... [2025-04-10 08:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 08:35:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-10 08:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 05:36:05 [end_date_ymd] => 2025-04-10 08:36:05 [RateCDR] => 1 ) [2025-04-10 08:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 05:36:05' and `end` < '2025-04-10 08:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 08:36:18] Production.INFO: count ==451 [2025-04-10 08:36:18] Production.ERROR: pbx CDR StartTime 2025-04-10 05:36:05 - End Time 2025-04-10 08:36:05 [2025-04-10 08:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875698', 'tblTempUsageDetail_20' ) start [2025-04-10 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875698', 'tblTempUsageDetail_20' ) end [2025-04-10 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875698', 'tblTempVendorCDR_20' ) start [2025-04-10 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875698', 'tblTempVendorCDR_20' ) end [2025-04-10 08:36:18] Production.INFO: ProcessCDR(1,14875698,1,1,2) [2025-04-10 08:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875698', 'tblTempUsageDetail_20' ) start [2025-04-10 08:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875698', 'tblTempUsageDetail_20' ) end [2025-04-10 08:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 08:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 08:36:22] Production.INFO: ==2541== Releasing lock... [2025-04-10 08:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 08:36:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-10 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 05:37:05 [end_date_ymd] => 2025-04-10 08:37:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 05:37:05' and `end` < '2025-04-10 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-04-10 08:37:18] Production.INFO: count ==451 [2025-04-10 08:37:18] Production.ERROR: pbx CDR StartTime 2025-04-10 05:37:05 - End Time 2025-04-10 08:37:05 [2025-04-10 08:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875703', 'tblTempUsageDetail_20' ) start [2025-04-10 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875703', 'tblTempUsageDetail_20' ) end [2025-04-10 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875703', 'tblTempVendorCDR_20' ) start [2025-04-10 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875703', 'tblTempVendorCDR_20' ) end [2025-04-10 08:37:18] Production.INFO: ProcessCDR(1,14875703,1,1,2) [2025-04-10 08:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875703', 'tblTempUsageDetail_20' ) start [2025-04-10 08:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875703', 'tblTempUsageDetail_20' ) end [2025-04-10 08:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 08:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 08:37:22] Production.INFO: ==2618== Releasing lock... [2025-04-10 08:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 08:37:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-10 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 05:38:05 [end_date_ymd] => 2025-04-10 08:38:05 [RateCDR] => 1 ) [2025-04-10 08:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 05:38:05' and `end` < '2025-04-10 08:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 08:38:18] Production.INFO: count ==460 [2025-04-10 08:38:18] Production.ERROR: pbx CDR StartTime 2025-04-10 05:38:05 - End Time 2025-04-10 08:38:05 [2025-04-10 08:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875708', 'tblTempUsageDetail_20' ) start [2025-04-10 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875708', 'tblTempUsageDetail_20' ) end [2025-04-10 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875708', 'tblTempVendorCDR_20' ) start [2025-04-10 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875708', 'tblTempVendorCDR_20' ) end [2025-04-10 08:38:18] Production.INFO: ProcessCDR(1,14875708,1,1,2) [2025-04-10 08:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875708', 'tblTempUsageDetail_20' ) start [2025-04-10 08:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875708', 'tblTempUsageDetail_20' ) end [2025-04-10 08:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 08:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 08:38:21] Production.INFO: ==2705== Releasing lock... [2025-04-10 08:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 08:38:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-10 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 05:39:05 [end_date_ymd] => 2025-04-10 08:39:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 05:39:05' and `end` < '2025-04-10 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-04-10 08:39:18] Production.INFO: count ==471 [2025-04-10 08:39:18] Production.ERROR: pbx CDR StartTime 2025-04-10 05:39:05 - End Time 2025-04-10 08:39:05 [2025-04-10 08:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875713', 'tblTempUsageDetail_20' ) start [2025-04-10 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875713', 'tblTempUsageDetail_20' ) end [2025-04-10 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875713', 'tblTempVendorCDR_20' ) start [2025-04-10 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875713', 'tblTempVendorCDR_20' ) end [2025-04-10 08:39:18] Production.INFO: ProcessCDR(1,14875713,1,1,2) [2025-04-10 08:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875713', 'tblTempUsageDetail_20' ) start [2025-04-10 08:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875713', 'tblTempUsageDetail_20' ) end [2025-04-10 08:39:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 08:39:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 08:39:23] Production.INFO: ==2778== Releasing lock... [2025-04-10 08:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 08:39:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-10 08:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 05:40:05 [end_date_ymd] => 2025-04-10 08:40:05 [RateCDR] => 1 ) [2025-04-10 08:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 05:40:05' and `end` < '2025-04-10 08:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 08:40:18] Production.INFO: count ==471 [2025-04-10 08:40:18] Production.ERROR: pbx CDR StartTime 2025-04-10 05:40:05 - End Time 2025-04-10 08:40:05 [2025-04-10 08:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875718', 'tblTempUsageDetail_20' ) start [2025-04-10 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875718', 'tblTempUsageDetail_20' ) end [2025-04-10 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875718', 'tblTempVendorCDR_20' ) start [2025-04-10 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875718', 'tblTempVendorCDR_20' ) end [2025-04-10 08:40:18] Production.INFO: ProcessCDR(1,14875718,1,1,2) [2025-04-10 08:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875718', 'tblTempUsageDetail_20' ) start [2025-04-10 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875718', 'tblTempUsageDetail_20' ) end [2025-04-10 08:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 08:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 08:40:22] Production.INFO: ==2850== Releasing lock... [2025-04-10 08:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 08:40:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-10 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 05:41:05 [end_date_ymd] => 2025-04-10 08:41:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 05:41:05' and `end` < '2025-04-10 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-04-10 08:41:18] Production.INFO: count ==507 [2025-04-10 08:41:19] Production.ERROR: pbx CDR StartTime 2025-04-10 05:41:05 - End Time 2025-04-10 08:41:05 [2025-04-10 08:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 08:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875724', 'tblTempUsageDetail_20' ) start [2025-04-10 08:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875724', 'tblTempUsageDetail_20' ) end [2025-04-10 08:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875724', 'tblTempVendorCDR_20' ) start [2025-04-10 08:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875724', 'tblTempVendorCDR_20' ) end [2025-04-10 08:41:19] Production.INFO: ProcessCDR(1,14875724,1,1,2) [2025-04-10 08:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875724', 'tblTempUsageDetail_20' ) start [2025-04-10 08:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875724', 'tblTempUsageDetail_20' ) end [2025-04-10 08:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 08:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 08:41:22] Production.INFO: ==2927== Releasing lock... [2025-04-10 08:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 08:41:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-10 08:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 05:42:05 [end_date_ymd] => 2025-04-10 08:42:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 05:42:05' and `end` < '2025-04-10 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-04-10 08:42:18] Production.INFO: count ==517 [2025-04-10 08:42:18] Production.ERROR: pbx CDR StartTime 2025-04-10 05:42:05 - End Time 2025-04-10 08:42:05 [2025-04-10 08:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875729', 'tblTempUsageDetail_20' ) start [2025-04-10 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875729', 'tblTempUsageDetail_20' ) end [2025-04-10 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875729', 'tblTempVendorCDR_20' ) start [2025-04-10 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875729', 'tblTempVendorCDR_20' ) end [2025-04-10 08:42:18] Production.INFO: ProcessCDR(1,14875729,1,1,2) [2025-04-10 08:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875729', 'tblTempUsageDetail_20' ) start [2025-04-10 08:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875729', 'tblTempUsageDetail_20' ) end [2025-04-10 08:42:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 08:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 08:42:23] Production.INFO: ==3041== Releasing lock... [2025-04-10 08:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 08:42:23] Production.INFO: 32.75 MB #Memory Used# [2025-04-10 08:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 05:43:05 [end_date_ymd] => 2025-04-10 08:43:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 05:43:05' and `end` < '2025-04-10 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-04-10 08:43:18] Production.INFO: count ==523 [2025-04-10 08:43:18] Production.ERROR: pbx CDR StartTime 2025-04-10 05:43:05 - End Time 2025-04-10 08:43:05 [2025-04-10 08:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875734', 'tblTempUsageDetail_20' ) start [2025-04-10 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875734', 'tblTempUsageDetail_20' ) end [2025-04-10 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875734', 'tblTempVendorCDR_20' ) start [2025-04-10 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875734', 'tblTempVendorCDR_20' ) end [2025-04-10 08:43:18] Production.INFO: ProcessCDR(1,14875734,1,1,2) [2025-04-10 08:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875734', 'tblTempUsageDetail_20' ) start [2025-04-10 08:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875734', 'tblTempUsageDetail_20' ) end [2025-04-10 08:43:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 08:43:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 08:43:23] Production.INFO: ==3119== Releasing lock... [2025-04-10 08:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 08:43:23] Production.INFO: 32.75 MB #Memory Used# [2025-04-10 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 05:44:05 [end_date_ymd] => 2025-04-10 08:44:05 [RateCDR] => 1 ) [2025-04-10 08:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 05:44:05' and `end` < '2025-04-10 08:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 08:44:18] Production.INFO: count ==534 [2025-04-10 08:44:19] Production.ERROR: pbx CDR StartTime 2025-04-10 05:44:05 - End Time 2025-04-10 08:44:05 [2025-04-10 08:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875739', 'tblTempUsageDetail_20' ) start [2025-04-10 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875739', 'tblTempUsageDetail_20' ) end [2025-04-10 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875739', 'tblTempVendorCDR_20' ) start [2025-04-10 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875739', 'tblTempVendorCDR_20' ) end [2025-04-10 08:44:19] Production.INFO: ProcessCDR(1,14875739,1,1,2) [2025-04-10 08:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875739', 'tblTempUsageDetail_20' ) start [2025-04-10 08:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875739', 'tblTempUsageDetail_20' ) end [2025-04-10 08:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 08:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 08:44:22] Production.INFO: ==3192== Releasing lock... [2025-04-10 08:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 08:44:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-10 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 05:45:05 [end_date_ymd] => 2025-04-10 08:45:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 05:45:05' and `end` < '2025-04-10 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-04-10 08:45:18] Production.INFO: count ==547 [2025-04-10 08:45:18] Production.ERROR: pbx CDR StartTime 2025-04-10 05:45:05 - End Time 2025-04-10 08:45:05 [2025-04-10 08:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875744', 'tblTempUsageDetail_20' ) start [2025-04-10 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875744', 'tblTempUsageDetail_20' ) end [2025-04-10 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875744', 'tblTempVendorCDR_20' ) start [2025-04-10 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875744', 'tblTempVendorCDR_20' ) end [2025-04-10 08:45:18] Production.INFO: ProcessCDR(1,14875744,1,1,2) [2025-04-10 08:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875744', 'tblTempUsageDetail_20' ) start [2025-04-10 08:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875744', 'tblTempUsageDetail_20' ) end [2025-04-10 08:45:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 08:45:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 08:45:23] Production.INFO: ==3268== Releasing lock... [2025-04-10 08:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 08:45:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-10 08:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 05:46:06 [end_date_ymd] => 2025-04-10 08:46:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 05:46:06' and `end` < '2025-04-10 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-04-10 08:46:18] Production.INFO: count ==547 [2025-04-10 08:46:19] Production.ERROR: pbx CDR StartTime 2025-04-10 05:46:06 - End Time 2025-04-10 08:46:06 [2025-04-10 08:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 08:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875749', 'tblTempUsageDetail_20' ) start [2025-04-10 08:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875749', 'tblTempUsageDetail_20' ) end [2025-04-10 08:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875749', 'tblTempVendorCDR_20' ) start [2025-04-10 08:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875749', 'tblTempVendorCDR_20' ) end [2025-04-10 08:46:19] Production.INFO: ProcessCDR(1,14875749,1,1,2) [2025-04-10 08:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875749', 'tblTempUsageDetail_20' ) start [2025-04-10 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875749', 'tblTempUsageDetail_20' ) end [2025-04-10 08:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 08:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 08:46:22] Production.INFO: ==3346== Releasing lock... [2025-04-10 08:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 08:46:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-10 08:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 05:47:05 [end_date_ymd] => 2025-04-10 08:47:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 05:47:05' and `end` < '2025-04-10 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-04-10 08:47:18] Production.INFO: count ==548 [2025-04-10 08:47:18] Production.ERROR: pbx CDR StartTime 2025-04-10 05:47:05 - End Time 2025-04-10 08:47:05 [2025-04-10 08:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875754', 'tblTempUsageDetail_20' ) start [2025-04-10 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875754', 'tblTempUsageDetail_20' ) end [2025-04-10 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875754', 'tblTempVendorCDR_20' ) start [2025-04-10 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875754', 'tblTempVendorCDR_20' ) end [2025-04-10 08:47:18] Production.INFO: ProcessCDR(1,14875754,1,1,2) [2025-04-10 08:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875754', 'tblTempUsageDetail_20' ) start [2025-04-10 08:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875754', 'tblTempUsageDetail_20' ) end [2025-04-10 08:47:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 08:47:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 08:47:23] Production.INFO: ==3420== Releasing lock... [2025-04-10 08:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 08:47:23] Production.INFO: 33 MB #Memory Used# [2025-04-10 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 05:48:05 [end_date_ymd] => 2025-04-10 08:48:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 05:48:05' and `end` < '2025-04-10 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-04-10 08:48:18] Production.INFO: count ==558 [2025-04-10 08:48:18] Production.ERROR: pbx CDR StartTime 2025-04-10 05:48:05 - End Time 2025-04-10 08:48:05 [2025-04-10 08:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875759', 'tblTempUsageDetail_20' ) start [2025-04-10 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875759', 'tblTempUsageDetail_20' ) end [2025-04-10 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875759', 'tblTempVendorCDR_20' ) start [2025-04-10 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875759', 'tblTempVendorCDR_20' ) end [2025-04-10 08:48:18] Production.INFO: ProcessCDR(1,14875759,1,1,2) [2025-04-10 08:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875759', 'tblTempUsageDetail_20' ) start [2025-04-10 08:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875759', 'tblTempUsageDetail_20' ) end [2025-04-10 08:48:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 08:48:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 08:48:23] Production.INFO: ==3497== Releasing lock... [2025-04-10 08:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 08:48:23] Production.INFO: 33 MB #Memory Used# [2025-04-10 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 05:49:05 [end_date_ymd] => 2025-04-10 08:49:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 05:49:05' and `end` < '2025-04-10 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-04-10 08:49:18] Production.INFO: count ==560 [2025-04-10 08:49:18] Production.ERROR: pbx CDR StartTime 2025-04-10 05:49:05 - End Time 2025-04-10 08:49:05 [2025-04-10 08:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875764', 'tblTempUsageDetail_20' ) start [2025-04-10 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875764', 'tblTempUsageDetail_20' ) end [2025-04-10 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875764', 'tblTempVendorCDR_20' ) start [2025-04-10 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875764', 'tblTempVendorCDR_20' ) end [2025-04-10 08:49:18] Production.INFO: ProcessCDR(1,14875764,1,1,2) [2025-04-10 08:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875764', 'tblTempUsageDetail_20' ) start [2025-04-10 08:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875764', 'tblTempUsageDetail_20' ) end [2025-04-10 08:49:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 08:49:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 08:49:23] Production.INFO: ==3570== Releasing lock... [2025-04-10 08:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 08:49:23] Production.INFO: 33 MB #Memory Used# [2025-04-10 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 05:50:06 [end_date_ymd] => 2025-04-10 08:50:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 05:50:06' and `end` < '2025-04-10 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-04-10 08:50:19] Production.INFO: count ==569 [2025-04-10 08:50:19] Production.ERROR: pbx CDR StartTime 2025-04-10 05:50:06 - End Time 2025-04-10 08:50:06 [2025-04-10 08:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875769', 'tblTempUsageDetail_20' ) start [2025-04-10 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875769', 'tblTempUsageDetail_20' ) end [2025-04-10 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875769', 'tblTempVendorCDR_20' ) start [2025-04-10 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875769', 'tblTempVendorCDR_20' ) end [2025-04-10 08:50:19] Production.INFO: ProcessCDR(1,14875769,1,1,2) [2025-04-10 08:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875769', 'tblTempUsageDetail_20' ) start [2025-04-10 08:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875769', 'tblTempUsageDetail_20' ) end [2025-04-10 08:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 08:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 08:50:24] Production.INFO: ==3642== Releasing lock... [2025-04-10 08:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 08:50:24] Production.INFO: 32.5 MB #Memory Used# [2025-04-10 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 05:51:05 [end_date_ymd] => 2025-04-10 08:51:05 [RateCDR] => 1 ) [2025-04-10 08:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 05:51:05' and `end` < '2025-04-10 08: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-04-10 08:51:17] Production.INFO: count ==592 [2025-04-10 08:51:18] Production.ERROR: pbx CDR StartTime 2025-04-10 05:51:05 - End Time 2025-04-10 08:51:05 [2025-04-10 08:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875775', 'tblTempUsageDetail_20' ) start [2025-04-10 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875775', 'tblTempUsageDetail_20' ) end [2025-04-10 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875775', 'tblTempVendorCDR_20' ) start [2025-04-10 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875775', 'tblTempVendorCDR_20' ) end [2025-04-10 08:51:18] Production.INFO: ProcessCDR(1,14875775,1,1,2) [2025-04-10 08:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875775', 'tblTempUsageDetail_20' ) start [2025-04-10 08:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875775', 'tblTempUsageDetail_20' ) end [2025-04-10 08:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 08:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 08:51:21] Production.INFO: ==3725== Releasing lock... [2025-04-10 08:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 08:51:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-10 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 05:52:05 [end_date_ymd] => 2025-04-10 08:52:05 [RateCDR] => 1 ) [2025-04-10 08:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 05:52:05' and `end` < '2025-04-10 08:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 08:52:18] Production.INFO: count ==599 [2025-04-10 08:52:18] Production.ERROR: pbx CDR StartTime 2025-04-10 05:52:05 - End Time 2025-04-10 08:52:05 [2025-04-10 08:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875780', 'tblTempUsageDetail_20' ) start [2025-04-10 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875780', 'tblTempUsageDetail_20' ) end [2025-04-10 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875780', 'tblTempVendorCDR_20' ) start [2025-04-10 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875780', 'tblTempVendorCDR_20' ) end [2025-04-10 08:52:18] Production.INFO: ProcessCDR(1,14875780,1,1,2) [2025-04-10 08:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875780', 'tblTempUsageDetail_20' ) start [2025-04-10 08:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875780', 'tblTempUsageDetail_20' ) end [2025-04-10 08:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 08:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 08:52:24] Production.INFO: ==3799== Releasing lock... [2025-04-10 08:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 08:52:24] Production.INFO: 32.75 MB #Memory Used# [2025-04-10 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 05:53:05 [end_date_ymd] => 2025-04-10 08:53:05 [RateCDR] => 1 ) [2025-04-10 08:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 05:53:05' and `end` < '2025-04-10 08:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 08:53:18] Production.INFO: count ==607 [2025-04-10 08:53:18] Production.ERROR: pbx CDR StartTime 2025-04-10 05:53:05 - End Time 2025-04-10 08:53:05 [2025-04-10 08:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875785', 'tblTempUsageDetail_20' ) start [2025-04-10 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875785', 'tblTempUsageDetail_20' ) end [2025-04-10 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875785', 'tblTempVendorCDR_20' ) start [2025-04-10 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875785', 'tblTempVendorCDR_20' ) end [2025-04-10 08:53:18] Production.INFO: ProcessCDR(1,14875785,1,1,2) [2025-04-10 08:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875785', 'tblTempUsageDetail_20' ) start [2025-04-10 08:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875785', 'tblTempUsageDetail_20' ) end [2025-04-10 08:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 08:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 08:53:23] Production.INFO: ==3876== Releasing lock... [2025-04-10 08:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 08:53:23] Production.INFO: 33.5 MB #Memory Used# [2025-04-10 08:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 05:54:05 [end_date_ymd] => 2025-04-10 08:54:05 [RateCDR] => 1 ) [2025-04-10 08:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 05:54:05' and `end` < '2025-04-10 08:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 08:54:18] Production.INFO: count ==614 [2025-04-10 08:54:18] Production.ERROR: pbx CDR StartTime 2025-04-10 05:54:05 - End Time 2025-04-10 08:54:05 [2025-04-10 08:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875790', 'tblTempUsageDetail_20' ) start [2025-04-10 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875790', 'tblTempUsageDetail_20' ) end [2025-04-10 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875790', 'tblTempVendorCDR_20' ) start [2025-04-10 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875790', 'tblTempVendorCDR_20' ) end [2025-04-10 08:54:18] Production.INFO: ProcessCDR(1,14875790,1,1,2) [2025-04-10 08:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875790', 'tblTempUsageDetail_20' ) start [2025-04-10 08:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875790', 'tblTempUsageDetail_20' ) end [2025-04-10 08:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 08:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 08:54:23] Production.INFO: ==3953== Releasing lock... [2025-04-10 08:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 08:54:23] Production.INFO: 33.25 MB #Memory Used# [2025-04-10 08:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 05:55:06 [end_date_ymd] => 2025-04-10 08:55:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 05:55:06' and `end` < '2025-04-10 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-04-10 08:55:19] Production.INFO: count ==619 [2025-04-10 08:55:19] Production.ERROR: pbx CDR StartTime 2025-04-10 05:55:06 - End Time 2025-04-10 08:55:06 [2025-04-10 08:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875795', 'tblTempUsageDetail_20' ) start [2025-04-10 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875795', 'tblTempUsageDetail_20' ) end [2025-04-10 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875795', 'tblTempVendorCDR_20' ) start [2025-04-10 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875795', 'tblTempVendorCDR_20' ) end [2025-04-10 08:55:19] Production.INFO: ProcessCDR(1,14875795,1,1,2) [2025-04-10 08:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875795', 'tblTempUsageDetail_20' ) start [2025-04-10 08:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875795', 'tblTempUsageDetail_20' ) end [2025-04-10 08:55:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 08:55:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 08:55:24] Production.INFO: ==4025== Releasing lock... [2025-04-10 08:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 08:55:24] Production.INFO: 33.5 MB #Memory Used# [2025-04-10 08:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 05:56:06 [end_date_ymd] => 2025-04-10 08:56:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 05:56:06' and `end` < '2025-04-10 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-04-10 08:56:19] Production.INFO: count ==621 [2025-04-10 08:56:19] Production.ERROR: pbx CDR StartTime 2025-04-10 05:56:06 - End Time 2025-04-10 08:56:06 [2025-04-10 08:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875800', 'tblTempUsageDetail_20' ) start [2025-04-10 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875800', 'tblTempUsageDetail_20' ) end [2025-04-10 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875800', 'tblTempVendorCDR_20' ) start [2025-04-10 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875800', 'tblTempVendorCDR_20' ) end [2025-04-10 08:56:19] Production.INFO: ProcessCDR(1,14875800,1,1,2) [2025-04-10 08:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875800', 'tblTempUsageDetail_20' ) start [2025-04-10 08:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875800', 'tblTempUsageDetail_20' ) end [2025-04-10 08:56:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 08:56:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 08:56:24] Production.INFO: ==4097== Releasing lock... [2025-04-10 08:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 08:56:24] Production.INFO: 33.5 MB #Memory Used# [2025-04-10 08:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 05:57:04 [end_date_ymd] => 2025-04-10 08:57:04 [RateCDR] => 1 ) [2025-04-10 08: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-04-10 05:57:04' and `end` < '2025-04-10 08: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-04-10 08:57:17] Production.INFO: count ==622 [2025-04-10 08:57:17] Production.ERROR: pbx CDR StartTime 2025-04-10 05:57:04 - End Time 2025-04-10 08:57:04 [2025-04-10 08:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875805', 'tblTempUsageDetail_20' ) start [2025-04-10 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875805', 'tblTempUsageDetail_20' ) end [2025-04-10 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875805', 'tblTempVendorCDR_20' ) start [2025-04-10 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875805', 'tblTempVendorCDR_20' ) end [2025-04-10 08:57:17] Production.INFO: ProcessCDR(1,14875805,1,1,2) [2025-04-10 08:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875805', 'tblTempUsageDetail_20' ) start [2025-04-10 08:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875805', 'tblTempUsageDetail_20' ) end [2025-04-10 08:57:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 08:57:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 08:57:23] Production.INFO: ==4213== Releasing lock... [2025-04-10 08:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 08:57:23] Production.INFO: 33.25 MB #Memory Used# [2025-04-10 08:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 05:58:06 [end_date_ymd] => 2025-04-10 08:58:06 [RateCDR] => 1 ) [2025-04-10 08:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 05:58:06' and `end` < '2025-04-10 08:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 08:58:19] Production.INFO: count ==629 [2025-04-10 08:58:19] Production.ERROR: pbx CDR StartTime 2025-04-10 05:58:06 - End Time 2025-04-10 08:58:06 [2025-04-10 08:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875810', 'tblTempUsageDetail_20' ) start [2025-04-10 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875810', 'tblTempUsageDetail_20' ) end [2025-04-10 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875810', 'tblTempVendorCDR_20' ) start [2025-04-10 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875810', 'tblTempVendorCDR_20' ) end [2025-04-10 08:58:19] Production.INFO: ProcessCDR(1,14875810,1,1,2) [2025-04-10 08:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875810', 'tblTempUsageDetail_20' ) start [2025-04-10 08:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875810', 'tblTempUsageDetail_20' ) end [2025-04-10 08:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 08:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 08:58:22] Production.INFO: ==4294== Releasing lock... [2025-04-10 08:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 08:58:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-10 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 05:59:05 [end_date_ymd] => 2025-04-10 08:59:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 05:59:05' and `end` < '2025-04-10 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-04-10 08:59:18] Production.INFO: count ==629 [2025-04-10 08:59:18] Production.ERROR: pbx CDR StartTime 2025-04-10 05:59:05 - End Time 2025-04-10 08:59:05 [2025-04-10 08:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875815', 'tblTempUsageDetail_20' ) start [2025-04-10 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875815', 'tblTempUsageDetail_20' ) end [2025-04-10 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875815', 'tblTempVendorCDR_20' ) start [2025-04-10 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875815', 'tblTempVendorCDR_20' ) end [2025-04-10 08:59:18] Production.INFO: ProcessCDR(1,14875815,1,1,2) [2025-04-10 08:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 08:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 08:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875815', 'tblTempUsageDetail_20' ) start [2025-04-10 08:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875815', 'tblTempUsageDetail_20' ) end [2025-04-10 08:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 08:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 08:59:21] Production.INFO: ==4367== Releasing lock... [2025-04-10 08:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 08:59:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-10 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 06:00:06 [end_date_ymd] => 2025-04-10 09:00:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 06:00:06' and `end` < '2025-04-10 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-04-10 09:00:19] Production.INFO: count ==637 [2025-04-10 09:00:19] Production.ERROR: pbx CDR StartTime 2025-04-10 06:00:06 - End Time 2025-04-10 09:00:06 [2025-04-10 09:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875821', 'tblTempUsageDetail_20' ) start [2025-04-10 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875821', 'tblTempUsageDetail_20' ) end [2025-04-10 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875821', 'tblTempVendorCDR_20' ) start [2025-04-10 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875821', 'tblTempVendorCDR_20' ) end [2025-04-10 09:00:19] Production.INFO: ProcessCDR(1,14875821,1,1,2) [2025-04-10 09:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875821', 'tblTempUsageDetail_20' ) start [2025-04-10 09:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875821', 'tblTempUsageDetail_20' ) end [2025-04-10 09:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 09:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 09:00:22] Production.INFO: ==4444== Releasing lock... [2025-04-10 09:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 09:00:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-10 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 06:01:05 [end_date_ymd] => 2025-04-10 09:01:05 [RateCDR] => 1 ) [2025-04-10 09:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 06:01:05' and `end` < '2025-04-10 09:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 09:01:18] Production.INFO: count ==665 [2025-04-10 09:01:18] Production.ERROR: pbx CDR StartTime 2025-04-10 06:01:05 - End Time 2025-04-10 09:01:05 [2025-04-10 09:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875826', 'tblTempUsageDetail_20' ) start [2025-04-10 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875826', 'tblTempUsageDetail_20' ) end [2025-04-10 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875826', 'tblTempVendorCDR_20' ) start [2025-04-10 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875826', 'tblTempVendorCDR_20' ) end [2025-04-10 09:01:18] Production.INFO: ProcessCDR(1,14875826,1,1,2) [2025-04-10 09:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875826', 'tblTempUsageDetail_20' ) start [2025-04-10 09:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875826', 'tblTempUsageDetail_20' ) end [2025-04-10 09:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 09:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 09:01:21] Production.INFO: ==4538== Releasing lock... [2025-04-10 09:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 09:01:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-10 09:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 06:02:05 [end_date_ymd] => 2025-04-10 09:02:05 [RateCDR] => 1 ) [2025-04-10 09:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 06:02:05' and `end` < '2025-04-10 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-04-10 09:02:19] Production.INFO: count ==678 [2025-04-10 09:02:19] Production.ERROR: pbx CDR StartTime 2025-04-10 06:02:05 - End Time 2025-04-10 09:02:05 [2025-04-10 09:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875831', 'tblTempUsageDetail_20' ) start [2025-04-10 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875831', 'tblTempUsageDetail_20' ) end [2025-04-10 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875831', 'tblTempVendorCDR_20' ) start [2025-04-10 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875831', 'tblTempVendorCDR_20' ) end [2025-04-10 09:02:19] Production.INFO: ProcessCDR(1,14875831,1,1,2) [2025-04-10 09:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875831', 'tblTempUsageDetail_20' ) start [2025-04-10 09:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875831', 'tblTempUsageDetail_20' ) end [2025-04-10 09:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 09:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 09:02:22] Production.INFO: ==4621== Releasing lock... [2025-04-10 09:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 09:02:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-10 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 06:03:05 [end_date_ymd] => 2025-04-10 09:03:05 [RateCDR] => 1 ) [2025-04-10 09:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 06:03:05' and `end` < '2025-04-10 09:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 09:03:18] Production.INFO: count ==692 [2025-04-10 09:03:18] Production.ERROR: pbx CDR StartTime 2025-04-10 06:03:05 - End Time 2025-04-10 09:03:05 [2025-04-10 09:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875836', 'tblTempUsageDetail_20' ) start [2025-04-10 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875836', 'tblTempUsageDetail_20' ) end [2025-04-10 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875836', 'tblTempVendorCDR_20' ) start [2025-04-10 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875836', 'tblTempVendorCDR_20' ) end [2025-04-10 09:03:18] Production.INFO: ProcessCDR(1,14875836,1,1,2) [2025-04-10 09:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875836', 'tblTempUsageDetail_20' ) start [2025-04-10 09:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875836', 'tblTempUsageDetail_20' ) end [2025-04-10 09:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 09:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 09:03:22] Production.INFO: ==4697== Releasing lock... [2025-04-10 09:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 09:03:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-10 09:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 06:04:05 [end_date_ymd] => 2025-04-10 09:04:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 06:04:05' and `end` < '2025-04-10 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-04-10 09:04:18] Production.INFO: count ==714 [2025-04-10 09:04:19] Production.ERROR: pbx CDR StartTime 2025-04-10 06:04:05 - End Time 2025-04-10 09:04:05 [2025-04-10 09:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875841', 'tblTempUsageDetail_20' ) start [2025-04-10 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875841', 'tblTempUsageDetail_20' ) end [2025-04-10 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875841', 'tblTempVendorCDR_20' ) start [2025-04-10 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875841', 'tblTempVendorCDR_20' ) end [2025-04-10 09:04:19] Production.INFO: ProcessCDR(1,14875841,1,1,2) [2025-04-10 09:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875841', 'tblTempUsageDetail_20' ) start [2025-04-10 09:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875841', 'tblTempUsageDetail_20' ) end [2025-04-10 09:04:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 09:04:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 09:04:24] Production.INFO: ==4770== Releasing lock... [2025-04-10 09:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 09:04:24] Production.INFO: 33.25 MB #Memory Used# [2025-04-10 09:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 06:05:05 [end_date_ymd] => 2025-04-10 09:05:05 [RateCDR] => 1 ) [2025-04-10 09:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 06:05:05' and `end` < '2025-04-10 09:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 09:05:18] Production.INFO: count ==730 [2025-04-10 09:05:18] Production.ERROR: pbx CDR StartTime 2025-04-10 06:05:05 - End Time 2025-04-10 09:05:05 [2025-04-10 09:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875846', 'tblTempUsageDetail_20' ) start [2025-04-10 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875846', 'tblTempUsageDetail_20' ) end [2025-04-10 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875846', 'tblTempVendorCDR_20' ) start [2025-04-10 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875846', 'tblTempVendorCDR_20' ) end [2025-04-10 09:05:18] Production.INFO: ProcessCDR(1,14875846,1,1,2) [2025-04-10 09:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875846', 'tblTempUsageDetail_20' ) start [2025-04-10 09:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875846', 'tblTempUsageDetail_20' ) end [2025-04-10 09:05:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 09:05:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 09:05:24] Production.INFO: ==4855== Releasing lock... [2025-04-10 09:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 09:05:24] Production.INFO: 33.75 MB #Memory Used# [2025-04-10 09:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 06:06:06 [end_date_ymd] => 2025-04-10 09:06:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 06:06:06' and `end` < '2025-04-10 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-04-10 09:06:19] Production.INFO: count ==747 [2025-04-10 09:06:19] Production.ERROR: pbx CDR StartTime 2025-04-10 06:06:06 - End Time 2025-04-10 09:06:06 [2025-04-10 09:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875851', 'tblTempUsageDetail_20' ) start [2025-04-10 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875851', 'tblTempUsageDetail_20' ) end [2025-04-10 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875851', 'tblTempVendorCDR_20' ) start [2025-04-10 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875851', 'tblTempVendorCDR_20' ) end [2025-04-10 09:06:19] Production.INFO: ProcessCDR(1,14875851,1,1,2) [2025-04-10 09:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875851', 'tblTempUsageDetail_20' ) start [2025-04-10 09:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875851', 'tblTempUsageDetail_20' ) end [2025-04-10 09:06:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 09:06:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 09:06:25] Production.INFO: ==4928== Releasing lock... [2025-04-10 09:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 09:06:25] Production.INFO: 33.75 MB #Memory Used# [2025-04-10 09:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 06:07:05 [end_date_ymd] => 2025-04-10 09:07:05 [RateCDR] => 1 ) [2025-04-10 09:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 06:07:05' and `end` < '2025-04-10 09:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 09:07:18] Production.INFO: count ==763 [2025-04-10 09:07:18] Production.ERROR: pbx CDR StartTime 2025-04-10 06:07:05 - End Time 2025-04-10 09:07:05 [2025-04-10 09:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875856', 'tblTempUsageDetail_20' ) start [2025-04-10 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875856', 'tblTempUsageDetail_20' ) end [2025-04-10 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875856', 'tblTempVendorCDR_20' ) start [2025-04-10 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875856', 'tblTempVendorCDR_20' ) end [2025-04-10 09:07:18] Production.INFO: ProcessCDR(1,14875856,1,1,2) [2025-04-10 09:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875856', 'tblTempUsageDetail_20' ) start [2025-04-10 09:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875856', 'tblTempUsageDetail_20' ) end [2025-04-10 09:07:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 09:07:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 09:07:24] Production.INFO: ==5002== Releasing lock... [2025-04-10 09:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 09:07:24] Production.INFO: 33.75 MB #Memory Used# [2025-04-10 09:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 06:08:06 [end_date_ymd] => 2025-04-10 09:08:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 06:08:06' and `end` < '2025-04-10 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-04-10 09:08:19] Production.INFO: count ==766 [2025-04-10 09:08:19] Production.ERROR: pbx CDR StartTime 2025-04-10 06:08:06 - End Time 2025-04-10 09:08:06 [2025-04-10 09:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875861', 'tblTempUsageDetail_20' ) start [2025-04-10 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875861', 'tblTempUsageDetail_20' ) end [2025-04-10 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875861', 'tblTempVendorCDR_20' ) start [2025-04-10 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875861', 'tblTempVendorCDR_20' ) end [2025-04-10 09:08:19] Production.INFO: ProcessCDR(1,14875861,1,1,2) [2025-04-10 09:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875861', 'tblTempUsageDetail_20' ) start [2025-04-10 09:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875861', 'tblTempUsageDetail_20' ) end [2025-04-10 09:08:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 09:08:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 09:08:25] Production.INFO: ==5081== Releasing lock... [2025-04-10 09:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 09:08:25] Production.INFO: 34 MB #Memory Used# [2025-04-10 09:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 06:09:05 [end_date_ymd] => 2025-04-10 09:09:05 [RateCDR] => 1 ) [2025-04-10 09:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 06:09:05' and `end` < '2025-04-10 09:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 09:09:18] Production.INFO: count ==792 [2025-04-10 09:09:18] Production.ERROR: pbx CDR StartTime 2025-04-10 06:09:05 - End Time 2025-04-10 09:09:05 [2025-04-10 09:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875866', 'tblTempUsageDetail_20' ) start [2025-04-10 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875866', 'tblTempUsageDetail_20' ) end [2025-04-10 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875866', 'tblTempVendorCDR_20' ) start [2025-04-10 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875866', 'tblTempVendorCDR_20' ) end [2025-04-10 09:09:18] Production.INFO: ProcessCDR(1,14875866,1,1,2) [2025-04-10 09:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875866', 'tblTempUsageDetail_20' ) start [2025-04-10 09:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875866', 'tblTempUsageDetail_20' ) end [2025-04-10 09:09:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 09:09:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 09:09:24] Production.INFO: ==5158== Releasing lock... [2025-04-10 09:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 09:09:24] Production.INFO: 34.75 MB #Memory Used# [2025-04-10 09:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 06:10:06 [end_date_ymd] => 2025-04-10 09:10:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 06:10:06' and `end` < '2025-04-10 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-04-10 09:10:19] Production.INFO: count ==801 [2025-04-10 09:10:19] Production.ERROR: pbx CDR StartTime 2025-04-10 06:10:06 - End Time 2025-04-10 09:10:06 [2025-04-10 09:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875871', 'tblTempUsageDetail_20' ) start [2025-04-10 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875871', 'tblTempUsageDetail_20' ) end [2025-04-10 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875871', 'tblTempVendorCDR_20' ) start [2025-04-10 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875871', 'tblTempVendorCDR_20' ) end [2025-04-10 09:10:20] Production.INFO: ProcessCDR(1,14875871,1,1,2) [2025-04-10 09:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875871', 'tblTempUsageDetail_20' ) start [2025-04-10 09:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875871', 'tblTempUsageDetail_20' ) end [2025-04-10 09:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 09:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 09:10:24] Production.INFO: ==5237== Releasing lock... [2025-04-10 09:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 09:10:24] Production.INFO: 34.5 MB #Memory Used# [2025-04-10 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 06:11:05 [end_date_ymd] => 2025-04-10 09:11:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 06:11:05' and `end` < '2025-04-10 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-04-10 09:11:18] Production.INFO: count ==867 [2025-04-10 09:11:18] Production.ERROR: pbx CDR StartTime 2025-04-10 06:11:05 - End Time 2025-04-10 09:11:05 [2025-04-10 09:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875877', 'tblTempUsageDetail_20' ) start [2025-04-10 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875877', 'tblTempUsageDetail_20' ) end [2025-04-10 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875877', 'tblTempVendorCDR_20' ) start [2025-04-10 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875877', 'tblTempVendorCDR_20' ) end [2025-04-10 09:11:18] Production.INFO: ProcessCDR(1,14875877,1,1,2) [2025-04-10 09:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875877', 'tblTempUsageDetail_20' ) start [2025-04-10 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875877', 'tblTempUsageDetail_20' ) end [2025-04-10 09:11:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 09:11:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 09:11:24] Production.INFO: ==5312== Releasing lock... [2025-04-10 09:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 09:11:24] Production.INFO: 34.5 MB #Memory Used# [2025-04-10 09:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 06:12:06 [end_date_ymd] => 2025-04-10 09:12:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 06:12:06' and `end` < '2025-04-10 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-04-10 09:12:19] Production.INFO: count ==872 [2025-04-10 09:12:19] Production.ERROR: pbx CDR StartTime 2025-04-10 06:12:06 - End Time 2025-04-10 09:12:06 [2025-04-10 09:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875882', 'tblTempUsageDetail_20' ) start [2025-04-10 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875882', 'tblTempUsageDetail_20' ) end [2025-04-10 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875882', 'tblTempVendorCDR_20' ) start [2025-04-10 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875882', 'tblTempVendorCDR_20' ) end [2025-04-10 09:12:19] Production.INFO: ProcessCDR(1,14875882,1,1,2) [2025-04-10 09:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875882', 'tblTempUsageDetail_20' ) start [2025-04-10 09:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875882', 'tblTempUsageDetail_20' ) end [2025-04-10 09:12:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 09:12:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 09:12:25] Production.INFO: ==5391== Releasing lock... [2025-04-10 09:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 09:12:25] Production.INFO: 35.25 MB #Memory Used# [2025-04-10 09:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 06:13:05 [end_date_ymd] => 2025-04-10 09:13:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 06:13:05' and `end` < '2025-04-10 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-04-10 09:13:18] Production.INFO: count ==877 [2025-04-10 09:13:18] Production.ERROR: pbx CDR StartTime 2025-04-10 06:13:05 - End Time 2025-04-10 09:13:05 [2025-04-10 09:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875887', 'tblTempUsageDetail_20' ) start [2025-04-10 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875887', 'tblTempUsageDetail_20' ) end [2025-04-10 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875887', 'tblTempVendorCDR_20' ) start [2025-04-10 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875887', 'tblTempVendorCDR_20' ) end [2025-04-10 09:13:18] Production.INFO: ProcessCDR(1,14875887,1,1,2) [2025-04-10 09:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875887', 'tblTempUsageDetail_20' ) start [2025-04-10 09:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875887', 'tblTempUsageDetail_20' ) end [2025-04-10 09:13:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 09:13:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 09:13:24] Production.INFO: ==5505== Releasing lock... [2025-04-10 09:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 09:13:24] Production.INFO: 35.5 MB #Memory Used# [2025-04-10 09:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 06:14:06 [end_date_ymd] => 2025-04-10 09:14:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 06:14:06' and `end` < '2025-04-10 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-04-10 09:14:19] Production.INFO: count ==886 [2025-04-10 09:14:19] Production.ERROR: pbx CDR StartTime 2025-04-10 06:14:06 - End Time 2025-04-10 09:14:06 [2025-04-10 09:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875892', 'tblTempUsageDetail_20' ) start [2025-04-10 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875892', 'tblTempUsageDetail_20' ) end [2025-04-10 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875892', 'tblTempVendorCDR_20' ) start [2025-04-10 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875892', 'tblTempVendorCDR_20' ) end [2025-04-10 09:14:19] Production.INFO: ProcessCDR(1,14875892,1,1,2) [2025-04-10 09:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875892', 'tblTempUsageDetail_20' ) start [2025-04-10 09:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875892', 'tblTempUsageDetail_20' ) end [2025-04-10 09:14:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 09:14:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 09:14:24] Production.INFO: ==5583== Releasing lock... [2025-04-10 09:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 09:14:24] Production.INFO: 34.5 MB #Memory Used# [2025-04-10 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 06:15:05 [end_date_ymd] => 2025-04-10 09:15:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 06:15:05' and `end` < '2025-04-10 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-04-10 09:15:18] Production.INFO: count ==904 [2025-04-10 09:15:18] Production.ERROR: pbx CDR StartTime 2025-04-10 06:15:05 - End Time 2025-04-10 09:15:05 [2025-04-10 09:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875897', 'tblTempUsageDetail_20' ) start [2025-04-10 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875897', 'tblTempUsageDetail_20' ) end [2025-04-10 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875897', 'tblTempVendorCDR_20' ) start [2025-04-10 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875897', 'tblTempVendorCDR_20' ) end [2025-04-10 09:15:18] Production.INFO: ProcessCDR(1,14875897,1,1,2) [2025-04-10 09:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875897', 'tblTempUsageDetail_20' ) start [2025-04-10 09:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875897', 'tblTempUsageDetail_20' ) end [2025-04-10 09:15:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 09:15:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 09:15:24] Production.INFO: ==5656== Releasing lock... [2025-04-10 09:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 09:15:24] Production.INFO: 35 MB #Memory Used# [2025-04-10 09:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 06:16:06 [end_date_ymd] => 2025-04-10 09:16:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 06:16:06' and `end` < '2025-04-10 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-04-10 09:16:19] Production.INFO: count ==905 [2025-04-10 09:16:20] Production.ERROR: pbx CDR StartTime 2025-04-10 06:16:06 - End Time 2025-04-10 09:16:06 [2025-04-10 09:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 09:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875902', 'tblTempUsageDetail_20' ) start [2025-04-10 09:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875902', 'tblTempUsageDetail_20' ) end [2025-04-10 09:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875902', 'tblTempVendorCDR_20' ) start [2025-04-10 09:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875902', 'tblTempVendorCDR_20' ) end [2025-04-10 09:16:20] Production.INFO: ProcessCDR(1,14875902,1,1,2) [2025-04-10 09:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875902', 'tblTempUsageDetail_20' ) start [2025-04-10 09:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875902', 'tblTempUsageDetail_20' ) end [2025-04-10 09:16:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 09:16:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 09:16:23] Production.INFO: ==5736== Releasing lock... [2025-04-10 09:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 09:16:23] Production.INFO: 34.75 MB #Memory Used# [2025-04-10 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 06:17:05 [end_date_ymd] => 2025-04-10 09:17:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 06:17:05' and `end` < '2025-04-10 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-04-10 09:17:18] Production.INFO: count ==918 [2025-04-10 09:17:18] Production.ERROR: pbx CDR StartTime 2025-04-10 06:17:05 - End Time 2025-04-10 09:17:05 [2025-04-10 09:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875907', 'tblTempUsageDetail_20' ) start [2025-04-10 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875907', 'tblTempUsageDetail_20' ) end [2025-04-10 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875907', 'tblTempVendorCDR_20' ) start [2025-04-10 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875907', 'tblTempVendorCDR_20' ) end [2025-04-10 09:17:19] Production.INFO: ProcessCDR(1,14875907,1,1,2) [2025-04-10 09:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875907', 'tblTempUsageDetail_20' ) start [2025-04-10 09:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875907', 'tblTempUsageDetail_20' ) end [2025-04-10 09:17:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 09:17:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 09:17:24] Production.INFO: ==5811== Releasing lock... [2025-04-10 09:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 09:17:24] Production.INFO: 35.25 MB #Memory Used# [2025-04-10 09:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 06:18:05 [end_date_ymd] => 2025-04-10 09:18:05 [RateCDR] => 1 ) [2025-04-10 09:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 06:18:05' and `end` < '2025-04-10 09:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 09:18:19] Production.INFO: count ==927 [2025-04-10 09:18:19] Production.ERROR: pbx CDR StartTime 2025-04-10 06:18:05 - End Time 2025-04-10 09:18:05 [2025-04-10 09:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875912', 'tblTempUsageDetail_20' ) start [2025-04-10 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875912', 'tblTempUsageDetail_20' ) end [2025-04-10 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875912', 'tblTempVendorCDR_20' ) start [2025-04-10 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875912', 'tblTempVendorCDR_20' ) end [2025-04-10 09:18:19] Production.INFO: ProcessCDR(1,14875912,1,1,2) [2025-04-10 09:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875912', 'tblTempUsageDetail_20' ) start [2025-04-10 09:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875912', 'tblTempUsageDetail_20' ) end [2025-04-10 09:18:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 09:18:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 09:18:24] Production.INFO: ==5908== Releasing lock... [2025-04-10 09:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 09:18:24] Production.INFO: 35.25 MB #Memory Used# [2025-04-10 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 06:19:05 [end_date_ymd] => 2025-04-10 09:19:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 06:19:05' and `end` < '2025-04-10 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-04-10 09:19:18] Production.INFO: count ==951 [2025-04-10 09:19:18] Production.ERROR: pbx CDR StartTime 2025-04-10 06:19:05 - End Time 2025-04-10 09:19:05 [2025-04-10 09:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875917', 'tblTempUsageDetail_20' ) start [2025-04-10 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875917', 'tblTempUsageDetail_20' ) end [2025-04-10 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875917', 'tblTempVendorCDR_20' ) start [2025-04-10 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875917', 'tblTempVendorCDR_20' ) end [2025-04-10 09:19:18] Production.INFO: ProcessCDR(1,14875917,1,1,2) [2025-04-10 09:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875917', 'tblTempUsageDetail_20' ) start [2025-04-10 09:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875917', 'tblTempUsageDetail_20' ) end [2025-04-10 09:19:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 09:19:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 09:19:23] Production.INFO: ==5982== Releasing lock... [2025-04-10 09:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 09:19:23] Production.INFO: 36.5 MB #Memory Used# [2025-04-10 09:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 06:20:06 [end_date_ymd] => 2025-04-10 09:20:06 [RateCDR] => 1 ) [2025-04-10 09:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 06:20:06' and `end` < '2025-04-10 09:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 09:20:19] Production.INFO: count ==960 [2025-04-10 09:20:19] Production.ERROR: pbx CDR StartTime 2025-04-10 06:20:06 - End Time 2025-04-10 09:20:06 [2025-04-10 09:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875922', 'tblTempUsageDetail_20' ) start [2025-04-10 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875922', 'tblTempUsageDetail_20' ) end [2025-04-10 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875922', 'tblTempVendorCDR_20' ) start [2025-04-10 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875922', 'tblTempVendorCDR_20' ) end [2025-04-10 09:20:19] Production.INFO: ProcessCDR(1,14875922,1,1,2) [2025-04-10 09:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875922', 'tblTempUsageDetail_20' ) start [2025-04-10 09:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875922', 'tblTempUsageDetail_20' ) end [2025-04-10 09:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 09:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 09:20:22] Production.INFO: ==6059== Releasing lock... [2025-04-10 09:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 09:20:22] Production.INFO: 36 MB #Memory Used# [2025-04-10 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 06:21:05 [end_date_ymd] => 2025-04-10 09:21:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 06:21:05' and `end` < '2025-04-10 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-04-10 09:21:18] Production.INFO: count ==1066 [2025-04-10 09:21:19] Production.ERROR: pbx CDR StartTime 2025-04-10 06:21:05 - End Time 2025-04-10 09:21:05 [2025-04-10 09:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875928', 'tblTempUsageDetail_20' ) start [2025-04-10 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875928', 'tblTempUsageDetail_20' ) end [2025-04-10 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875928', 'tblTempVendorCDR_20' ) start [2025-04-10 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875928', 'tblTempVendorCDR_20' ) end [2025-04-10 09:21:19] Production.INFO: ProcessCDR(1,14875928,1,1,2) [2025-04-10 09:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875928', 'tblTempUsageDetail_20' ) start [2025-04-10 09:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875928', 'tblTempUsageDetail_20' ) end [2025-04-10 09:21:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 09:21:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 09:21:24] Production.INFO: ==6139== Releasing lock... [2025-04-10 09:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 09:21:24] Production.INFO: 36.25 MB #Memory Used# [2025-04-10 09:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 06:22:05 [end_date_ymd] => 2025-04-10 09:22:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 06:22:05' and `end` < '2025-04-10 09:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 09:22:19] Production.INFO: count ==1072 [2025-04-10 09:22:19] Production.ERROR: pbx CDR StartTime 2025-04-10 06:22:05 - End Time 2025-04-10 09:22:05 [2025-04-10 09:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875933', 'tblTempUsageDetail_20' ) start [2025-04-10 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875933', 'tblTempUsageDetail_20' ) end [2025-04-10 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875933', 'tblTempVendorCDR_20' ) start [2025-04-10 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875933', 'tblTempVendorCDR_20' ) end [2025-04-10 09:22:19] Production.INFO: ProcessCDR(1,14875933,1,1,2) [2025-04-10 09:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875933', 'tblTempUsageDetail_20' ) start [2025-04-10 09:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875933', 'tblTempUsageDetail_20' ) end [2025-04-10 09:22:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 09:22:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 09:22:24] Production.INFO: ==6218== Releasing lock... [2025-04-10 09:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 09:22:24] Production.INFO: 36.75 MB #Memory Used# [2025-04-10 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 06:23:05 [end_date_ymd] => 2025-04-10 09:23:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 06:23:05' and `end` < '2025-04-10 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-04-10 09:23:18] Production.INFO: count ==1102 [2025-04-10 09:23:18] Production.ERROR: pbx CDR StartTime 2025-04-10 06:23:05 - End Time 2025-04-10 09:23:05 [2025-04-10 09:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875938', 'tblTempUsageDetail_20' ) start [2025-04-10 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875938', 'tblTempUsageDetail_20' ) end [2025-04-10 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875938', 'tblTempVendorCDR_20' ) start [2025-04-10 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875938', 'tblTempVendorCDR_20' ) end [2025-04-10 09:23:18] Production.INFO: ProcessCDR(1,14875938,1,1,2) [2025-04-10 09:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875938', 'tblTempUsageDetail_20' ) start [2025-04-10 09:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875938', 'tblTempUsageDetail_20' ) end [2025-04-10 09:23:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 09:23:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 09:23:24] Production.INFO: ==6291== Releasing lock... [2025-04-10 09:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 09:23:24] Production.INFO: 36.75 MB #Memory Used# [2025-04-10 09:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 06:24:05 [end_date_ymd] => 2025-04-10 09:24:05 [RateCDR] => 1 ) [2025-04-10 09:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 06:24:05' and `end` < '2025-04-10 09:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 09:24:19] Production.INFO: count ==1109 [2025-04-10 09:24:19] Production.ERROR: pbx CDR StartTime 2025-04-10 06:24:05 - End Time 2025-04-10 09:24:05 [2025-04-10 09:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875943', 'tblTempUsageDetail_20' ) start [2025-04-10 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875943', 'tblTempUsageDetail_20' ) end [2025-04-10 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875943', 'tblTempVendorCDR_20' ) start [2025-04-10 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875943', 'tblTempVendorCDR_20' ) end [2025-04-10 09:24:19] Production.INFO: ProcessCDR(1,14875943,1,1,2) [2025-04-10 09:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875943', 'tblTempUsageDetail_20' ) start [2025-04-10 09:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875943', 'tblTempUsageDetail_20' ) end [2025-04-10 09:24:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 09:24:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 09:24:24] Production.INFO: ==6368== Releasing lock... [2025-04-10 09:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 09:24:24] Production.INFO: 36.75 MB #Memory Used# [2025-04-10 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 06:25:05 [end_date_ymd] => 2025-04-10 09:25:05 [RateCDR] => 1 ) [2025-04-10 09:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 06:25:05' and `end` < '2025-04-10 09:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 09:25:18] Production.INFO: count ==1127 [2025-04-10 09:25:18] Production.ERROR: pbx CDR StartTime 2025-04-10 06:25:05 - End Time 2025-04-10 09:25:05 [2025-04-10 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875948', 'tblTempUsageDetail_20' ) start [2025-04-10 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875948', 'tblTempUsageDetail_20' ) end [2025-04-10 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875948', 'tblTempVendorCDR_20' ) start [2025-04-10 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875948', 'tblTempVendorCDR_20' ) end [2025-04-10 09:25:18] Production.INFO: ProcessCDR(1,14875948,1,1,2) [2025-04-10 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875948', 'tblTempUsageDetail_20' ) start [2025-04-10 09:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875948', 'tblTempUsageDetail_20' ) end [2025-04-10 09:25:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 09:25:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 09:25:24] Production.INFO: ==6443== Releasing lock... [2025-04-10 09:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 09:25:24] Production.INFO: 37.25 MB #Memory Used# [2025-04-10 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 06:26:05 [end_date_ymd] => 2025-04-10 09:26:05 [RateCDR] => 1 ) [2025-04-10 09:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 06:26:05' and `end` < '2025-04-10 09:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 09:26:19] Production.INFO: count ==1139 [2025-04-10 09:26:19] Production.ERROR: pbx CDR StartTime 2025-04-10 06:26:05 - End Time 2025-04-10 09:26:05 [2025-04-10 09:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875953', 'tblTempUsageDetail_20' ) start [2025-04-10 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875953', 'tblTempUsageDetail_20' ) end [2025-04-10 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875953', 'tblTempVendorCDR_20' ) start [2025-04-10 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875953', 'tblTempVendorCDR_20' ) end [2025-04-10 09:26:19] Production.INFO: ProcessCDR(1,14875953,1,1,2) [2025-04-10 09:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875953', 'tblTempUsageDetail_20' ) start [2025-04-10 09:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875953', 'tblTempUsageDetail_20' ) end [2025-04-10 09:26:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 09:26:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 09:26:24] Production.INFO: ==6521== Releasing lock... [2025-04-10 09:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 09:26:24] Production.INFO: 37.25 MB #Memory Used# [2025-04-10 09:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 06:27:05 [end_date_ymd] => 2025-04-10 09:27:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 06:27:05' and `end` < '2025-04-10 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-04-10 09:27:18] Production.INFO: count ==1154 [2025-04-10 09:27:18] Production.ERROR: pbx CDR StartTime 2025-04-10 06:27:05 - End Time 2025-04-10 09:27:05 [2025-04-10 09:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875958', 'tblTempUsageDetail_20' ) start [2025-04-10 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875958', 'tblTempUsageDetail_20' ) end [2025-04-10 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875958', 'tblTempVendorCDR_20' ) start [2025-04-10 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875958', 'tblTempVendorCDR_20' ) end [2025-04-10 09:27:18] Production.INFO: ProcessCDR(1,14875958,1,1,2) [2025-04-10 09:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875958', 'tblTempUsageDetail_20' ) start [2025-04-10 09:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875958', 'tblTempUsageDetail_20' ) end [2025-04-10 09:27:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 09:27:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 09:27:23] Production.INFO: ==6598== Releasing lock... [2025-04-10 09:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 09:27:23] Production.INFO: 37.5 MB #Memory Used# [2025-04-10 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 06:28:05 [end_date_ymd] => 2025-04-10 09:28:05 [RateCDR] => 1 ) [2025-04-10 09:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 06:28:05' and `end` < '2025-04-10 09:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 09:28:18] Production.INFO: count ==1161 [2025-04-10 09:28:18] Production.ERROR: pbx CDR StartTime 2025-04-10 06:28:05 - End Time 2025-04-10 09:28:05 [2025-04-10 09:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875963', 'tblTempUsageDetail_20' ) start [2025-04-10 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875963', 'tblTempUsageDetail_20' ) end [2025-04-10 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875963', 'tblTempVendorCDR_20' ) start [2025-04-10 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875963', 'tblTempVendorCDR_20' ) end [2025-04-10 09:28:18] Production.INFO: ProcessCDR(1,14875963,1,1,2) [2025-04-10 09:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875963', 'tblTempUsageDetail_20' ) start [2025-04-10 09:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875963', 'tblTempUsageDetail_20' ) end [2025-04-10 09:28:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 09:28:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 09:28:23] Production.INFO: ==6716== Releasing lock... [2025-04-10 09:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 09:28:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-10 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 06:29:05 [end_date_ymd] => 2025-04-10 09:29:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 06:29:05' and `end` < '2025-04-10 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-04-10 09:29:18] Production.INFO: count ==1163 [2025-04-10 09:29:18] Production.ERROR: pbx CDR StartTime 2025-04-10 06:29:05 - End Time 2025-04-10 09:29:05 [2025-04-10 09:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875968', 'tblTempUsageDetail_20' ) start [2025-04-10 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875968', 'tblTempUsageDetail_20' ) end [2025-04-10 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875968', 'tblTempVendorCDR_20' ) start [2025-04-10 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875968', 'tblTempVendorCDR_20' ) end [2025-04-10 09:29:18] Production.INFO: ProcessCDR(1,14875968,1,1,2) [2025-04-10 09:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875968', 'tblTempUsageDetail_20' ) start [2025-04-10 09:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875968', 'tblTempUsageDetail_20' ) end [2025-04-10 09:29:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 09:29:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 09:29:23] Production.INFO: ==6792== Releasing lock... [2025-04-10 09:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 09:29:23] Production.INFO: 37 MB #Memory Used# [2025-04-10 09:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 06:30:07 [end_date_ymd] => 2025-04-10 09:30:07 [RateCDR] => 1 ) [2025-04-10 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-04-10 06:30:07' and `end` < '2025-04-10 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-04-10 09:30:19] Production.INFO: count ==1166 [2025-04-10 09:30:20] Production.ERROR: pbx CDR StartTime 2025-04-10 06:30:07 - End Time 2025-04-10 09:30:07 [2025-04-10 09:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875974', 'tblTempUsageDetail_20' ) start [2025-04-10 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875974', 'tblTempUsageDetail_20' ) end [2025-04-10 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875974', 'tblTempVendorCDR_20' ) start [2025-04-10 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875974', 'tblTempVendorCDR_20' ) end [2025-04-10 09:30:20] Production.INFO: ProcessCDR(1,14875974,1,1,2) [2025-04-10 09:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875974', 'tblTempUsageDetail_20' ) start [2025-04-10 09:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875974', 'tblTempUsageDetail_20' ) end [2025-04-10 09:30:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 09:30:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 09:30:25] Production.INFO: ==6878== Releasing lock... [2025-04-10 09:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 09:30:25] Production.INFO: 37 MB #Memory Used# [2025-04-10 09:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 06:31:04 [end_date_ymd] => 2025-04-10 09:31:04 [RateCDR] => 1 ) [2025-04-10 09:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 06:31:04' and `end` < '2025-04-10 09:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 09:31:18] Production.INFO: count ==1236 [2025-04-10 09:31:18] Production.ERROR: pbx CDR StartTime 2025-04-10 06:31:04 - End Time 2025-04-10 09:31:04 [2025-04-10 09:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875979', 'tblTempUsageDetail_20' ) start [2025-04-10 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875979', 'tblTempUsageDetail_20' ) end [2025-04-10 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875979', 'tblTempVendorCDR_20' ) start [2025-04-10 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875979', 'tblTempVendorCDR_20' ) end [2025-04-10 09:31:18] Production.INFO: ProcessCDR(1,14875979,1,1,2) [2025-04-10 09:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875979', 'tblTempUsageDetail_20' ) start [2025-04-10 09:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875979', 'tblTempUsageDetail_20' ) end [2025-04-10 09:31:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 09:31:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 09:31:23] Production.INFO: ==6956== Releasing lock... [2025-04-10 09:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 09:31:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-10 09:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 06:32:05 [end_date_ymd] => 2025-04-10 09:32:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 06:32:05' and `end` < '2025-04-10 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-04-10 09:32:18] Production.INFO: count ==1256 [2025-04-10 09:32:19] Production.ERROR: pbx CDR StartTime 2025-04-10 06:32:05 - End Time 2025-04-10 09:32:05 [2025-04-10 09:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875984', 'tblTempUsageDetail_20' ) start [2025-04-10 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875984', 'tblTempUsageDetail_20' ) end [2025-04-10 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875984', 'tblTempVendorCDR_20' ) start [2025-04-10 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875984', 'tblTempVendorCDR_20' ) end [2025-04-10 09:32:19] Production.INFO: ProcessCDR(1,14875984,1,1,2) [2025-04-10 09:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875984', 'tblTempUsageDetail_20' ) start [2025-04-10 09:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875984', 'tblTempUsageDetail_20' ) end [2025-04-10 09:32:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 09:32:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 09:32:24] Production.INFO: ==7040== Releasing lock... [2025-04-10 09:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 09:32:24] Production.INFO: 37.75 MB #Memory Used# [2025-04-10 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 06:33:05 [end_date_ymd] => 2025-04-10 09:33:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 06:33:05' and `end` < '2025-04-10 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-04-10 09:33:18] Production.INFO: count ==1262 [2025-04-10 09:33:19] Production.ERROR: pbx CDR StartTime 2025-04-10 06:33:05 - End Time 2025-04-10 09:33:05 [2025-04-10 09:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875989', 'tblTempUsageDetail_20' ) start [2025-04-10 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875989', 'tblTempUsageDetail_20' ) end [2025-04-10 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875989', 'tblTempVendorCDR_20' ) start [2025-04-10 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875989', 'tblTempVendorCDR_20' ) end [2025-04-10 09:33:19] Production.INFO: ProcessCDR(1,14875989,1,1,2) [2025-04-10 09:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875989', 'tblTempUsageDetail_20' ) start [2025-04-10 09:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875989', 'tblTempUsageDetail_20' ) end [2025-04-10 09:33:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 09:33:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 09:33:24] Production.INFO: ==7114== Releasing lock... [2025-04-10 09:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 09:33:24] Production.INFO: 37.5 MB #Memory Used# [2025-04-10 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 06:34:05 [end_date_ymd] => 2025-04-10 09:34:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 06:34:05' and `end` < '2025-04-10 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-04-10 09:34:19] Production.INFO: count ==1269 [2025-04-10 09:34:19] Production.ERROR: pbx CDR StartTime 2025-04-10 06:34:05 - End Time 2025-04-10 09:34:05 [2025-04-10 09:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875994', 'tblTempUsageDetail_20' ) start [2025-04-10 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875994', 'tblTempUsageDetail_20' ) end [2025-04-10 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875994', 'tblTempVendorCDR_20' ) start [2025-04-10 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875994', 'tblTempVendorCDR_20' ) end [2025-04-10 09:34:19] Production.INFO: ProcessCDR(1,14875994,1,1,2) [2025-04-10 09:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875994', 'tblTempUsageDetail_20' ) start [2025-04-10 09:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875994', 'tblTempUsageDetail_20' ) end [2025-04-10 09:34:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 09:34:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 09:34:24] Production.INFO: ==7196== Releasing lock... [2025-04-10 09:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 09:34:24] Production.INFO: 37.25 MB #Memory Used# [2025-04-10 09:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 06:35:06 [end_date_ymd] => 2025-04-10 09:35:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 06:35:06' and `end` < '2025-04-10 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-04-10 09:35:19] Production.INFO: count ==1284 [2025-04-10 09:35:19] Production.ERROR: pbx CDR StartTime 2025-04-10 06:35:06 - End Time 2025-04-10 09:35:06 [2025-04-10 09:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875999', 'tblTempUsageDetail_20' ) start [2025-04-10 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14875999', 'tblTempUsageDetail_20' ) end [2025-04-10 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875999', 'tblTempVendorCDR_20' ) start [2025-04-10 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14875999', 'tblTempVendorCDR_20' ) end [2025-04-10 09:35:19] Production.INFO: ProcessCDR(1,14875999,1,1,2) [2025-04-10 09:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14875999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14875999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14875999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14875999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875999', 'tblTempUsageDetail_20' ) start [2025-04-10 09:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14875999', 'tblTempUsageDetail_20' ) end [2025-04-10 09:35:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 09:35:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 09:35:24] Production.INFO: ==7278== Releasing lock... [2025-04-10 09:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 09:35:24] Production.INFO: 38 MB #Memory Used# [2025-04-10 09:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 06:36:05 [end_date_ymd] => 2025-04-10 09:36:05 [RateCDR] => 1 ) [2025-04-10 09:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 06:36:05' and `end` < '2025-04-10 09:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 09:36:18] Production.INFO: count ==1306 [2025-04-10 09:36:19] Production.ERROR: pbx CDR StartTime 2025-04-10 06:36:05 - End Time 2025-04-10 09:36:05 [2025-04-10 09:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876004', 'tblTempUsageDetail_20' ) start [2025-04-10 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876004', 'tblTempUsageDetail_20' ) end [2025-04-10 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876004', 'tblTempVendorCDR_20' ) start [2025-04-10 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876004', 'tblTempVendorCDR_20' ) end [2025-04-10 09:36:19] Production.INFO: ProcessCDR(1,14876004,1,1,2) [2025-04-10 09:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876004', 'tblTempUsageDetail_20' ) start [2025-04-10 09:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876004', 'tblTempUsageDetail_20' ) end [2025-04-10 09:36:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 09:36:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 09:36:24] Production.INFO: ==7351== Releasing lock... [2025-04-10 09:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 09:36:24] Production.INFO: 37.75 MB #Memory Used# [2025-04-10 09:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 06:37:06 [end_date_ymd] => 2025-04-10 09:37:06 [RateCDR] => 1 ) [2025-04-10 09: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-04-10 06:37:06' and `end` < '2025-04-10 09: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-04-10 09:37:19] Production.INFO: count ==1309 [2025-04-10 09:37:19] Production.ERROR: pbx CDR StartTime 2025-04-10 06:37:06 - End Time 2025-04-10 09:37:06 [2025-04-10 09:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876009', 'tblTempUsageDetail_20' ) start [2025-04-10 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876009', 'tblTempUsageDetail_20' ) end [2025-04-10 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876009', 'tblTempVendorCDR_20' ) start [2025-04-10 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876009', 'tblTempVendorCDR_20' ) end [2025-04-10 09:37:19] Production.INFO: ProcessCDR(1,14876009,1,1,2) [2025-04-10 09:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876009', 'tblTempUsageDetail_20' ) start [2025-04-10 09:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876009', 'tblTempUsageDetail_20' ) end [2025-04-10 09:37:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 09:37:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 09:37:25] Production.INFO: ==7432== Releasing lock... [2025-04-10 09:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 09:37:25] Production.INFO: 38 MB #Memory Used# [2025-04-10 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 06:38:05 [end_date_ymd] => 2025-04-10 09:38:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 06:38:05' and `end` < '2025-04-10 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-04-10 09:38:18] Production.INFO: count ==1328 [2025-04-10 09:38:18] Production.ERROR: pbx CDR StartTime 2025-04-10 06:38:05 - End Time 2025-04-10 09:38:05 [2025-04-10 09:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876014', 'tblTempUsageDetail_20' ) start [2025-04-10 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876014', 'tblTempUsageDetail_20' ) end [2025-04-10 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876014', 'tblTempVendorCDR_20' ) start [2025-04-10 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876014', 'tblTempVendorCDR_20' ) end [2025-04-10 09:38:18] Production.INFO: ProcessCDR(1,14876014,1,1,2) [2025-04-10 09:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876014', 'tblTempUsageDetail_20' ) start [2025-04-10 09:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876014', 'tblTempUsageDetail_20' ) end [2025-04-10 09:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 09:38:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 09:38:24] Production.INFO: ==7509== Releasing lock... [2025-04-10 09:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 09:38:24] Production.INFO: 38 MB #Memory Used# [2025-04-10 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 06:39:05 [end_date_ymd] => 2025-04-10 09:39:05 [RateCDR] => 1 ) [2025-04-10 09:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 06:39:05' and `end` < '2025-04-10 09:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 09:39:18] Production.INFO: count ==1350 [2025-04-10 09:39:19] Production.ERROR: pbx CDR StartTime 2025-04-10 06:39:05 - End Time 2025-04-10 09:39:05 [2025-04-10 09:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876019', 'tblTempUsageDetail_20' ) start [2025-04-10 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876019', 'tblTempUsageDetail_20' ) end [2025-04-10 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876019', 'tblTempVendorCDR_20' ) start [2025-04-10 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876019', 'tblTempVendorCDR_20' ) end [2025-04-10 09:39:19] Production.INFO: ProcessCDR(1,14876019,1,1,2) [2025-04-10 09:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876019', 'tblTempUsageDetail_20' ) start [2025-04-10 09:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876019', 'tblTempUsageDetail_20' ) end [2025-04-10 09:39:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 09:39:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 09:39:25] Production.INFO: ==7586== Releasing lock... [2025-04-10 09:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 09:39:25] Production.INFO: 38.5 MB #Memory Used# [2025-04-10 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 06:40:06 [end_date_ymd] => 2025-04-10 09:40:06 [RateCDR] => 1 ) [2025-04-10 09:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 06:40:06' and `end` < '2025-04-10 09:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 09:40:19] Production.INFO: count ==1366 [2025-04-10 09:40:19] Production.ERROR: pbx CDR StartTime 2025-04-10 06:40:06 - End Time 2025-04-10 09:40:06 [2025-04-10 09:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876025', 'tblTempUsageDetail_20' ) start [2025-04-10 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876025', 'tblTempUsageDetail_20' ) end [2025-04-10 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876025', 'tblTempVendorCDR_20' ) start [2025-04-10 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876025', 'tblTempVendorCDR_20' ) end [2025-04-10 09:40:19] Production.INFO: ProcessCDR(1,14876025,1,1,2) [2025-04-10 09:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876025', 'tblTempUsageDetail_20' ) start [2025-04-10 09:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876025', 'tblTempUsageDetail_20' ) end [2025-04-10 09:40:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 09:40:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 09:40:24] Production.INFO: ==7666== Releasing lock... [2025-04-10 09:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 09:40:24] Production.INFO: 38.25 MB #Memory Used# [2025-04-10 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 06:41:05 [end_date_ymd] => 2025-04-10 09:41:05 [RateCDR] => 1 ) [2025-04-10 09:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 06:41:05' and `end` < '2025-04-10 09:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 09:41:18] Production.INFO: count ==1476 [2025-04-10 09:41:19] Production.ERROR: pbx CDR StartTime 2025-04-10 06:41:05 - End Time 2025-04-10 09:41:05 [2025-04-10 09:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876030', 'tblTempUsageDetail_20' ) start [2025-04-10 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876030', 'tblTempUsageDetail_20' ) end [2025-04-10 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876030', 'tblTempVendorCDR_20' ) start [2025-04-10 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876030', 'tblTempVendorCDR_20' ) end [2025-04-10 09:41:19] Production.INFO: ProcessCDR(1,14876030,1,1,2) [2025-04-10 09:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876030', 'tblTempUsageDetail_20' ) start [2025-04-10 09:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876030', 'tblTempUsageDetail_20' ) end [2025-04-10 09:41:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 09:41:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 09:41:24] Production.INFO: ==7744== Releasing lock... [2025-04-10 09:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 09:41:24] Production.INFO: 39 MB #Memory Used# [2025-04-10 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 06:42:05 [end_date_ymd] => 2025-04-10 09:42:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 06:42:05' and `end` < '2025-04-10 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-04-10 09:42:18] Production.INFO: count ==1498 [2025-04-10 09:42:19] Production.ERROR: pbx CDR StartTime 2025-04-10 06:42:05 - End Time 2025-04-10 09:42:05 [2025-04-10 09:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876035', 'tblTempUsageDetail_20' ) start [2025-04-10 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876035', 'tblTempUsageDetail_20' ) end [2025-04-10 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876035', 'tblTempVendorCDR_20' ) start [2025-04-10 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876035', 'tblTempVendorCDR_20' ) end [2025-04-10 09:42:19] Production.INFO: ProcessCDR(1,14876035,1,1,2) [2025-04-10 09:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876035', 'tblTempUsageDetail_20' ) start [2025-04-10 09:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876035', 'tblTempUsageDetail_20' ) end [2025-04-10 09:42:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 09:42:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 09:42:25] Production.INFO: ==7829== Releasing lock... [2025-04-10 09:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 09:42:25] Production.INFO: 39 MB #Memory Used# [2025-04-10 09:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 06:43:06 [end_date_ymd] => 2025-04-10 09:43:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 06:43:06' and `end` < '2025-04-10 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-04-10 09:43:19] Production.INFO: count ==1504 [2025-04-10 09:43:20] Production.ERROR: pbx CDR StartTime 2025-04-10 06:43:06 - End Time 2025-04-10 09:43:06 [2025-04-10 09:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876040', 'tblTempUsageDetail_20' ) start [2025-04-10 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876040', 'tblTempUsageDetail_20' ) end [2025-04-10 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876040', 'tblTempVendorCDR_20' ) start [2025-04-10 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876040', 'tblTempVendorCDR_20' ) end [2025-04-10 09:43:20] Production.INFO: ProcessCDR(1,14876040,1,1,2) [2025-04-10 09:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876040', 'tblTempUsageDetail_20' ) start [2025-04-10 09:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876040', 'tblTempUsageDetail_20' ) end [2025-04-10 09:43:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 09:43:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 09:43:26] Production.INFO: ==7910== Releasing lock... [2025-04-10 09:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 09:43:26] Production.INFO: 39 MB #Memory Used# [2025-04-10 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 06:44:05 [end_date_ymd] => 2025-04-10 09:44:05 [RateCDR] => 1 ) [2025-04-10 09:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 06:44:05' and `end` < '2025-04-10 09:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 09:44:18] Production.INFO: count ==1535 [2025-04-10 09:44:19] Production.ERROR: pbx CDR StartTime 2025-04-10 06:44:05 - End Time 2025-04-10 09:44:05 [2025-04-10 09:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876045', 'tblTempUsageDetail_20' ) start [2025-04-10 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876045', 'tblTempUsageDetail_20' ) end [2025-04-10 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876045', 'tblTempVendorCDR_20' ) start [2025-04-10 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876045', 'tblTempVendorCDR_20' ) end [2025-04-10 09:44:19] Production.INFO: ProcessCDR(1,14876045,1,1,2) [2025-04-10 09:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876045', 'tblTempUsageDetail_20' ) start [2025-04-10 09:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876045', 'tblTempUsageDetail_20' ) end [2025-04-10 09:44:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 09:44:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 09:44:24] Production.INFO: ==8022== Releasing lock... [2025-04-10 09:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 09:44:24] Production.INFO: 39.5 MB #Memory Used# [2025-04-10 09:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 06:45:05 [end_date_ymd] => 2025-04-10 09:45:05 [RateCDR] => 1 ) [2025-04-10 09:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 06:45:05' and `end` < '2025-04-10 09:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 09:45:19] Production.INFO: count ==1540 [2025-04-10 09:45:19] Production.ERROR: pbx CDR StartTime 2025-04-10 06:45:05 - End Time 2025-04-10 09:45:05 [2025-04-10 09:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876050', 'tblTempUsageDetail_20' ) start [2025-04-10 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876050', 'tblTempUsageDetail_20' ) end [2025-04-10 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876050', 'tblTempVendorCDR_20' ) start [2025-04-10 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876050', 'tblTempVendorCDR_20' ) end [2025-04-10 09:45:19] Production.INFO: ProcessCDR(1,14876050,1,1,2) [2025-04-10 09:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876050', 'tblTempUsageDetail_20' ) start [2025-04-10 09:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876050', 'tblTempUsageDetail_20' ) end [2025-04-10 09:45:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 09:45:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 09:45:24] Production.INFO: ==8100== Releasing lock... [2025-04-10 09:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 09:45:24] Production.INFO: 39.75 MB #Memory Used# [2025-04-10 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 06:46:05 [end_date_ymd] => 2025-04-10 09:46:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 06:46:05' and `end` < '2025-04-10 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-04-10 09:46:18] Production.INFO: count ==1547 [2025-04-10 09:46:19] Production.ERROR: pbx CDR StartTime 2025-04-10 06:46:05 - End Time 2025-04-10 09:46:05 [2025-04-10 09:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876055', 'tblTempUsageDetail_20' ) start [2025-04-10 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876055', 'tblTempUsageDetail_20' ) end [2025-04-10 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876055', 'tblTempVendorCDR_20' ) start [2025-04-10 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876055', 'tblTempVendorCDR_20' ) end [2025-04-10 09:46:19] Production.INFO: ProcessCDR(1,14876055,1,1,2) [2025-04-10 09:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876055', 'tblTempUsageDetail_20' ) start [2025-04-10 09:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876055', 'tblTempUsageDetail_20' ) end [2025-04-10 09:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 09:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 09:46:22] Production.INFO: ==8186== Releasing lock... [2025-04-10 09:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 09:46:22] Production.INFO: 40 MB #Memory Used# [2025-04-10 09:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 06:47:06 [end_date_ymd] => 2025-04-10 09:47:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 06:47:06' and `end` < '2025-04-10 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-04-10 09:47:19] Production.INFO: count ==1580 [2025-04-10 09:47:19] Production.ERROR: pbx CDR StartTime 2025-04-10 06:47:06 - End Time 2025-04-10 09:47:06 [2025-04-10 09:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876060', 'tblTempUsageDetail_20' ) start [2025-04-10 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876060', 'tblTempUsageDetail_20' ) end [2025-04-10 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876060', 'tblTempVendorCDR_20' ) start [2025-04-10 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876060', 'tblTempVendorCDR_20' ) end [2025-04-10 09:47:19] Production.INFO: ProcessCDR(1,14876060,1,1,2) [2025-04-10 09:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876060', 'tblTempUsageDetail_20' ) start [2025-04-10 09:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876060', 'tblTempUsageDetail_20' ) end [2025-04-10 09:47:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 09:47:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 09:47:25] Production.INFO: ==8265== Releasing lock... [2025-04-10 09:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 09:47:25] Production.INFO: 40 MB #Memory Used# [2025-04-10 09:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 06:48:05 [end_date_ymd] => 2025-04-10 09:48:05 [RateCDR] => 1 ) [2025-04-10 09:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 06:48:05' and `end` < '2025-04-10 09:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 09:48:18] Production.INFO: count ==1590 [2025-04-10 09:48:19] Production.ERROR: pbx CDR StartTime 2025-04-10 06:48:05 - End Time 2025-04-10 09:48:05 [2025-04-10 09:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876065', 'tblTempUsageDetail_20' ) start [2025-04-10 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876065', 'tblTempUsageDetail_20' ) end [2025-04-10 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876065', 'tblTempVendorCDR_20' ) start [2025-04-10 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876065', 'tblTempVendorCDR_20' ) end [2025-04-10 09:48:19] Production.INFO: ProcessCDR(1,14876065,1,1,2) [2025-04-10 09:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876065', 'tblTempUsageDetail_20' ) start [2025-04-10 09:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876065', 'tblTempUsageDetail_20' ) end [2025-04-10 09:48:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 09:48:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 09:48:24] Production.INFO: ==8337== Releasing lock... [2025-04-10 09:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 09:48:24] Production.INFO: 40 MB #Memory Used# [2025-04-10 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 06:49:05 [end_date_ymd] => 2025-04-10 09:49:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 06:49:05' and `end` < '2025-04-10 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-04-10 09:49:18] Production.INFO: count ==1610 [2025-04-10 09:49:19] Production.ERROR: pbx CDR StartTime 2025-04-10 06:49:05 - End Time 2025-04-10 09:49:05 [2025-04-10 09:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876070', 'tblTempUsageDetail_20' ) start [2025-04-10 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876070', 'tblTempUsageDetail_20' ) end [2025-04-10 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876070', 'tblTempVendorCDR_20' ) start [2025-04-10 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876070', 'tblTempVendorCDR_20' ) end [2025-04-10 09:49:19] Production.INFO: ProcessCDR(1,14876070,1,1,2) [2025-04-10 09:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876070', 'tblTempUsageDetail_20' ) start [2025-04-10 09:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876070', 'tblTempUsageDetail_20' ) end [2025-04-10 09:49:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 09:49:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 09:49:24] Production.INFO: ==8418== Releasing lock... [2025-04-10 09:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 09:49:24] Production.INFO: 40.25 MB #Memory Used# [2025-04-10 09:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 06:50:06 [end_date_ymd] => 2025-04-10 09:50:06 [RateCDR] => 1 ) [2025-04-10 09:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 06:50:06' and `end` < '2025-04-10 09:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 09:50:19] Production.INFO: count ==1629 [2025-04-10 09:50:20] Production.ERROR: pbx CDR StartTime 2025-04-10 06:50:06 - End Time 2025-04-10 09:50:06 [2025-04-10 09:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876076', 'tblTempUsageDetail_20' ) start [2025-04-10 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876076', 'tblTempUsageDetail_20' ) end [2025-04-10 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876076', 'tblTempVendorCDR_20' ) start [2025-04-10 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876076', 'tblTempVendorCDR_20' ) end [2025-04-10 09:50:20] Production.INFO: ProcessCDR(1,14876076,1,1,2) [2025-04-10 09:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876076', 'tblTempUsageDetail_20' ) start [2025-04-10 09:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876076', 'tblTempUsageDetail_20' ) end [2025-04-10 09:50:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 09:50:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 09:50:26] Production.INFO: ==8503== Releasing lock... [2025-04-10 09:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 09:50:26] Production.INFO: 40.25 MB #Memory Used# [2025-04-10 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 06:51:05 [end_date_ymd] => 2025-04-10 09:51:05 [RateCDR] => 1 ) [2025-04-10 09:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 06:51:05' and `end` < '2025-04-10 09:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 09:51:19] Production.INFO: count ==1738 [2025-04-10 09:51:19] Production.ERROR: pbx CDR StartTime 2025-04-10 06:51:05 - End Time 2025-04-10 09:51:05 [2025-04-10 09:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876081', 'tblTempUsageDetail_20' ) start [2025-04-10 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876081', 'tblTempUsageDetail_20' ) end [2025-04-10 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876081', 'tblTempVendorCDR_20' ) start [2025-04-10 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876081', 'tblTempVendorCDR_20' ) end [2025-04-10 09:51:19] Production.INFO: ProcessCDR(1,14876081,1,1,2) [2025-04-10 09:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876081', 'tblTempUsageDetail_20' ) start [2025-04-10 09:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876081', 'tblTempUsageDetail_20' ) end [2025-04-10 09:51:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 09:51:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 09:51:25] Production.INFO: ==8582== Releasing lock... [2025-04-10 09:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 09:51:25] Production.INFO: 41 MB #Memory Used# [2025-04-10 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 06:52:05 [end_date_ymd] => 2025-04-10 09:52:05 [RateCDR] => 1 ) [2025-04-10 09:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 06:52:05' and `end` < '2025-04-10 09:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 09:52:19] Production.INFO: count ==1759 [2025-04-10 09:52:19] Production.ERROR: pbx CDR StartTime 2025-04-10 06:52:05 - End Time 2025-04-10 09:52:05 [2025-04-10 09:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876086', 'tblTempUsageDetail_20' ) start [2025-04-10 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876086', 'tblTempUsageDetail_20' ) end [2025-04-10 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876086', 'tblTempVendorCDR_20' ) start [2025-04-10 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876086', 'tblTempVendorCDR_20' ) end [2025-04-10 09:52:19] Production.INFO: ProcessCDR(1,14876086,1,1,2) [2025-04-10 09:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876086', 'tblTempUsageDetail_20' ) start [2025-04-10 09:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876086', 'tblTempUsageDetail_20' ) end [2025-04-10 09:52:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 09:52:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 09:52:24] Production.INFO: ==8656== Releasing lock... [2025-04-10 09:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 09:52:24] Production.INFO: 41.25 MB #Memory Used# [2025-04-10 09:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 06:53:05 [end_date_ymd] => 2025-04-10 09:53:05 [RateCDR] => 1 ) [2025-04-10 09:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 06:53:05' and `end` < '2025-04-10 09:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 09:53:19] Production.INFO: count ==1769 [2025-04-10 09:53:19] Production.ERROR: pbx CDR StartTime 2025-04-10 06:53:05 - End Time 2025-04-10 09:53:05 [2025-04-10 09:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876091', 'tblTempUsageDetail_20' ) start [2025-04-10 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876091', 'tblTempUsageDetail_20' ) end [2025-04-10 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876091', 'tblTempVendorCDR_20' ) start [2025-04-10 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876091', 'tblTempVendorCDR_20' ) end [2025-04-10 09:53:19] Production.INFO: ProcessCDR(1,14876091,1,1,2) [2025-04-10 09:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876091', 'tblTempUsageDetail_20' ) start [2025-04-10 09:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876091', 'tblTempUsageDetail_20' ) end [2025-04-10 09:53:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 09:53:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 09:53:24] Production.INFO: ==8727== Releasing lock... [2025-04-10 09:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 09:53:24] Production.INFO: 41.25 MB #Memory Used# [2025-04-10 09:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 06:54:05 [end_date_ymd] => 2025-04-10 09:54:05 [RateCDR] => 1 ) [2025-04-10 09:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 06:54:05' and `end` < '2025-04-10 09:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 09:54:18] Production.INFO: count ==1786 [2025-04-10 09:54:19] Production.ERROR: pbx CDR StartTime 2025-04-10 06:54:05 - End Time 2025-04-10 09:54:05 [2025-04-10 09:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876096', 'tblTempUsageDetail_20' ) start [2025-04-10 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876096', 'tblTempUsageDetail_20' ) end [2025-04-10 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876096', 'tblTempVendorCDR_20' ) start [2025-04-10 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876096', 'tblTempVendorCDR_20' ) end [2025-04-10 09:54:19] Production.INFO: ProcessCDR(1,14876096,1,1,2) [2025-04-10 09:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876096', 'tblTempUsageDetail_20' ) start [2025-04-10 09:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876096', 'tblTempUsageDetail_20' ) end [2025-04-10 09:54:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 09:54:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 09:54:24] Production.INFO: ==8804== Releasing lock... [2025-04-10 09:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 09:54:24] Production.INFO: 41.5 MB #Memory Used# [2025-04-10 09:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 06:55:05 [end_date_ymd] => 2025-04-10 09:55:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 06:55:05' and `end` < '2025-04-10 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-04-10 09:55:18] Production.INFO: count ==1790 [2025-04-10 09:55:18] Production.ERROR: pbx CDR StartTime 2025-04-10 06:55:05 - End Time 2025-04-10 09:55:05 [2025-04-10 09:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876101', 'tblTempUsageDetail_20' ) start [2025-04-10 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876101', 'tblTempUsageDetail_20' ) end [2025-04-10 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876101', 'tblTempVendorCDR_20' ) start [2025-04-10 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876101', 'tblTempVendorCDR_20' ) end [2025-04-10 09:55:19] Production.INFO: ProcessCDR(1,14876101,1,1,2) [2025-04-10 09:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876101', 'tblTempUsageDetail_20' ) start [2025-04-10 09:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876101', 'tblTempUsageDetail_20' ) end [2025-04-10 09:55:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 09:55:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 09:55:24] Production.INFO: ==8882== Releasing lock... [2025-04-10 09:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 09:55:24] Production.INFO: 41.5 MB #Memory Used# [2025-04-10 09:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 06:56:05 [end_date_ymd] => 2025-04-10 09:56:05 [RateCDR] => 1 ) [2025-04-10 09:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 06:56:05' and `end` < '2025-04-10 09:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 09:56:18] Production.INFO: count ==1817 [2025-04-10 09:56:19] Production.ERROR: pbx CDR StartTime 2025-04-10 06:56:05 - End Time 2025-04-10 09:56:05 [2025-04-10 09:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876106', 'tblTempUsageDetail_20' ) start [2025-04-10 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876106', 'tblTempUsageDetail_20' ) end [2025-04-10 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876106', 'tblTempVendorCDR_20' ) start [2025-04-10 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876106', 'tblTempVendorCDR_20' ) end [2025-04-10 09:56:19] Production.INFO: ProcessCDR(1,14876106,1,1,2) [2025-04-10 09:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876106', 'tblTempUsageDetail_20' ) start [2025-04-10 09:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876106', 'tblTempUsageDetail_20' ) end [2025-04-10 09:56:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 09:56:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 09:56:24] Production.INFO: ==8954== Releasing lock... [2025-04-10 09:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 09:56:24] Production.INFO: 41.75 MB #Memory Used# [2025-04-10 09:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 06:57:05 [end_date_ymd] => 2025-04-10 09:57:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 06:57:05' and `end` < '2025-04-10 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-04-10 09:57:18] Production.INFO: count ==1826 [2025-04-10 09:57:19] Production.ERROR: pbx CDR StartTime 2025-04-10 06:57:05 - End Time 2025-04-10 09:57:05 [2025-04-10 09:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876111', 'tblTempUsageDetail_20' ) start [2025-04-10 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876111', 'tblTempUsageDetail_20' ) end [2025-04-10 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876111', 'tblTempVendorCDR_20' ) start [2025-04-10 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876111', 'tblTempVendorCDR_20' ) end [2025-04-10 09:57:19] Production.INFO: ProcessCDR(1,14876111,1,1,2) [2025-04-10 09:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876111', 'tblTempUsageDetail_20' ) start [2025-04-10 09:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876111', 'tblTempUsageDetail_20' ) end [2025-04-10 09:57:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 09:57:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 09:57:24] Production.INFO: ==9031== Releasing lock... [2025-04-10 09:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 09:57:24] Production.INFO: 42.25 MB #Memory Used# [2025-04-10 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 06:58:05 [end_date_ymd] => 2025-04-10 09:58:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 06:58:05' and `end` < '2025-04-10 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-04-10 09:58:19] Production.INFO: count ==1839 [2025-04-10 09:58:19] Production.ERROR: pbx CDR StartTime 2025-04-10 06:58:05 - End Time 2025-04-10 09:58:05 [2025-04-10 09:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876116', 'tblTempUsageDetail_20' ) start [2025-04-10 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876116', 'tblTempUsageDetail_20' ) end [2025-04-10 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876116', 'tblTempVendorCDR_20' ) start [2025-04-10 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876116', 'tblTempVendorCDR_20' ) end [2025-04-10 09:58:19] Production.INFO: ProcessCDR(1,14876116,1,1,2) [2025-04-10 09:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876116', 'tblTempUsageDetail_20' ) start [2025-04-10 09:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876116', 'tblTempUsageDetail_20' ) end [2025-04-10 09:58:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 09:58:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 09:58:24] Production.INFO: ==9112== Releasing lock... [2025-04-10 09:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 09:58:24] Production.INFO: 41.75 MB #Memory Used# [2025-04-10 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 06:59:05 [end_date_ymd] => 2025-04-10 09:59:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 06:59:05' and `end` < '2025-04-10 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-04-10 09:59:18] Production.INFO: count ==1852 [2025-04-10 09:59:19] Production.ERROR: pbx CDR StartTime 2025-04-10 06:59:05 - End Time 2025-04-10 09:59:05 [2025-04-10 09:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876121', 'tblTempUsageDetail_20' ) start [2025-04-10 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876121', 'tblTempUsageDetail_20' ) end [2025-04-10 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876121', 'tblTempVendorCDR_20' ) start [2025-04-10 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876121', 'tblTempVendorCDR_20' ) end [2025-04-10 09:59:19] Production.INFO: ProcessCDR(1,14876121,1,1,2) [2025-04-10 09:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 09:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 09:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876121', 'tblTempUsageDetail_20' ) start [2025-04-10 09:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876121', 'tblTempUsageDetail_20' ) end [2025-04-10 09:59:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 09:59:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 09:59:24] Production.INFO: ==9230== Releasing lock... [2025-04-10 09:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 09:59:24] Production.INFO: 42 MB #Memory Used# [2025-04-10 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 07:00:06 [end_date_ymd] => 2025-04-10 10:00:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 07:00:06' and `end` < '2025-04-10 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-04-10 10:00:19] Production.INFO: count ==1889 [2025-04-10 10:00:20] Production.ERROR: pbx CDR StartTime 2025-04-10 07:00:06 - End Time 2025-04-10 10:00:06 [2025-04-10 10:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876127', 'tblTempUsageDetail_20' ) start [2025-04-10 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876127', 'tblTempUsageDetail_20' ) end [2025-04-10 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876127', 'tblTempVendorCDR_20' ) start [2025-04-10 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876127', 'tblTempVendorCDR_20' ) end [2025-04-10 10:00:20] Production.INFO: ProcessCDR(1,14876127,1,1,2) [2025-04-10 10:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876127', 'tblTempUsageDetail_20' ) start [2025-04-10 10:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876127', 'tblTempUsageDetail_20' ) end [2025-04-10 10:00:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 10:00:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 10:00:25] Production.INFO: ==9315== Releasing lock... [2025-04-10 10:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 10:00:25] Production.INFO: 42.5 MB #Memory Used# [2025-04-10 10:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 07:01:05 [end_date_ymd] => 2025-04-10 10:01:05 [RateCDR] => 1 ) [2025-04-10 10:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 07:01:05' and `end` < '2025-04-10 10:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 10:01:18] Production.INFO: count ==1942 [2025-04-10 10:01:19] Production.ERROR: pbx CDR StartTime 2025-04-10 07:01:05 - End Time 2025-04-10 10:01:05 [2025-04-10 10:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876132', 'tblTempUsageDetail_20' ) start [2025-04-10 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876132', 'tblTempUsageDetail_20' ) end [2025-04-10 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876132', 'tblTempVendorCDR_20' ) start [2025-04-10 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876132', 'tblTempVendorCDR_20' ) end [2025-04-10 10:01:19] Production.INFO: ProcessCDR(1,14876132,1,1,2) [2025-04-10 10:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876132', 'tblTempUsageDetail_20' ) start [2025-04-10 10:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876132', 'tblTempUsageDetail_20' ) end [2025-04-10 10:01:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 10:01:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 10:01:24] Production.INFO: ==9405== Releasing lock... [2025-04-10 10:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 10:01:24] Production.INFO: 42.5 MB #Memory Used# [2025-04-10 10:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 07:02:05 [end_date_ymd] => 2025-04-10 10:02:05 [RateCDR] => 1 ) [2025-04-10 10:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 07:02:05' and `end` < '2025-04-10 10:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 10:02:19] Production.INFO: count ==1947 [2025-04-10 10:02:19] Production.ERROR: pbx CDR StartTime 2025-04-10 07:02:05 - End Time 2025-04-10 10:02:05 [2025-04-10 10:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876137', 'tblTempUsageDetail_20' ) start [2025-04-10 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876137', 'tblTempUsageDetail_20' ) end [2025-04-10 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876137', 'tblTempVendorCDR_20' ) start [2025-04-10 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876137', 'tblTempVendorCDR_20' ) end [2025-04-10 10:02:19] Production.INFO: ProcessCDR(1,14876137,1,1,2) [2025-04-10 10:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876137', 'tblTempUsageDetail_20' ) start [2025-04-10 10:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876137', 'tblTempUsageDetail_20' ) end [2025-04-10 10:02:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 10:02:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 10:02:25] Production.INFO: ==9487== Releasing lock... [2025-04-10 10:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 10:02:25] Production.INFO: 43 MB #Memory Used# [2025-04-10 10:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 07:03:06 [end_date_ymd] => 2025-04-10 10:03:06 [RateCDR] => 1 ) [2025-04-10 10:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 07:03:06' and `end` < '2025-04-10 10:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 10:03:20] Production.INFO: count ==1960 [2025-04-10 10:03:20] Production.ERROR: pbx CDR StartTime 2025-04-10 07:03:06 - End Time 2025-04-10 10:03:06 [2025-04-10 10:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876142', 'tblTempUsageDetail_20' ) start [2025-04-10 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876142', 'tblTempUsageDetail_20' ) end [2025-04-10 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876142', 'tblTempVendorCDR_20' ) start [2025-04-10 10:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876142', 'tblTempVendorCDR_20' ) end [2025-04-10 10:03:20] Production.INFO: ProcessCDR(1,14876142,1,1,2) [2025-04-10 10:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876142', 'tblTempUsageDetail_20' ) start [2025-04-10 10:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876142', 'tblTempUsageDetail_20' ) end [2025-04-10 10:03:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 10:03:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 10:03:26] Production.INFO: ==9568== Releasing lock... [2025-04-10 10:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 10:03:26] Production.INFO: 42.75 MB #Memory Used# [2025-04-10 10:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 07:04:05 [end_date_ymd] => 2025-04-10 10:04:05 [RateCDR] => 1 ) [2025-04-10 10:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 07:04:05' and `end` < '2025-04-10 10:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 10:04:18] Production.INFO: count ==1981 [2025-04-10 10:04:19] Production.ERROR: pbx CDR StartTime 2025-04-10 07:04:05 - End Time 2025-04-10 10:04:05 [2025-04-10 10:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876147', 'tblTempUsageDetail_20' ) start [2025-04-10 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876147', 'tblTempUsageDetail_20' ) end [2025-04-10 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876147', 'tblTempVendorCDR_20' ) start [2025-04-10 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876147', 'tblTempVendorCDR_20' ) end [2025-04-10 10:04:19] Production.INFO: ProcessCDR(1,14876147,1,1,2) [2025-04-10 10:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876147', 'tblTempUsageDetail_20' ) start [2025-04-10 10:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876147', 'tblTempUsageDetail_20' ) end [2025-04-10 10:04:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 10:04:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 10:04:25] Production.INFO: ==9643== Releasing lock... [2025-04-10 10:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 10:04:25] Production.INFO: 43 MB #Memory Used# [2025-04-10 10:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 07:05:06 [end_date_ymd] => 2025-04-10 10:05:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 07:05:06' and `end` < '2025-04-10 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-04-10 10:05:19] Production.INFO: count ==1988 [2025-04-10 10:05:20] Production.ERROR: pbx CDR StartTime 2025-04-10 07:05:06 - End Time 2025-04-10 10:05:06 [2025-04-10 10:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876152', 'tblTempUsageDetail_20' ) start [2025-04-10 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876152', 'tblTempUsageDetail_20' ) end [2025-04-10 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876152', 'tblTempVendorCDR_20' ) start [2025-04-10 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876152', 'tblTempVendorCDR_20' ) end [2025-04-10 10:05:20] Production.INFO: ProcessCDR(1,14876152,1,1,2) [2025-04-10 10:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876152', 'tblTempUsageDetail_20' ) start [2025-04-10 10:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876152', 'tblTempUsageDetail_20' ) end [2025-04-10 10:05:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 10:05:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 10:05:25] Production.INFO: ==9722== Releasing lock... [2025-04-10 10:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 10:05:25] Production.INFO: 43 MB #Memory Used# [2025-04-10 10:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 07:06:05 [end_date_ymd] => 2025-04-10 10:06:05 [RateCDR] => 1 ) [2025-04-10 10:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 07:06:05' and `end` < '2025-04-10 10:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 10:06:18] Production.INFO: count ==1996 [2025-04-10 10:06:19] Production.ERROR: pbx CDR StartTime 2025-04-10 07:06:05 - End Time 2025-04-10 10:06:05 [2025-04-10 10:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876157', 'tblTempUsageDetail_20' ) start [2025-04-10 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876157', 'tblTempUsageDetail_20' ) end [2025-04-10 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876157', 'tblTempVendorCDR_20' ) start [2025-04-10 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876157', 'tblTempVendorCDR_20' ) end [2025-04-10 10:06:19] Production.INFO: ProcessCDR(1,14876157,1,1,2) [2025-04-10 10:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876157', 'tblTempUsageDetail_20' ) start [2025-04-10 10:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876157', 'tblTempUsageDetail_20' ) end [2025-04-10 10:06:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 10:06:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 10:06:25] Production.INFO: ==9793== Releasing lock... [2025-04-10 10:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 10:06:25] Production.INFO: 43.25 MB #Memory Used# [2025-04-10 10:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 07:07:05 [end_date_ymd] => 2025-04-10 10:07:05 [RateCDR] => 1 ) [2025-04-10 10:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 07:07:05' and `end` < '2025-04-10 10:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 10:07:18] Production.INFO: count ==2022 [2025-04-10 10:07:19] Production.ERROR: pbx CDR StartTime 2025-04-10 07:07:05 - End Time 2025-04-10 10:07:05 [2025-04-10 10:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876162', 'tblTempUsageDetail_20' ) start [2025-04-10 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876162', 'tblTempUsageDetail_20' ) end [2025-04-10 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876162', 'tblTempVendorCDR_20' ) start [2025-04-10 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876162', 'tblTempVendorCDR_20' ) end [2025-04-10 10:07:19] Production.INFO: ProcessCDR(1,14876162,1,1,2) [2025-04-10 10:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876162', 'tblTempUsageDetail_20' ) start [2025-04-10 10:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876162', 'tblTempUsageDetail_20' ) end [2025-04-10 10:07:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 10:07:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 10:07:24] Production.INFO: ==9869== Releasing lock... [2025-04-10 10:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 10:07:24] Production.INFO: 43.25 MB #Memory Used# [2025-04-10 10:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 07:08:05 [end_date_ymd] => 2025-04-10 10:08:05 [RateCDR] => 1 ) [2025-04-10 10:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 07:08:05' and `end` < '2025-04-10 10:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 10:08:18] Production.INFO: count ==2053 [2025-04-10 10:08:19] Production.ERROR: pbx CDR StartTime 2025-04-10 07:08:05 - End Time 2025-04-10 10:08:05 [2025-04-10 10:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876167', 'tblTempUsageDetail_20' ) start [2025-04-10 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876167', 'tblTempUsageDetail_20' ) end [2025-04-10 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876167', 'tblTempVendorCDR_20' ) start [2025-04-10 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876167', 'tblTempVendorCDR_20' ) end [2025-04-10 10:08:19] Production.INFO: ProcessCDR(1,14876167,1,1,2) [2025-04-10 10:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876167', 'tblTempUsageDetail_20' ) start [2025-04-10 10:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876167', 'tblTempUsageDetail_20' ) end [2025-04-10 10:08:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 10:08:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 10:08:24] Production.INFO: ==9944== Releasing lock... [2025-04-10 10:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 10:08:24] Production.INFO: 43.5 MB #Memory Used# [2025-04-10 10:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 07:09:06 [end_date_ymd] => 2025-04-10 10:09:06 [RateCDR] => 1 ) [2025-04-10 10: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-04-10 07:09:06' and `end` < '2025-04-10 10: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-04-10 10:09:19] Production.INFO: count ==2065 [2025-04-10 10:09:20] Production.ERROR: pbx CDR StartTime 2025-04-10 07:09:06 - End Time 2025-04-10 10:09:06 [2025-04-10 10:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876172', 'tblTempUsageDetail_20' ) start [2025-04-10 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876172', 'tblTempUsageDetail_20' ) end [2025-04-10 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876172', 'tblTempVendorCDR_20' ) start [2025-04-10 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876172', 'tblTempVendorCDR_20' ) end [2025-04-10 10:09:20] Production.INFO: ProcessCDR(1,14876172,1,1,2) [2025-04-10 10:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876172', 'tblTempUsageDetail_20' ) start [2025-04-10 10:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876172', 'tblTempUsageDetail_20' ) end [2025-04-10 10:09:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 10:09:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 10:09:25] Production.INFO: ==10021== Releasing lock... [2025-04-10 10:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 10:09:25] Production.INFO: 43.5 MB #Memory Used# [2025-04-10 10:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 07:10:06 [end_date_ymd] => 2025-04-10 10:10:06 [RateCDR] => 1 ) [2025-04-10 10:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 07:10:06' and `end` < '2025-04-10 10:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 10:10:19] Production.INFO: count ==2078 [2025-04-10 10:10:20] Production.ERROR: pbx CDR StartTime 2025-04-10 07:10:06 - End Time 2025-04-10 10:10:06 [2025-04-10 10:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876177', 'tblTempUsageDetail_20' ) start [2025-04-10 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876177', 'tblTempUsageDetail_20' ) end [2025-04-10 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876177', 'tblTempVendorCDR_20' ) start [2025-04-10 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876177', 'tblTempVendorCDR_20' ) end [2025-04-10 10:10:20] Production.INFO: ProcessCDR(1,14876177,1,1,2) [2025-04-10 10:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876177', 'tblTempUsageDetail_20' ) start [2025-04-10 10:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876177', 'tblTempUsageDetail_20' ) end [2025-04-10 10:10:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 10:10:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 10:10:25] Production.INFO: ==10102== Releasing lock... [2025-04-10 10:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 10:10:25] Production.INFO: 44 MB #Memory Used# [2025-04-10 10:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 07:11:06 [end_date_ymd] => 2025-04-10 10:11:06 [RateCDR] => 1 ) [2025-04-10 10:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 07:11:06' and `end` < '2025-04-10 10:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 10:11:19] Production.INFO: count ==2164 [2025-04-10 10:11:20] Production.ERROR: pbx CDR StartTime 2025-04-10 07:11:06 - End Time 2025-04-10 10:11:06 [2025-04-10 10:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876183', 'tblTempUsageDetail_20' ) start [2025-04-10 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876183', 'tblTempUsageDetail_20' ) end [2025-04-10 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876183', 'tblTempVendorCDR_20' ) start [2025-04-10 10:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876183', 'tblTempVendorCDR_20' ) end [2025-04-10 10:11:20] Production.INFO: ProcessCDR(1,14876183,1,1,2) [2025-04-10 10:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876183', 'tblTempUsageDetail_20' ) start [2025-04-10 10:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876183', 'tblTempUsageDetail_20' ) end [2025-04-10 10:11:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 10:11:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 10:11:23] Production.INFO: ==10180== Releasing lock... [2025-04-10 10:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 10:11:23] Production.INFO: 44.25 MB #Memory Used# [2025-04-10 10:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 07:12:05 [end_date_ymd] => 2025-04-10 10:12:05 [RateCDR] => 1 ) [2025-04-10 10: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-04-10 07:12:05' and `end` < '2025-04-10 10: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-04-10 10:12:18] Production.INFO: count ==2177 [2025-04-10 10:12:19] Production.ERROR: pbx CDR StartTime 2025-04-10 07:12:05 - End Time 2025-04-10 10:12:05 [2025-04-10 10:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876188', 'tblTempUsageDetail_20' ) start [2025-04-10 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876188', 'tblTempUsageDetail_20' ) end [2025-04-10 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876188', 'tblTempVendorCDR_20' ) start [2025-04-10 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876188', 'tblTempVendorCDR_20' ) end [2025-04-10 10:12:19] Production.INFO: ProcessCDR(1,14876188,1,1,2) [2025-04-10 10:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876188', 'tblTempUsageDetail_20' ) start [2025-04-10 10:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876188', 'tblTempUsageDetail_20' ) end [2025-04-10 10:12:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 10:12:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 10:12:24] Production.INFO: ==10256== Releasing lock... [2025-04-10 10:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 10:12:24] Production.INFO: 44.5 MB #Memory Used# [2025-04-10 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 07:13:05 [end_date_ymd] => 2025-04-10 10:13:05 [RateCDR] => 1 ) [2025-04-10 10:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 07:13:05' and `end` < '2025-04-10 10:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 10:13:18] Production.INFO: count ==2201 [2025-04-10 10:13:19] Production.ERROR: pbx CDR StartTime 2025-04-10 07:13:05 - End Time 2025-04-10 10:13:05 [2025-04-10 10:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876193', 'tblTempUsageDetail_20' ) start [2025-04-10 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876193', 'tblTempUsageDetail_20' ) end [2025-04-10 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876193', 'tblTempVendorCDR_20' ) start [2025-04-10 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876193', 'tblTempVendorCDR_20' ) end [2025-04-10 10:13:19] Production.INFO: ProcessCDR(1,14876193,1,1,2) [2025-04-10 10:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876193', 'tblTempUsageDetail_20' ) start [2025-04-10 10:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876193', 'tblTempUsageDetail_20' ) end [2025-04-10 10:13:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 10:13:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 10:13:24] Production.INFO: ==10342== Releasing lock... [2025-04-10 10:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 10:13:24] Production.INFO: 44.5 MB #Memory Used# [2025-04-10 10:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 07:14:05 [end_date_ymd] => 2025-04-10 10:14:05 [RateCDR] => 1 ) [2025-04-10 10:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 07:14:05' and `end` < '2025-04-10 10:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 10:14:18] Production.INFO: count ==2207 [2025-04-10 10:14:19] Production.ERROR: pbx CDR StartTime 2025-04-10 07:14:05 - End Time 2025-04-10 10:14:05 [2025-04-10 10:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876198', 'tblTempUsageDetail_20' ) start [2025-04-10 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876198', 'tblTempUsageDetail_20' ) end [2025-04-10 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876198', 'tblTempVendorCDR_20' ) start [2025-04-10 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876198', 'tblTempVendorCDR_20' ) end [2025-04-10 10:14:19] Production.INFO: ProcessCDR(1,14876198,1,1,2) [2025-04-10 10:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876198', 'tblTempUsageDetail_20' ) start [2025-04-10 10:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876198', 'tblTempUsageDetail_20' ) end [2025-04-10 10:14:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 10:14:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 10:14:24] Production.INFO: ==10416== Releasing lock... [2025-04-10 10:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 10:14:24] Production.INFO: 44.75 MB #Memory Used# [2025-04-10 10:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 07:15:05 [end_date_ymd] => 2025-04-10 10:15:05 [RateCDR] => 1 ) [2025-04-10 10:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 07:15:05' and `end` < '2025-04-10 10:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 10:15:19] Production.INFO: count ==2212 [2025-04-10 10:15:19] Production.ERROR: pbx CDR StartTime 2025-04-10 07:15:05 - End Time 2025-04-10 10:15:05 [2025-04-10 10:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876203', 'tblTempUsageDetail_20' ) start [2025-04-10 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876203', 'tblTempUsageDetail_20' ) end [2025-04-10 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876203', 'tblTempVendorCDR_20' ) start [2025-04-10 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876203', 'tblTempVendorCDR_20' ) end [2025-04-10 10:15:19] Production.INFO: ProcessCDR(1,14876203,1,1,2) [2025-04-10 10:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876203', 'tblTempUsageDetail_20' ) start [2025-04-10 10:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876203', 'tblTempUsageDetail_20' ) end [2025-04-10 10:15:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 10:15:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 10:15:25] Production.INFO: ==10532== Releasing lock... [2025-04-10 10:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 10:15:25] Production.INFO: 44.75 MB #Memory Used# [2025-04-10 10:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 07:16:05 [end_date_ymd] => 2025-04-10 10:16:05 [RateCDR] => 1 ) [2025-04-10 10:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 07:16:05' and `end` < '2025-04-10 10:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 10:16:19] Production.INFO: count ==2237 [2025-04-10 10:16:20] Production.ERROR: pbx CDR StartTime 2025-04-10 07:16:05 - End Time 2025-04-10 10:16:05 [2025-04-10 10:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876208', 'tblTempUsageDetail_20' ) start [2025-04-10 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876208', 'tblTempUsageDetail_20' ) end [2025-04-10 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876208', 'tblTempVendorCDR_20' ) start [2025-04-10 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876208', 'tblTempVendorCDR_20' ) end [2025-04-10 10:16:20] Production.INFO: ProcessCDR(1,14876208,1,1,2) [2025-04-10 10:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876208', 'tblTempUsageDetail_20' ) start [2025-04-10 10:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876208', 'tblTempUsageDetail_20' ) end [2025-04-10 10:16:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 10:16:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 10:16:26] Production.INFO: ==10604== Releasing lock... [2025-04-10 10:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 10:16:26] Production.INFO: 44.75 MB #Memory Used# [2025-04-10 10:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 07:17:06 [end_date_ymd] => 2025-04-10 10:17:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 07:17:06' and `end` < '2025-04-10 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-04-10 10:17:19] Production.INFO: count ==2264 [2025-04-10 10:17:20] Production.ERROR: pbx CDR StartTime 2025-04-10 07:17:06 - End Time 2025-04-10 10:17:06 [2025-04-10 10:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876213', 'tblTempUsageDetail_20' ) start [2025-04-10 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876213', 'tblTempUsageDetail_20' ) end [2025-04-10 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876213', 'tblTempVendorCDR_20' ) start [2025-04-10 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876213', 'tblTempVendorCDR_20' ) end [2025-04-10 10:17:20] Production.INFO: ProcessCDR(1,14876213,1,1,2) [2025-04-10 10:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876213', 'tblTempUsageDetail_20' ) start [2025-04-10 10:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876213', 'tblTempUsageDetail_20' ) end [2025-04-10 10:17:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 10:17:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 10:17:25] Production.INFO: ==10681== Releasing lock... [2025-04-10 10:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 10:17:25] Production.INFO: 45.25 MB #Memory Used# [2025-04-10 10:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 07:18:04 [end_date_ymd] => 2025-04-10 10:18:04 [RateCDR] => 1 ) [2025-04-10 10:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 07:18:04' and `end` < '2025-04-10 10:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 10:18:18] Production.INFO: count ==2284 [2025-04-10 10:18:19] Production.ERROR: pbx CDR StartTime 2025-04-10 07:18:04 - End Time 2025-04-10 10:18:04 [2025-04-10 10:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876218', 'tblTempUsageDetail_20' ) start [2025-04-10 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876218', 'tblTempUsageDetail_20' ) end [2025-04-10 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876218', 'tblTempVendorCDR_20' ) start [2025-04-10 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876218', 'tblTempVendorCDR_20' ) end [2025-04-10 10:18:19] Production.INFO: ProcessCDR(1,14876218,1,1,2) [2025-04-10 10:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876218', 'tblTempUsageDetail_20' ) start [2025-04-10 10:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876218', 'tblTempUsageDetail_20' ) end [2025-04-10 10:18:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 10:18:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 10:18:24] Production.INFO: ==10755== Releasing lock... [2025-04-10 10:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 10:18:24] Production.INFO: 45.25 MB #Memory Used# [2025-04-10 10:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 07:19:05 [end_date_ymd] => 2025-04-10 10:19:05 [RateCDR] => 1 ) [2025-04-10 10:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 07:19:05' and `end` < '2025-04-10 10:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 10:19:18] Production.INFO: count ==2300 [2025-04-10 10:19:19] Production.ERROR: pbx CDR StartTime 2025-04-10 07:19:05 - End Time 2025-04-10 10:19:05 [2025-04-10 10:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876223', 'tblTempUsageDetail_20' ) start [2025-04-10 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876223', 'tblTempUsageDetail_20' ) end [2025-04-10 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876223', 'tblTempVendorCDR_20' ) start [2025-04-10 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876223', 'tblTempVendorCDR_20' ) end [2025-04-10 10:19:19] Production.INFO: ProcessCDR(1,14876223,1,1,2) [2025-04-10 10:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876223', 'tblTempUsageDetail_20' ) start [2025-04-10 10:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876223', 'tblTempUsageDetail_20' ) end [2025-04-10 10:19:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 10:19:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 10:19:24] Production.INFO: ==10831== Releasing lock... [2025-04-10 10:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 10:19:24] Production.INFO: 45.25 MB #Memory Used# [2025-04-10 10:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 07:20:05 [end_date_ymd] => 2025-04-10 10:20:05 [RateCDR] => 1 ) [2025-04-10 10: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-04-10 07:20:05' and `end` < '2025-04-10 10: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-04-10 10:20:19] Production.INFO: count ==2316 [2025-04-10 10:20:20] Production.ERROR: pbx CDR StartTime 2025-04-10 07:20:05 - End Time 2025-04-10 10:20:05 [2025-04-10 10:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876229', 'tblTempUsageDetail_20' ) start [2025-04-10 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876229', 'tblTempUsageDetail_20' ) end [2025-04-10 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876229', 'tblTempVendorCDR_20' ) start [2025-04-10 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876229', 'tblTempVendorCDR_20' ) end [2025-04-10 10:20:20] Production.INFO: ProcessCDR(1,14876229,1,1,2) [2025-04-10 10:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876229', 'tblTempUsageDetail_20' ) start [2025-04-10 10:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876229', 'tblTempUsageDetail_20' ) end [2025-04-10 10:20:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 10:20:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 10:20:25] Production.INFO: ==10914== Releasing lock... [2025-04-10 10:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 10:20:25] Production.INFO: 45.5 MB #Memory Used# [2025-04-10 10:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 07:21:05 [end_date_ymd] => 2025-04-10 10:21:05 [RateCDR] => 1 ) [2025-04-10 10:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 07:21:05' and `end` < '2025-04-10 10:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 10:21:18] Production.INFO: count ==2434 [2025-04-10 10:21:19] Production.ERROR: pbx CDR StartTime 2025-04-10 07:21:05 - End Time 2025-04-10 10:21:05 [2025-04-10 10:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876234', 'tblTempUsageDetail_20' ) start [2025-04-10 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876234', 'tblTempUsageDetail_20' ) end [2025-04-10 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876234', 'tblTempVendorCDR_20' ) start [2025-04-10 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876234', 'tblTempVendorCDR_20' ) end [2025-04-10 10:21:19] Production.INFO: ProcessCDR(1,14876234,1,1,2) [2025-04-10 10:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876234', 'tblTempUsageDetail_20' ) start [2025-04-10 10:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876234', 'tblTempUsageDetail_20' ) end [2025-04-10 10:21:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 10:21:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 10:21:24] Production.INFO: ==10987== Releasing lock... [2025-04-10 10:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 10:21:24] Production.INFO: 46.25 MB #Memory Used# [2025-04-10 10:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 07:22:06 [end_date_ymd] => 2025-04-10 10:22:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 07:22:06' and `end` < '2025-04-10 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-04-10 10:22:19] Production.INFO: count ==2441 [2025-04-10 10:22:20] Production.ERROR: pbx CDR StartTime 2025-04-10 07:22:06 - End Time 2025-04-10 10:22:06 [2025-04-10 10:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876239', 'tblTempUsageDetail_20' ) start [2025-04-10 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876239', 'tblTempUsageDetail_20' ) end [2025-04-10 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876239', 'tblTempVendorCDR_20' ) start [2025-04-10 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876239', 'tblTempVendorCDR_20' ) end [2025-04-10 10:22:20] Production.INFO: ProcessCDR(1,14876239,1,1,2) [2025-04-10 10:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876239', 'tblTempUsageDetail_20' ) start [2025-04-10 10:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876239', 'tblTempUsageDetail_20' ) end [2025-04-10 10:22:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 10:22:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 10:22:25] Production.INFO: ==11066== Releasing lock... [2025-04-10 10:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 10:22:25] Production.INFO: 46.5 MB #Memory Used# [2025-04-10 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 07:23:05 [end_date_ymd] => 2025-04-10 10:23:05 [RateCDR] => 1 ) [2025-04-10 10:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 07:23:05' and `end` < '2025-04-10 10:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 10:23:19] Production.INFO: count ==2451 [2025-04-10 10:23:19] Production.ERROR: pbx CDR StartTime 2025-04-10 07:23:05 - End Time 2025-04-10 10:23:05 [2025-04-10 10:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876244', 'tblTempUsageDetail_20' ) start [2025-04-10 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876244', 'tblTempUsageDetail_20' ) end [2025-04-10 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876244', 'tblTempVendorCDR_20' ) start [2025-04-10 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876244', 'tblTempVendorCDR_20' ) end [2025-04-10 10:23:20] Production.INFO: ProcessCDR(1,14876244,1,1,2) [2025-04-10 10:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876244', 'tblTempUsageDetail_20' ) start [2025-04-10 10:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876244', 'tblTempUsageDetail_20' ) end [2025-04-10 10:23:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 10:23:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 10:23:25] Production.INFO: ==11143== Releasing lock... [2025-04-10 10:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 10:23:25] Production.INFO: 46.5 MB #Memory Used# [2025-04-10 10:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 07:24:06 [end_date_ymd] => 2025-04-10 10:24:06 [RateCDR] => 1 ) [2025-04-10 10: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-04-10 07:24:06' and `end` < '2025-04-10 10: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-04-10 10:24:19] Production.INFO: count ==2465 [2025-04-10 10:24:20] Production.ERROR: pbx CDR StartTime 2025-04-10 07:24:06 - End Time 2025-04-10 10:24:06 [2025-04-10 10:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876249', 'tblTempUsageDetail_20' ) start [2025-04-10 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876249', 'tblTempUsageDetail_20' ) end [2025-04-10 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876249', 'tblTempVendorCDR_20' ) start [2025-04-10 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876249', 'tblTempVendorCDR_20' ) end [2025-04-10 10:24:20] Production.INFO: ProcessCDR(1,14876249,1,1,2) [2025-04-10 10:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876249', 'tblTempUsageDetail_20' ) start [2025-04-10 10:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876249', 'tblTempUsageDetail_20' ) end [2025-04-10 10:24:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 10:24:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 10:24:26] Production.INFO: ==11219== Releasing lock... [2025-04-10 10:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 10:24:26] Production.INFO: 46.5 MB #Memory Used# [2025-04-10 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 07:25:05 [end_date_ymd] => 2025-04-10 10:25:05 [RateCDR] => 1 ) [2025-04-10 10:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 07:25:05' and `end` < '2025-04-10 10:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 10:25:19] Production.INFO: count ==2470 [2025-04-10 10:25:20] Production.ERROR: pbx CDR StartTime 2025-04-10 07:25:05 - End Time 2025-04-10 10:25:05 [2025-04-10 10:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876254', 'tblTempUsageDetail_20' ) start [2025-04-10 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876254', 'tblTempUsageDetail_20' ) end [2025-04-10 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876254', 'tblTempVendorCDR_20' ) start [2025-04-10 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876254', 'tblTempVendorCDR_20' ) end [2025-04-10 10:25:20] Production.INFO: ProcessCDR(1,14876254,1,1,2) [2025-04-10 10:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876254', 'tblTempUsageDetail_20' ) start [2025-04-10 10:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876254', 'tblTempUsageDetail_20' ) end [2025-04-10 10:25:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 10:25:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 10:25:25] Production.INFO: ==11293== Releasing lock... [2025-04-10 10:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 10:25:25] Production.INFO: 46.5 MB #Memory Used# [2025-04-10 10:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 07:26:06 [end_date_ymd] => 2025-04-10 10:26:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 07:26:06' and `end` < '2025-04-10 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-04-10 10:26:19] Production.INFO: count ==2497 [2025-04-10 10:26:20] Production.ERROR: pbx CDR StartTime 2025-04-10 07:26:06 - End Time 2025-04-10 10:26:06 [2025-04-10 10:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876259', 'tblTempUsageDetail_20' ) start [2025-04-10 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876259', 'tblTempUsageDetail_20' ) end [2025-04-10 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876259', 'tblTempVendorCDR_20' ) start [2025-04-10 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876259', 'tblTempVendorCDR_20' ) end [2025-04-10 10:26:20] Production.INFO: ProcessCDR(1,14876259,1,1,2) [2025-04-10 10:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876259', 'tblTempUsageDetail_20' ) start [2025-04-10 10:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876259', 'tblTempUsageDetail_20' ) end [2025-04-10 10:26:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 10:26:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 10:26:25] Production.INFO: ==11372== Releasing lock... [2025-04-10 10:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 10:26:25] Production.INFO: 47 MB #Memory Used# [2025-04-10 10:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 07:27:06 [end_date_ymd] => 2025-04-10 10:27:06 [RateCDR] => 1 ) [2025-04-10 10:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 07:27:06' and `end` < '2025-04-10 10:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 10:27:19] Production.INFO: count ==2538 [2025-04-10 10:27:20] Production.ERROR: pbx CDR StartTime 2025-04-10 07:27:06 - End Time 2025-04-10 10:27:06 [2025-04-10 10:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876264', 'tblTempUsageDetail_20' ) start [2025-04-10 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876264', 'tblTempUsageDetail_20' ) end [2025-04-10 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876264', 'tblTempVendorCDR_20' ) start [2025-04-10 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876264', 'tblTempVendorCDR_20' ) end [2025-04-10 10:27:20] Production.INFO: ProcessCDR(1,14876264,1,1,2) [2025-04-10 10:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876264', 'tblTempUsageDetail_20' ) start [2025-04-10 10:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876264', 'tblTempUsageDetail_20' ) end [2025-04-10 10:27:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 10:27:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 10:27:25] Production.INFO: ==11457== Releasing lock... [2025-04-10 10:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 10:27:25] Production.INFO: 47 MB #Memory Used# [2025-04-10 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 07:28:05 [end_date_ymd] => 2025-04-10 10:28:05 [RateCDR] => 1 ) [2025-04-10 10:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 07:28:05' and `end` < '2025-04-10 10:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 10:28:19] Production.INFO: count ==2552 [2025-04-10 10:28:20] Production.ERROR: pbx CDR StartTime 2025-04-10 07:28:05 - End Time 2025-04-10 10:28:05 [2025-04-10 10:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876269', 'tblTempUsageDetail_20' ) start [2025-04-10 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876269', 'tblTempUsageDetail_20' ) end [2025-04-10 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876269', 'tblTempVendorCDR_20' ) start [2025-04-10 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876269', 'tblTempVendorCDR_20' ) end [2025-04-10 10:28:20] Production.INFO: ProcessCDR(1,14876269,1,1,2) [2025-04-10 10:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876269', 'tblTempUsageDetail_20' ) start [2025-04-10 10:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876269', 'tblTempUsageDetail_20' ) end [2025-04-10 10:28:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 10:28:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 10:28:25] Production.INFO: ==11534== Releasing lock... [2025-04-10 10:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 10:28:25] Production.INFO: 47.25 MB #Memory Used# [2025-04-10 10:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 07:29:05 [end_date_ymd] => 2025-04-10 10:29:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 07:29:05' and `end` < '2025-04-10 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-04-10 10:29:18] Production.INFO: count ==2564 [2025-04-10 10:29:19] Production.ERROR: pbx CDR StartTime 2025-04-10 07:29:05 - End Time 2025-04-10 10:29:05 [2025-04-10 10:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876274', 'tblTempUsageDetail_20' ) start [2025-04-10 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876274', 'tblTempUsageDetail_20' ) end [2025-04-10 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876274', 'tblTempVendorCDR_20' ) start [2025-04-10 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876274', 'tblTempVendorCDR_20' ) end [2025-04-10 10:29:19] Production.INFO: ProcessCDR(1,14876274,1,1,2) [2025-04-10 10:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876274', 'tblTempUsageDetail_20' ) start [2025-04-10 10:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876274', 'tblTempUsageDetail_20' ) end [2025-04-10 10:29:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 10:29:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 10:29:24] Production.INFO: ==11612== Releasing lock... [2025-04-10 10:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 10:29:24] Production.INFO: 47.25 MB #Memory Used# [2025-04-10 10:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 07:30:06 [end_date_ymd] => 2025-04-10 10:30:06 [RateCDR] => 1 ) [2025-04-10 10:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 07:30:06' and `end` < '2025-04-10 10:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 10:30:19] Production.INFO: count ==2591 [2025-04-10 10:30:20] Production.ERROR: pbx CDR StartTime 2025-04-10 07:30:06 - End Time 2025-04-10 10:30:06 [2025-04-10 10:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876279', 'tblTempUsageDetail_20' ) start [2025-04-10 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876279', 'tblTempUsageDetail_20' ) end [2025-04-10 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876279', 'tblTempVendorCDR_20' ) start [2025-04-10 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876279', 'tblTempVendorCDR_20' ) end [2025-04-10 10:30:20] Production.INFO: ProcessCDR(1,14876279,1,1,2) [2025-04-10 10:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876279', 'tblTempUsageDetail_20' ) start [2025-04-10 10:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876279', 'tblTempUsageDetail_20' ) end [2025-04-10 10:30:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 10:30:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 10:30:26] Production.INFO: ==11732== Releasing lock... [2025-04-10 10:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 10:30:26] Production.INFO: 47.5 MB #Memory Used# [2025-04-10 10:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 07:31:05 [end_date_ymd] => 2025-04-10 10:31:05 [RateCDR] => 1 ) [2025-04-10 10:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 07:31:05' and `end` < '2025-04-10 10:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 10:31:19] Production.INFO: count ==2711 [2025-04-10 10:31:20] Production.ERROR: pbx CDR StartTime 2025-04-10 07:31:05 - End Time 2025-04-10 10:31:05 [2025-04-10 10:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876285', 'tblTempUsageDetail_20' ) start [2025-04-10 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876285', 'tblTempUsageDetail_20' ) end [2025-04-10 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876285', 'tblTempVendorCDR_20' ) start [2025-04-10 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876285', 'tblTempVendorCDR_20' ) end [2025-04-10 10:31:20] Production.INFO: ProcessCDR(1,14876285,1,1,2) [2025-04-10 10:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876285', 'tblTempUsageDetail_20' ) start [2025-04-10 10:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876285', 'tblTempUsageDetail_20' ) end [2025-04-10 10:31:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 10:31:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 10:31:25] Production.INFO: ==11822== Releasing lock... [2025-04-10 10:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 10:31:25] Production.INFO: 48.5 MB #Memory Used# [2025-04-10 10:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 07:32:06 [end_date_ymd] => 2025-04-10 10:32:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 07:32:06' and `end` < '2025-04-10 10: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-04-10 10:32:20] Production.INFO: count ==2751 [2025-04-10 10:32:21] Production.ERROR: pbx CDR StartTime 2025-04-10 07:32:06 - End Time 2025-04-10 10:32:06 [2025-04-10 10:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 10:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876290', 'tblTempUsageDetail_20' ) start [2025-04-10 10:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876290', 'tblTempUsageDetail_20' ) end [2025-04-10 10:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876290', 'tblTempVendorCDR_20' ) start [2025-04-10 10:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876290', 'tblTempVendorCDR_20' ) end [2025-04-10 10:32:21] Production.INFO: ProcessCDR(1,14876290,1,1,2) [2025-04-10 10:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876290', 'tblTempUsageDetail_20' ) start [2025-04-10 10:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876290', 'tblTempUsageDetail_20' ) end [2025-04-10 10:32:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 10:32:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 10:32:27] Production.INFO: ==11904== Releasing lock... [2025-04-10 10:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 10:32:27] Production.INFO: 48.75 MB #Memory Used# [2025-04-10 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 07:33:05 [end_date_ymd] => 2025-04-10 10:33:05 [RateCDR] => 1 ) [2025-04-10 10:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 07:33:05' and `end` < '2025-04-10 10:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 10:33:19] Production.INFO: count ==2756 [2025-04-10 10:33:20] Production.ERROR: pbx CDR StartTime 2025-04-10 07:33:05 - End Time 2025-04-10 10:33:05 [2025-04-10 10:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876295', 'tblTempUsageDetail_20' ) start [2025-04-10 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876295', 'tblTempUsageDetail_20' ) end [2025-04-10 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876295', 'tblTempVendorCDR_20' ) start [2025-04-10 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876295', 'tblTempVendorCDR_20' ) end [2025-04-10 10:33:20] Production.INFO: ProcessCDR(1,14876295,1,1,2) [2025-04-10 10:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876295', 'tblTempUsageDetail_20' ) start [2025-04-10 10:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876295', 'tblTempUsageDetail_20' ) end [2025-04-10 10:33:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 10:33:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 10:33:25] Production.INFO: ==11989== Releasing lock... [2025-04-10 10:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 10:33:25] Production.INFO: 48.75 MB #Memory Used# [2025-04-10 10:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 07:34:06 [end_date_ymd] => 2025-04-10 10:34:06 [RateCDR] => 1 ) [2025-04-10 10: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-04-10 07:34:06' and `end` < '2025-04-10 10: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-04-10 10:34:20] Production.INFO: count ==2783 [2025-04-10 10:34:21] Production.ERROR: pbx CDR StartTime 2025-04-10 07:34:06 - End Time 2025-04-10 10:34:06 [2025-04-10 10:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 10:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876300', 'tblTempUsageDetail_20' ) start [2025-04-10 10:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876300', 'tblTempUsageDetail_20' ) end [2025-04-10 10:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876300', 'tblTempVendorCDR_20' ) start [2025-04-10 10:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876300', 'tblTempVendorCDR_20' ) end [2025-04-10 10:34:21] Production.INFO: ProcessCDR(1,14876300,1,1,2) [2025-04-10 10:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876300', 'tblTempUsageDetail_20' ) start [2025-04-10 10:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876300', 'tblTempUsageDetail_20' ) end [2025-04-10 10:34:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 10:34:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 10:34:27] Production.INFO: ==12078== Releasing lock... [2025-04-10 10:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 10:34:27] Production.INFO: 49 MB #Memory Used# [2025-04-10 10:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 07:35:06 [end_date_ymd] => 2025-04-10 10:35:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 07:35:06' and `end` < '2025-04-10 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-04-10 10:35:19] Production.INFO: count ==2796 [2025-04-10 10:35:21] Production.ERROR: pbx CDR StartTime 2025-04-10 07:35:06 - End Time 2025-04-10 10:35:06 [2025-04-10 10:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 10:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876305', 'tblTempUsageDetail_20' ) start [2025-04-10 10:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876305', 'tblTempUsageDetail_20' ) end [2025-04-10 10:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876305', 'tblTempVendorCDR_20' ) start [2025-04-10 10:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876305', 'tblTempVendorCDR_20' ) end [2025-04-10 10:35:21] Production.INFO: ProcessCDR(1,14876305,1,1,2) [2025-04-10 10:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876305', 'tblTempUsageDetail_20' ) start [2025-04-10 10:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876305', 'tblTempUsageDetail_20' ) end [2025-04-10 10:35:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 10:35:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 10:35:27] Production.INFO: ==12163== Releasing lock... [2025-04-10 10:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 10:35:27] Production.INFO: 49 MB #Memory Used# [2025-04-10 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 07:36:05 [end_date_ymd] => 2025-04-10 10:36:05 [RateCDR] => 1 ) [2025-04-10 10:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 07:36:05' and `end` < '2025-04-10 10:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 10:36:19] Production.INFO: count ==2842 [2025-04-10 10:36:20] Production.ERROR: pbx CDR StartTime 2025-04-10 07:36:05 - End Time 2025-04-10 10:36:05 [2025-04-10 10:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876310', 'tblTempUsageDetail_20' ) start [2025-04-10 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876310', 'tblTempUsageDetail_20' ) end [2025-04-10 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876310', 'tblTempVendorCDR_20' ) start [2025-04-10 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876310', 'tblTempVendorCDR_20' ) end [2025-04-10 10:36:20] Production.INFO: ProcessCDR(1,14876310,1,1,2) [2025-04-10 10:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876310', 'tblTempUsageDetail_20' ) start [2025-04-10 10:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876310', 'tblTempUsageDetail_20' ) end [2025-04-10 10:36:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 10:36:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 10:36:26] Production.INFO: ==12246== Releasing lock... [2025-04-10 10:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 10:36:26] Production.INFO: 49.25 MB #Memory Used# [2025-04-10 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 07:37:05 [end_date_ymd] => 2025-04-10 10:37:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 07:37:05' and `end` < '2025-04-10 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-04-10 10:37:18] Production.INFO: count ==2869 [2025-04-10 10:37:19] Production.ERROR: pbx CDR StartTime 2025-04-10 07:37:05 - End Time 2025-04-10 10:37:05 [2025-04-10 10:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 10:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876315', 'tblTempUsageDetail_20' ) start [2025-04-10 10:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876315', 'tblTempUsageDetail_20' ) end [2025-04-10 10:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876315', 'tblTempVendorCDR_20' ) start [2025-04-10 10:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876315', 'tblTempVendorCDR_20' ) end [2025-04-10 10:37:19] Production.INFO: ProcessCDR(1,14876315,1,1,2) [2025-04-10 10:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876315', 'tblTempUsageDetail_20' ) start [2025-04-10 10:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876315', 'tblTempUsageDetail_20' ) end [2025-04-10 10:37:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 10:37:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 10:37:24] Production.INFO: ==12328== Releasing lock... [2025-04-10 10:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 10:37:24] Production.INFO: 49.5 MB #Memory Used# [2025-04-10 10:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 07:38:06 [end_date_ymd] => 2025-04-10 10:38:06 [RateCDR] => 1 ) [2025-04-10 10: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-04-10 07:38:06' and `end` < '2025-04-10 10: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-04-10 10:38:19] Production.INFO: count ==2878 [2025-04-10 10:38:20] Production.ERROR: pbx CDR StartTime 2025-04-10 07:38:06 - End Time 2025-04-10 10:38:06 [2025-04-10 10:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876320', 'tblTempUsageDetail_20' ) start [2025-04-10 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876320', 'tblTempUsageDetail_20' ) end [2025-04-10 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876320', 'tblTempVendorCDR_20' ) start [2025-04-10 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876320', 'tblTempVendorCDR_20' ) end [2025-04-10 10:38:20] Production.INFO: ProcessCDR(1,14876320,1,1,2) [2025-04-10 10:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876320', 'tblTempUsageDetail_20' ) start [2025-04-10 10:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876320', 'tblTempUsageDetail_20' ) end [2025-04-10 10:38:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 10:38:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 10:38:26] Production.INFO: ==12404== Releasing lock... [2025-04-10 10:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 10:38:26] Production.INFO: 49.5 MB #Memory Used# [2025-04-10 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 07:39:05 [end_date_ymd] => 2025-04-10 10:39:05 [RateCDR] => 1 ) [2025-04-10 10:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 07:39:05' and `end` < '2025-04-10 10:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 10:39:18] Production.INFO: count ==2891 [2025-04-10 10:39:20] Production.ERROR: pbx CDR StartTime 2025-04-10 07:39:05 - End Time 2025-04-10 10:39:05 [2025-04-10 10:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876325', 'tblTempUsageDetail_20' ) start [2025-04-10 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876325', 'tblTempUsageDetail_20' ) end [2025-04-10 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876325', 'tblTempVendorCDR_20' ) start [2025-04-10 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876325', 'tblTempVendorCDR_20' ) end [2025-04-10 10:39:20] Production.INFO: ProcessCDR(1,14876325,1,1,2) [2025-04-10 10:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876325', 'tblTempUsageDetail_20' ) start [2025-04-10 10:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876325', 'tblTempUsageDetail_20' ) end [2025-04-10 10:39:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 10:39:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 10:39:25] Production.INFO: ==12480== Releasing lock... [2025-04-10 10:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 10:39:25] Production.INFO: 49.5 MB #Memory Used# [2025-04-10 10:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 07:40:06 [end_date_ymd] => 2025-04-10 10:40:06 [RateCDR] => 1 ) [2025-04-10 10:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 07:40:06' and `end` < '2025-04-10 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-04-10 10:40:20] Production.INFO: count ==2913 [2025-04-10 10:40:21] Production.ERROR: pbx CDR StartTime 2025-04-10 07:40:06 - End Time 2025-04-10 10:40:06 [2025-04-10 10:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876330', 'tblTempUsageDetail_20' ) start [2025-04-10 10:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876330', 'tblTempUsageDetail_20' ) end [2025-04-10 10:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876330', 'tblTempVendorCDR_20' ) start [2025-04-10 10:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876330', 'tblTempVendorCDR_20' ) end [2025-04-10 10:40:22] Production.INFO: ProcessCDR(1,14876330,1,1,2) [2025-04-10 10:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876330', 'tblTempUsageDetail_20' ) start [2025-04-10 10:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876330', 'tblTempUsageDetail_20' ) end [2025-04-10 10:40:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 10:40:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 10:40:27] Production.INFO: ==12558== Releasing lock... [2025-04-10 10:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 10:40:27] Production.INFO: 49.5 MB #Memory Used# [2025-04-10 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 07:41:05 [end_date_ymd] => 2025-04-10 10:41:05 [RateCDR] => 1 ) [2025-04-10 10: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-04-10 07:41:05' and `end` < '2025-04-10 10: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-04-10 10:41:19] Production.INFO: count ==3042 [2025-04-10 10:41:20] Production.ERROR: pbx CDR StartTime 2025-04-10 07:41:05 - End Time 2025-04-10 10:41:05 [2025-04-10 10:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876336', 'tblTempUsageDetail_20' ) start [2025-04-10 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876336', 'tblTempUsageDetail_20' ) end [2025-04-10 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876336', 'tblTempVendorCDR_20' ) start [2025-04-10 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876336', 'tblTempVendorCDR_20' ) end [2025-04-10 10:41:20] Production.INFO: ProcessCDR(1,14876336,1,1,2) [2025-04-10 10:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876336', 'tblTempUsageDetail_20' ) start [2025-04-10 10:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876336', 'tblTempUsageDetail_20' ) end [2025-04-10 10:41:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 10:41:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 10:41:25] Production.INFO: ==12642== Releasing lock... [2025-04-10 10:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 10:41:25] Production.INFO: 51 MB #Memory Used# [2025-04-10 10:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 07:42:06 [end_date_ymd] => 2025-04-10 10:42:06 [RateCDR] => 1 ) [2025-04-10 10: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-04-10 07:42:06' and `end` < '2025-04-10 10: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-04-10 10:42:20] Production.INFO: count ==3061 [2025-04-10 10:42:21] Production.ERROR: pbx CDR StartTime 2025-04-10 07:42:06 - End Time 2025-04-10 10:42:06 [2025-04-10 10:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 10:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876341', 'tblTempUsageDetail_20' ) start [2025-04-10 10:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876341', 'tblTempUsageDetail_20' ) end [2025-04-10 10:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876341', 'tblTempVendorCDR_20' ) start [2025-04-10 10:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876341', 'tblTempVendorCDR_20' ) end [2025-04-10 10:42:21] Production.INFO: ProcessCDR(1,14876341,1,1,2) [2025-04-10 10:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876341', 'tblTempUsageDetail_20' ) start [2025-04-10 10:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876341', 'tblTempUsageDetail_20' ) end [2025-04-10 10:42:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 10:42:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 10:42:26] Production.INFO: ==12721== Releasing lock... [2025-04-10 10:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 10:42:26] Production.INFO: 50.75 MB #Memory Used# [2025-04-10 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 07:43:05 [end_date_ymd] => 2025-04-10 10:43:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 07:43:05' and `end` < '2025-04-10 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-04-10 10:43:19] Production.INFO: count ==3071 [2025-04-10 10:43:20] Production.ERROR: pbx CDR StartTime 2025-04-10 07:43:05 - End Time 2025-04-10 10:43:05 [2025-04-10 10:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876346', 'tblTempUsageDetail_20' ) start [2025-04-10 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876346', 'tblTempUsageDetail_20' ) end [2025-04-10 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876346', 'tblTempVendorCDR_20' ) start [2025-04-10 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876346', 'tblTempVendorCDR_20' ) end [2025-04-10 10:43:20] Production.INFO: ProcessCDR(1,14876346,1,1,2) [2025-04-10 10:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876346', 'tblTempUsageDetail_20' ) start [2025-04-10 10:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876346', 'tblTempUsageDetail_20' ) end [2025-04-10 10:43:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 10:43:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 10:43:26] Production.INFO: ==12798== Releasing lock... [2025-04-10 10:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 10:43:26] Production.INFO: 51 MB #Memory Used# [2025-04-10 10:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 07:44:05 [end_date_ymd] => 2025-04-10 10:44:05 [RateCDR] => 1 ) [2025-04-10 10:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 07:44:05' and `end` < '2025-04-10 10:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 10:44:20] Production.INFO: count ==3083 [2025-04-10 10:44:21] Production.ERROR: pbx CDR StartTime 2025-04-10 07:44:05 - End Time 2025-04-10 10:44:05 [2025-04-10 10:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 10:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876351', 'tblTempUsageDetail_20' ) start [2025-04-10 10:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876351', 'tblTempUsageDetail_20' ) end [2025-04-10 10:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876351', 'tblTempVendorCDR_20' ) start [2025-04-10 10:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876351', 'tblTempVendorCDR_20' ) end [2025-04-10 10:44:21] Production.INFO: ProcessCDR(1,14876351,1,1,2) [2025-04-10 10:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876351', 'tblTempUsageDetail_20' ) start [2025-04-10 10:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876351', 'tblTempUsageDetail_20' ) end [2025-04-10 10:44:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 10:44:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 10:44:26] Production.INFO: ==12872== Releasing lock... [2025-04-10 10:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 10:44:26] Production.INFO: 51 MB #Memory Used# [2025-04-10 10:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 07:45:04 [end_date_ymd] => 2025-04-10 10:45:04 [RateCDR] => 1 ) [2025-04-10 10:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 07:45:04' and `end` < '2025-04-10 10:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 10:45:19] Production.INFO: count ==3104 [2025-04-10 10:45:20] Production.ERROR: pbx CDR StartTime 2025-04-10 07:45:04 - End Time 2025-04-10 10:45:04 [2025-04-10 10:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876356', 'tblTempUsageDetail_20' ) start [2025-04-10 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876356', 'tblTempUsageDetail_20' ) end [2025-04-10 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876356', 'tblTempVendorCDR_20' ) start [2025-04-10 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876356', 'tblTempVendorCDR_20' ) end [2025-04-10 10:45:20] Production.INFO: ProcessCDR(1,14876356,1,1,2) [2025-04-10 10:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876356', 'tblTempUsageDetail_20' ) start [2025-04-10 10:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876356', 'tblTempUsageDetail_20' ) end [2025-04-10 10:45:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 10:45:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 10:45:25] Production.INFO: ==12949== Releasing lock... [2025-04-10 10:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 10:45:25] Production.INFO: 51.25 MB #Memory Used# [2025-04-10 10:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 07:46:05 [end_date_ymd] => 2025-04-10 10:46:05 [RateCDR] => 1 ) [2025-04-10 10:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 07:46:05' and `end` < '2025-04-10 10:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 10:46:19] Production.INFO: count ==3135 [2025-04-10 10:46:20] Production.ERROR: pbx CDR StartTime 2025-04-10 07:46:05 - End Time 2025-04-10 10:46:05 [2025-04-10 10:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876361', 'tblTempUsageDetail_20' ) start [2025-04-10 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876361', 'tblTempUsageDetail_20' ) end [2025-04-10 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876361', 'tblTempVendorCDR_20' ) start [2025-04-10 10:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876361', 'tblTempVendorCDR_20' ) end [2025-04-10 10:46:20] Production.INFO: ProcessCDR(1,14876361,1,1,2) [2025-04-10 10:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876361', 'tblTempUsageDetail_20' ) start [2025-04-10 10:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876361', 'tblTempUsageDetail_20' ) end [2025-04-10 10:46:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 10:46:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 10:46:26] Production.INFO: ==13060== Releasing lock... [2025-04-10 10:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 10:46:26] Production.INFO: 51.25 MB #Memory Used# [2025-04-10 10:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 07:47:04 [end_date_ymd] => 2025-04-10 10:47:04 [RateCDR] => 1 ) [2025-04-10 10:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 07:47:04' and `end` < '2025-04-10 10:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 10:47:18] Production.INFO: count ==3171 [2025-04-10 10:47:20] Production.ERROR: pbx CDR StartTime 2025-04-10 07:47:04 - End Time 2025-04-10 10:47:04 [2025-04-10 10:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876366', 'tblTempUsageDetail_20' ) start [2025-04-10 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876366', 'tblTempUsageDetail_20' ) end [2025-04-10 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876366', 'tblTempVendorCDR_20' ) start [2025-04-10 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876366', 'tblTempVendorCDR_20' ) end [2025-04-10 10:47:20] Production.INFO: ProcessCDR(1,14876366,1,1,2) [2025-04-10 10:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876366', 'tblTempUsageDetail_20' ) start [2025-04-10 10:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876366', 'tblTempUsageDetail_20' ) end [2025-04-10 10:47:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 10:47:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 10:47:25] Production.INFO: ==13136== Releasing lock... [2025-04-10 10:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 10:47:25] Production.INFO: 51.75 MB #Memory Used# [2025-04-10 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 07:48:05 [end_date_ymd] => 2025-04-10 10:48:05 [RateCDR] => 1 ) [2025-04-10 10:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 07:48:05' and `end` < '2025-04-10 10:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 10:48:19] Production.INFO: count ==3180 [2025-04-10 10:48:20] Production.ERROR: pbx CDR StartTime 2025-04-10 07:48:05 - End Time 2025-04-10 10:48:05 [2025-04-10 10:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876371', 'tblTempUsageDetail_20' ) start [2025-04-10 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876371', 'tblTempUsageDetail_20' ) end [2025-04-10 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876371', 'tblTempVendorCDR_20' ) start [2025-04-10 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876371', 'tblTempVendorCDR_20' ) end [2025-04-10 10:48:20] Production.INFO: ProcessCDR(1,14876371,1,1,2) [2025-04-10 10:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876371', 'tblTempUsageDetail_20' ) start [2025-04-10 10:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876371', 'tblTempUsageDetail_20' ) end [2025-04-10 10:48:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 10:48:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 10:48:25] Production.INFO: ==13210== Releasing lock... [2025-04-10 10:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 10:48:25] Production.INFO: 52 MB #Memory Used# [2025-04-10 10:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 07:49:06 [end_date_ymd] => 2025-04-10 10:49:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 07:49:06' and `end` < '2025-04-10 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-04-10 10:49:19] Production.INFO: count ==3187 [2025-04-10 10:49:21] Production.ERROR: pbx CDR StartTime 2025-04-10 07:49:06 - End Time 2025-04-10 10:49:06 [2025-04-10 10:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 10:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876376', 'tblTempUsageDetail_20' ) start [2025-04-10 10:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876376', 'tblTempUsageDetail_20' ) end [2025-04-10 10:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876376', 'tblTempVendorCDR_20' ) start [2025-04-10 10:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876376', 'tblTempVendorCDR_20' ) end [2025-04-10 10:49:21] Production.INFO: ProcessCDR(1,14876376,1,1,2) [2025-04-10 10:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876376', 'tblTempUsageDetail_20' ) start [2025-04-10 10:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876376', 'tblTempUsageDetail_20' ) end [2025-04-10 10:49:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 10:49:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 10:49:26] Production.INFO: ==13292== Releasing lock... [2025-04-10 10:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 10:49:26] Production.INFO: 51.75 MB #Memory Used# [2025-04-10 10:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 07:50:06 [end_date_ymd] => 2025-04-10 10:50:06 [RateCDR] => 1 ) [2025-04-10 10:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 07:50:06' and `end` < '2025-04-10 10:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 10:50:20] Production.INFO: count ==3208 [2025-04-10 10:50:21] Production.ERROR: pbx CDR StartTime 2025-04-10 07:50:06 - End Time 2025-04-10 10:50:06 [2025-04-10 10:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 10:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876382', 'tblTempUsageDetail_20' ) start [2025-04-10 10:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876382', 'tblTempUsageDetail_20' ) end [2025-04-10 10:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876382', 'tblTempVendorCDR_20' ) start [2025-04-10 10:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876382', 'tblTempVendorCDR_20' ) end [2025-04-10 10:50:21] Production.INFO: ProcessCDR(1,14876382,1,1,2) [2025-04-10 10:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876382', 'tblTempUsageDetail_20' ) start [2025-04-10 10:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876382', 'tblTempUsageDetail_20' ) end [2025-04-10 10:50:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 10:50:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 10:50:27] Production.INFO: ==13368== Releasing lock... [2025-04-10 10:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 10:50:27] Production.INFO: 52 MB #Memory Used# [2025-04-10 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 07:51:05 [end_date_ymd] => 2025-04-10 10:51:05 [RateCDR] => 1 ) [2025-04-10 10:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 07:51:05' and `end` < '2025-04-10 10:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 10:51:19] Production.INFO: count ==3334 [2025-04-10 10:51:20] Production.ERROR: pbx CDR StartTime 2025-04-10 07:51:05 - End Time 2025-04-10 10:51:05 [2025-04-10 10:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876387', 'tblTempUsageDetail_20' ) start [2025-04-10 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876387', 'tblTempUsageDetail_20' ) end [2025-04-10 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876387', 'tblTempVendorCDR_20' ) start [2025-04-10 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876387', 'tblTempVendorCDR_20' ) end [2025-04-10 10:51:20] Production.INFO: ProcessCDR(1,14876387,1,1,2) [2025-04-10 10:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876387', 'tblTempUsageDetail_20' ) start [2025-04-10 10:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876387', 'tblTempUsageDetail_20' ) end [2025-04-10 10:51:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 10:51:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 10:51:26] Production.INFO: ==13447== Releasing lock... [2025-04-10 10:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 10:51:26] Production.INFO: 52.75 MB #Memory Used# [2025-04-10 10:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 07:52:05 [end_date_ymd] => 2025-04-10 10:52:05 [RateCDR] => 1 ) [2025-04-10 10:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 07:52:05' and `end` < '2025-04-10 10:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 10:52:18] Production.INFO: count ==3359 [2025-04-10 10:52:20] Production.ERROR: pbx CDR StartTime 2025-04-10 07:52:05 - End Time 2025-04-10 10:52:05 [2025-04-10 10:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876388', 'tblTempUsageDetail_20' ) start [2025-04-10 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876388', 'tblTempUsageDetail_20' ) end [2025-04-10 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876388', 'tblTempVendorCDR_20' ) start [2025-04-10 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876388', 'tblTempVendorCDR_20' ) end [2025-04-10 10:52:20] Production.INFO: ProcessCDR(1,14876388,1,1,2) [2025-04-10 10:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876388', 'tblTempUsageDetail_20' ) start [2025-04-10 10:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876388', 'tblTempUsageDetail_20' ) end [2025-04-10 10:52:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 10:52:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 10:52:25] Production.INFO: ==13541== Releasing lock... [2025-04-10 10:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 10:52:25] Production.INFO: 53 MB #Memory Used# [2025-04-10 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 07:53:05 [end_date_ymd] => 2025-04-10 10:53:05 [RateCDR] => 1 ) [2025-04-10 10:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 07:53:05' and `end` < '2025-04-10 10:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 10:53:19] Production.INFO: count ==3359 [2025-04-10 10:53:20] Production.ERROR: pbx CDR StartTime 2025-04-10 07:53:05 - End Time 2025-04-10 10:53:05 [2025-04-10 10:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876397', 'tblTempUsageDetail_20' ) start [2025-04-10 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876397', 'tblTempUsageDetail_20' ) end [2025-04-10 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876397', 'tblTempVendorCDR_20' ) start [2025-04-10 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876397', 'tblTempVendorCDR_20' ) end [2025-04-10 10:53:20] Production.INFO: ProcessCDR(1,14876397,1,1,2) [2025-04-10 10:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876397', 'tblTempUsageDetail_20' ) start [2025-04-10 10:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876397', 'tblTempUsageDetail_20' ) end [2025-04-10 10:53:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 10:53:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 10:53:25] Production.INFO: ==13617== Releasing lock... [2025-04-10 10:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 10:53:25] Production.INFO: 54 MB #Memory Used# [2025-04-10 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 07:54:05 [end_date_ymd] => 2025-04-10 10:54:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 07:54:05' and `end` < '2025-04-10 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-04-10 10:54:19] Production.INFO: count ==3379 [2025-04-10 10:54:20] Production.ERROR: pbx CDR StartTime 2025-04-10 07:54:05 - End Time 2025-04-10 10:54:05 [2025-04-10 10:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876402', 'tblTempUsageDetail_20' ) start [2025-04-10 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876402', 'tblTempUsageDetail_20' ) end [2025-04-10 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876402', 'tblTempVendorCDR_20' ) start [2025-04-10 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876402', 'tblTempVendorCDR_20' ) end [2025-04-10 10:54:20] Production.INFO: ProcessCDR(1,14876402,1,1,2) [2025-04-10 10:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876402', 'tblTempUsageDetail_20' ) start [2025-04-10 10:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876402', 'tblTempUsageDetail_20' ) end [2025-04-10 10:54:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 10:54:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 10:54:25] Production.INFO: ==13694== Releasing lock... [2025-04-10 10:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 10:54:25] Production.INFO: 54.25 MB #Memory Used# [2025-04-10 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 07:55:05 [end_date_ymd] => 2025-04-10 10:55:05 [RateCDR] => 1 ) [2025-04-10 10:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 07:55:05' and `end` < '2025-04-10 10:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 10:55:19] Production.INFO: count ==3387 [2025-04-10 10:55:20] Production.ERROR: pbx CDR StartTime 2025-04-10 07:55:05 - End Time 2025-04-10 10:55:05 [2025-04-10 10:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876407', 'tblTempUsageDetail_20' ) start [2025-04-10 10:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876407', 'tblTempUsageDetail_20' ) end [2025-04-10 10:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876407', 'tblTempVendorCDR_20' ) start [2025-04-10 10:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876407', 'tblTempVendorCDR_20' ) end [2025-04-10 10:55:21] Production.INFO: ProcessCDR(1,14876407,1,1,2) [2025-04-10 10:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876407', 'tblTempUsageDetail_20' ) start [2025-04-10 10:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876407', 'tblTempUsageDetail_20' ) end [2025-04-10 10:55:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 10:55:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 10:55:26] Production.INFO: ==13771== Releasing lock... [2025-04-10 10:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 10:55:26] Production.INFO: 53.25 MB #Memory Used# [2025-04-10 10:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 07:56:05 [end_date_ymd] => 2025-04-10 10:56:05 [RateCDR] => 1 ) [2025-04-10 10:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 07:56:05' and `end` < '2025-04-10 10:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 10:56:19] Production.INFO: count ==3395 [2025-04-10 10:56:20] Production.ERROR: pbx CDR StartTime 2025-04-10 07:56:05 - End Time 2025-04-10 10:56:05 [2025-04-10 10:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 10:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876412', 'tblTempUsageDetail_20' ) start [2025-04-10 10:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876412', 'tblTempUsageDetail_20' ) end [2025-04-10 10:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876412', 'tblTempVendorCDR_20' ) start [2025-04-10 10:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876412', 'tblTempVendorCDR_20' ) end [2025-04-10 10:56:20] Production.INFO: ProcessCDR(1,14876412,1,1,2) [2025-04-10 10:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876412', 'tblTempUsageDetail_20' ) start [2025-04-10 10:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876412', 'tblTempUsageDetail_20' ) end [2025-04-10 10:56:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 10:56:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 10:56:25] Production.INFO: ==13853== Releasing lock... [2025-04-10 10:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 10:56:25] Production.INFO: 53.25 MB #Memory Used# [2025-04-10 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 07:57:05 [end_date_ymd] => 2025-04-10 10:57:05 [RateCDR] => 1 ) [2025-04-10 10:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 07:57:05' and `end` < '2025-04-10 10:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 10:57:18] Production.INFO: count ==3398 [2025-04-10 10:57:20] Production.ERROR: pbx CDR StartTime 2025-04-10 07:57:05 - End Time 2025-04-10 10:57:05 [2025-04-10 10:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876417', 'tblTempUsageDetail_20' ) start [2025-04-10 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876417', 'tblTempUsageDetail_20' ) end [2025-04-10 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876417', 'tblTempVendorCDR_20' ) start [2025-04-10 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876417', 'tblTempVendorCDR_20' ) end [2025-04-10 10:57:20] Production.INFO: ProcessCDR(1,14876417,1,1,2) [2025-04-10 10:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876417', 'tblTempUsageDetail_20' ) start [2025-04-10 10:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876417', 'tblTempUsageDetail_20' ) end [2025-04-10 10:57:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 10:57:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 10:57:25] Production.INFO: ==13933== Releasing lock... [2025-04-10 10:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 10:57:25] Production.INFO: 53.25 MB #Memory Used# [2025-04-10 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 07:58:05 [end_date_ymd] => 2025-04-10 10:58:05 [RateCDR] => 1 ) [2025-04-10 10:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 07:58:05' and `end` < '2025-04-10 10:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 10:58:19] Production.INFO: count ==3432 [2025-04-10 10:58:20] Production.ERROR: pbx CDR StartTime 2025-04-10 07:58:05 - End Time 2025-04-10 10:58:05 [2025-04-10 10:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876422', 'tblTempUsageDetail_20' ) start [2025-04-10 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876422', 'tblTempUsageDetail_20' ) end [2025-04-10 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876422', 'tblTempVendorCDR_20' ) start [2025-04-10 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876422', 'tblTempVendorCDR_20' ) end [2025-04-10 10:58:20] Production.INFO: ProcessCDR(1,14876422,1,1,2) [2025-04-10 10:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876422', 'tblTempUsageDetail_20' ) start [2025-04-10 10:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876422', 'tblTempUsageDetail_20' ) end [2025-04-10 10:58:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 10:58:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 10:58:25] Production.INFO: ==14005== Releasing lock... [2025-04-10 10:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 10:58:25] Production.INFO: 53.5 MB #Memory Used# [2025-04-10 10:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 07:59:05 [end_date_ymd] => 2025-04-10 10:59:05 [RateCDR] => 1 ) [2025-04-10 10:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 07:59:05' and `end` < '2025-04-10 10:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 10:59:18] Production.INFO: count ==3440 [2025-04-10 10:59:20] Production.ERROR: pbx CDR StartTime 2025-04-10 07:59:05 - End Time 2025-04-10 10:59:05 [2025-04-10 10:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876427', 'tblTempUsageDetail_20' ) start [2025-04-10 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876427', 'tblTempUsageDetail_20' ) end [2025-04-10 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876427', 'tblTempVendorCDR_20' ) start [2025-04-10 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876427', 'tblTempVendorCDR_20' ) end [2025-04-10 10:59:20] Production.INFO: ProcessCDR(1,14876427,1,1,2) [2025-04-10 10:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 10:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 10:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876427', 'tblTempUsageDetail_20' ) start [2025-04-10 10:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876427', 'tblTempUsageDetail_20' ) end [2025-04-10 10:59:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 10:59:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 10:59:25] Production.INFO: ==14086== Releasing lock... [2025-04-10 10:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 10:59:25] Production.INFO: 53.75 MB #Memory Used# [2025-04-10 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 08:00:06 [end_date_ymd] => 2025-04-10 11:00:06 [RateCDR] => 1 ) [2025-04-10 11:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 08:00:06' and `end` < '2025-04-10 11:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 11:00:20] Production.INFO: count ==3471 [2025-04-10 11:00:22] Production.ERROR: pbx CDR StartTime 2025-04-10 08:00:06 - End Time 2025-04-10 11:00:06 [2025-04-10 11:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876433', 'tblTempUsageDetail_20' ) start [2025-04-10 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876433', 'tblTempUsageDetail_20' ) end [2025-04-10 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876433', 'tblTempVendorCDR_20' ) start [2025-04-10 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876433', 'tblTempVendorCDR_20' ) end [2025-04-10 11:00:22] Production.INFO: ProcessCDR(1,14876433,1,1,2) [2025-04-10 11:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876433', 'tblTempUsageDetail_20' ) start [2025-04-10 11:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876433', 'tblTempUsageDetail_20' ) end [2025-04-10 11:00:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 11:00:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 11:00:27] Production.INFO: ==14165== Releasing lock... [2025-04-10 11:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 11:00:27] Production.INFO: 54 MB #Memory Used# [2025-04-10 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 08:01:05 [end_date_ymd] => 2025-04-10 11:01:05 [RateCDR] => 1 ) [2025-04-10 11:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 08:01:05' and `end` < '2025-04-10 11:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 11:01:19] Production.INFO: count ==3557 [2025-04-10 11:01:21] Production.ERROR: pbx CDR StartTime 2025-04-10 08:01:05 - End Time 2025-04-10 11:01:05 [2025-04-10 11:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 11:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876438', 'tblTempUsageDetail_20' ) start [2025-04-10 11:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876438', 'tblTempUsageDetail_20' ) end [2025-04-10 11:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876438', 'tblTempVendorCDR_20' ) start [2025-04-10 11:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876438', 'tblTempVendorCDR_20' ) end [2025-04-10 11:01:21] Production.INFO: ProcessCDR(1,14876438,1,1,2) [2025-04-10 11:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876438', 'tblTempUsageDetail_20' ) start [2025-04-10 11:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876438', 'tblTempUsageDetail_20' ) end [2025-04-10 11:01:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 11:01:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 11:01:26] Production.INFO: ==14301== Releasing lock... [2025-04-10 11:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 11:01:26] Production.INFO: 54.5 MB #Memory Used# [2025-04-10 11:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 08:02:05 [end_date_ymd] => 2025-04-10 11:02:05 [RateCDR] => 1 ) [2025-04-10 11:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 08:02:05' and `end` < '2025-04-10 11:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 11:02:19] Production.INFO: count ==3564 [2025-04-10 11:02:20] Production.ERROR: pbx CDR StartTime 2025-04-10 08:02:05 - End Time 2025-04-10 11:02:05 [2025-04-10 11:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876443', 'tblTempUsageDetail_20' ) start [2025-04-10 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876443', 'tblTempUsageDetail_20' ) end [2025-04-10 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876443', 'tblTempVendorCDR_20' ) start [2025-04-10 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876443', 'tblTempVendorCDR_20' ) end [2025-04-10 11:02:20] Production.INFO: ProcessCDR(1,14876443,1,1,2) [2025-04-10 11:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876443', 'tblTempUsageDetail_20' ) start [2025-04-10 11:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876443', 'tblTempUsageDetail_20' ) end [2025-04-10 11:02:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 11:02:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 11:02:26] Production.INFO: ==14452== Releasing lock... [2025-04-10 11:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 11:02:26] Production.INFO: 54.5 MB #Memory Used# [2025-04-10 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 08:03:05 [end_date_ymd] => 2025-04-10 11:03:05 [RateCDR] => 1 ) [2025-04-10 11:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 08:03:05' and `end` < '2025-04-10 11:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 11:03:19] Production.INFO: count ==3571 [2025-04-10 11:03:20] Production.ERROR: pbx CDR StartTime 2025-04-10 08:03:05 - End Time 2025-04-10 11:03:05 [2025-04-10 11:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876448', 'tblTempUsageDetail_20' ) start [2025-04-10 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876448', 'tblTempUsageDetail_20' ) end [2025-04-10 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876448', 'tblTempVendorCDR_20' ) start [2025-04-10 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876448', 'tblTempVendorCDR_20' ) end [2025-04-10 11:03:20] Production.INFO: ProcessCDR(1,14876448,1,1,2) [2025-04-10 11:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876448', 'tblTempUsageDetail_20' ) start [2025-04-10 11:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876448', 'tblTempUsageDetail_20' ) end [2025-04-10 11:03:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 11:03:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 11:03:26] Production.INFO: ==14524== Releasing lock... [2025-04-10 11:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 11:03:26] Production.INFO: 54.75 MB #Memory Used# [2025-04-10 11:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 08:04:06 [end_date_ymd] => 2025-04-10 11:04:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 08:04:06' and `end` < '2025-04-10 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-04-10 11:04:20] Production.INFO: count ==3581 [2025-04-10 11:04:21] Production.ERROR: pbx CDR StartTime 2025-04-10 08:04:06 - End Time 2025-04-10 11:04:06 [2025-04-10 11:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876453', 'tblTempUsageDetail_20' ) start [2025-04-10 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876453', 'tblTempUsageDetail_20' ) end [2025-04-10 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876453', 'tblTempVendorCDR_20' ) start [2025-04-10 11:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876453', 'tblTempVendorCDR_20' ) end [2025-04-10 11:04:21] Production.INFO: ProcessCDR(1,14876453,1,1,2) [2025-04-10 11:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876453', 'tblTempUsageDetail_20' ) start [2025-04-10 11:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876453', 'tblTempUsageDetail_20' ) end [2025-04-10 11:04:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 11:04:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 11:04:26] Production.INFO: ==14607== Releasing lock... [2025-04-10 11:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 11:04:26] Production.INFO: 54.75 MB #Memory Used# [2025-04-10 11:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 08:05:05 [end_date_ymd] => 2025-04-10 11:05:05 [RateCDR] => 1 ) [2025-04-10 11:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 08:05:05' and `end` < '2025-04-10 11:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 11:05:19] Production.INFO: count ==3576 [2025-04-10 11:05:20] Production.ERROR: pbx CDR StartTime 2025-04-10 08:05:05 - End Time 2025-04-10 11:05:05 [2025-04-10 11:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 11:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876458', 'tblTempUsageDetail_20' ) start [2025-04-10 11:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876458', 'tblTempUsageDetail_20' ) end [2025-04-10 11:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876458', 'tblTempVendorCDR_20' ) start [2025-04-10 11:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876458', 'tblTempVendorCDR_20' ) end [2025-04-10 11:05:20] Production.INFO: ProcessCDR(1,14876458,1,1,2) [2025-04-10 11:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876458', 'tblTempUsageDetail_20' ) start [2025-04-10 11:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876458', 'tblTempUsageDetail_20' ) end [2025-04-10 11:05:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 11:05:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 11:05:26] Production.INFO: ==14756== Releasing lock... [2025-04-10 11:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 11:05:26] Production.INFO: 54.75 MB #Memory Used# [2025-04-10 11:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 08:06:05 [end_date_ymd] => 2025-04-10 11:06:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 08:06:05' and `end` < '2025-04-10 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-04-10 11:06:19] Production.INFO: count ==3574 [2025-04-10 11:06:20] Production.ERROR: pbx CDR StartTime 2025-04-10 08:06:05 - End Time 2025-04-10 11:06:05 [2025-04-10 11:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876462', 'tblTempUsageDetail_20' ) start [2025-04-10 11:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876462', 'tblTempUsageDetail_20' ) end [2025-04-10 11:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876462', 'tblTempVendorCDR_20' ) start [2025-04-10 11:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876462', 'tblTempVendorCDR_20' ) end [2025-04-10 11:06:21] Production.INFO: ProcessCDR(1,14876462,1,1,2) [2025-04-10 11:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876462', 'tblTempUsageDetail_20' ) start [2025-04-10 11:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876462', 'tblTempUsageDetail_20' ) end [2025-04-10 11:06:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 11:06:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 11:06:26] Production.INFO: ==14835== Releasing lock... [2025-04-10 11:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 11:06:26] Production.INFO: 55.25 MB #Memory Used# [2025-04-10 11:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 08:07:05 [end_date_ymd] => 2025-04-10 11:07:05 [RateCDR] => 1 ) [2025-04-10 11:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 08:07:05' and `end` < '2025-04-10 11:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 11:07:18] Production.INFO: count ==3559 [2025-04-10 11:07:20] Production.ERROR: pbx CDR StartTime 2025-04-10 08:07:05 - End Time 2025-04-10 11:07:05 [2025-04-10 11:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876468', 'tblTempUsageDetail_20' ) start [2025-04-10 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876468', 'tblTempUsageDetail_20' ) end [2025-04-10 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876468', 'tblTempVendorCDR_20' ) start [2025-04-10 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876468', 'tblTempVendorCDR_20' ) end [2025-04-10 11:07:20] Production.INFO: ProcessCDR(1,14876468,1,1,2) [2025-04-10 11:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876468', 'tblTempUsageDetail_20' ) start [2025-04-10 11:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876468', 'tblTempUsageDetail_20' ) end [2025-04-10 11:07:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 11:07:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 11:07:26] Production.INFO: ==14910== Releasing lock... [2025-04-10 11:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 11:07:26] Production.INFO: 54.5 MB #Memory Used# [2025-04-10 11:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 08:08:06 [end_date_ymd] => 2025-04-10 11:08:06 [RateCDR] => 1 ) [2025-04-10 11:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 08:08:06' and `end` < '2025-04-10 11:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 11:08:19] Production.INFO: count ==3570 [2025-04-10 11:08:21] Production.ERROR: pbx CDR StartTime 2025-04-10 08:08:06 - End Time 2025-04-10 11:08:06 [2025-04-10 11:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876472', 'tblTempUsageDetail_20' ) start [2025-04-10 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876472', 'tblTempUsageDetail_20' ) end [2025-04-10 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876472', 'tblTempVendorCDR_20' ) start [2025-04-10 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876472', 'tblTempVendorCDR_20' ) end [2025-04-10 11:08:21] Production.INFO: ProcessCDR(1,14876472,1,1,2) [2025-04-10 11:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876472', 'tblTempUsageDetail_20' ) start [2025-04-10 11:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876472', 'tblTempUsageDetail_20' ) end [2025-04-10 11:08:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 11:08:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 11:08:27] Production.INFO: ==14991== Releasing lock... [2025-04-10 11:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 11:08:27] Production.INFO: 54.75 MB #Memory Used# [2025-04-10 11:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 08:09:06 [end_date_ymd] => 2025-04-10 11:09:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 08:09:06' and `end` < '2025-04-10 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-04-10 11:09:19] Production.INFO: count ==3578 [2025-04-10 11:09:21] Production.ERROR: pbx CDR StartTime 2025-04-10 08:09:06 - End Time 2025-04-10 11:09:06 [2025-04-10 11:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 11:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876478', 'tblTempUsageDetail_20' ) start [2025-04-10 11:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876478', 'tblTempUsageDetail_20' ) end [2025-04-10 11:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876478', 'tblTempVendorCDR_20' ) start [2025-04-10 11:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876478', 'tblTempVendorCDR_20' ) end [2025-04-10 11:09:21] Production.INFO: ProcessCDR(1,14876478,1,1,2) [2025-04-10 11:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876478', 'tblTempUsageDetail_20' ) start [2025-04-10 11:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876478', 'tblTempUsageDetail_20' ) end [2025-04-10 11:09:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 11:09:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 11:09:26] Production.INFO: ==15146== Releasing lock... [2025-04-10 11:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 11:09:26] Production.INFO: 54.75 MB #Memory Used# [2025-04-10 11:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 08:10:06 [end_date_ymd] => 2025-04-10 11:10:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 08:10:06' and `end` < '2025-04-10 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-04-10 11:10:20] Production.INFO: count ==3588 [2025-04-10 11:10:21] Production.ERROR: pbx CDR StartTime 2025-04-10 08:10:06 - End Time 2025-04-10 11:10:06 [2025-04-10 11:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876484', 'tblTempUsageDetail_20' ) start [2025-04-10 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876484', 'tblTempUsageDetail_20' ) end [2025-04-10 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876484', 'tblTempVendorCDR_20' ) start [2025-04-10 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876484', 'tblTempVendorCDR_20' ) end [2025-04-10 11:10:21] Production.INFO: ProcessCDR(1,14876484,1,1,2) [2025-04-10 11:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876484', 'tblTempUsageDetail_20' ) start [2025-04-10 11:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876484', 'tblTempUsageDetail_20' ) end [2025-04-10 11:10:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 11:10:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 11:10:26] Production.INFO: ==15228== Releasing lock... [2025-04-10 11:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 11:10:26] Production.INFO: 54.75 MB #Memory Used# [2025-04-10 11:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 08:11:05 [end_date_ymd] => 2025-04-10 11:11:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 08:11:05' and `end` < '2025-04-10 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-04-10 11:11:19] Production.INFO: count ==3676 [2025-04-10 11:11:20] Production.ERROR: pbx CDR StartTime 2025-04-10 08:11:05 - End Time 2025-04-10 11:11:05 [2025-04-10 11:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 11:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876489', 'tblTempUsageDetail_20' ) start [2025-04-10 11:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876489', 'tblTempUsageDetail_20' ) end [2025-04-10 11:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876489', 'tblTempVendorCDR_20' ) start [2025-04-10 11:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876489', 'tblTempVendorCDR_20' ) end [2025-04-10 11:11:20] Production.INFO: ProcessCDR(1,14876489,1,1,2) [2025-04-10 11:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876489', 'tblTempUsageDetail_20' ) start [2025-04-10 11:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876489', 'tblTempUsageDetail_20' ) end [2025-04-10 11:11:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 11:11:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 11:11:25] Production.INFO: ==15314== Releasing lock... [2025-04-10 11:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 11:11:25] Production.INFO: 55.5 MB #Memory Used# [2025-04-10 11:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 08:12:05 [end_date_ymd] => 2025-04-10 11:12:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 08:12:05' and `end` < '2025-04-10 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-04-10 11:12:19] Production.INFO: count ==3679 [2025-04-10 11:12:21] Production.ERROR: pbx CDR StartTime 2025-04-10 08:12:05 - End Time 2025-04-10 11:12:05 [2025-04-10 11:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876494', 'tblTempUsageDetail_20' ) start [2025-04-10 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876494', 'tblTempUsageDetail_20' ) end [2025-04-10 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876494', 'tblTempVendorCDR_20' ) start [2025-04-10 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876494', 'tblTempVendorCDR_20' ) end [2025-04-10 11:12:21] Production.INFO: ProcessCDR(1,14876494,1,1,2) [2025-04-10 11:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876494', 'tblTempUsageDetail_20' ) start [2025-04-10 11:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876494', 'tblTempUsageDetail_20' ) end [2025-04-10 11:12:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 11:12:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 11:12:26] Production.INFO: ==15468== Releasing lock... [2025-04-10 11:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 11:12:26] Production.INFO: 55.5 MB #Memory Used# [2025-04-10 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 08:13:05 [end_date_ymd] => 2025-04-10 11:13:05 [RateCDR] => 1 ) [2025-04-10 11:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 08:13:05' and `end` < '2025-04-10 11:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 11:13:19] Production.INFO: count ==3692 [2025-04-10 11:13:20] Production.ERROR: pbx CDR StartTime 2025-04-10 08:13:05 - End Time 2025-04-10 11:13:05 [2025-04-10 11:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876499', 'tblTempUsageDetail_20' ) start [2025-04-10 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876499', 'tblTempUsageDetail_20' ) end [2025-04-10 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876499', 'tblTempVendorCDR_20' ) start [2025-04-10 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876499', 'tblTempVendorCDR_20' ) end [2025-04-10 11:13:20] Production.INFO: ProcessCDR(1,14876499,1,1,2) [2025-04-10 11:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876499', 'tblTempUsageDetail_20' ) start [2025-04-10 11:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876499', 'tblTempUsageDetail_20' ) end [2025-04-10 11:13:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 11:13:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 11:13:25] Production.INFO: ==15540== Releasing lock... [2025-04-10 11:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 11:13:25] Production.INFO: 55.5 MB #Memory Used# [2025-04-10 11:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 08:14:06 [end_date_ymd] => 2025-04-10 11:14:06 [RateCDR] => 1 ) [2025-04-10 11:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 08:14:06' and `end` < '2025-04-10 11:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 11:14:19] Production.INFO: count ==3697 [2025-04-10 11:14:20] Production.ERROR: pbx CDR StartTime 2025-04-10 08:14:06 - End Time 2025-04-10 11:14:06 [2025-04-10 11:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876504', 'tblTempUsageDetail_20' ) start [2025-04-10 11:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876504', 'tblTempUsageDetail_20' ) end [2025-04-10 11:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876504', 'tblTempVendorCDR_20' ) start [2025-04-10 11:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876504', 'tblTempVendorCDR_20' ) end [2025-04-10 11:14:21] Production.INFO: ProcessCDR(1,14876504,1,1,2) [2025-04-10 11:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876504', 'tblTempUsageDetail_20' ) start [2025-04-10 11:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876504', 'tblTempUsageDetail_20' ) end [2025-04-10 11:14:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 11:14:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 11:14:26] Production.INFO: ==15617== Releasing lock... [2025-04-10 11:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 11:14:26] Production.INFO: 55.5 MB #Memory Used# [2025-04-10 11:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 08:15:05 [end_date_ymd] => 2025-04-10 11:15:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 08:15:05' and `end` < '2025-04-10 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-04-10 11:15:19] Production.INFO: count ==3703 [2025-04-10 11:15:20] Production.ERROR: pbx CDR StartTime 2025-04-10 08:15:05 - End Time 2025-04-10 11:15:05 [2025-04-10 11:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876509', 'tblTempUsageDetail_20' ) start [2025-04-10 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876509', 'tblTempUsageDetail_20' ) end [2025-04-10 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876509', 'tblTempVendorCDR_20' ) start [2025-04-10 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876509', 'tblTempVendorCDR_20' ) end [2025-04-10 11:15:20] Production.INFO: ProcessCDR(1,14876509,1,1,2) [2025-04-10 11:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876509', 'tblTempUsageDetail_20' ) start [2025-04-10 11:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876509', 'tblTempUsageDetail_20' ) end [2025-04-10 11:15:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 11:15:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 11:15:26] Production.INFO: ==15732== Releasing lock... [2025-04-10 11:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 11:15:26] Production.INFO: 55.75 MB #Memory Used# [2025-04-10 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 08:16:05 [end_date_ymd] => 2025-04-10 11:16:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 08:16:05' and `end` < '2025-04-10 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-04-10 11:16:19] Production.INFO: count ==3752 [2025-04-10 11:16:21] Production.ERROR: pbx CDR StartTime 2025-04-10 08:16:05 - End Time 2025-04-10 11:16:05 [2025-04-10 11:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876514', 'tblTempUsageDetail_20' ) start [2025-04-10 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876514', 'tblTempUsageDetail_20' ) end [2025-04-10 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876514', 'tblTempVendorCDR_20' ) start [2025-04-10 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876514', 'tblTempVendorCDR_20' ) end [2025-04-10 11:16:21] Production.INFO: ProcessCDR(1,14876514,1,1,2) [2025-04-10 11:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876514', 'tblTempUsageDetail_20' ) start [2025-04-10 11:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876514', 'tblTempUsageDetail_20' ) end [2025-04-10 11:16:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 11:16:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 11:16:27] Production.INFO: ==15886== Releasing lock... [2025-04-10 11:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 11:16:27] Production.INFO: 56.5 MB #Memory Used# [2025-04-10 11:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 08:17:05 [end_date_ymd] => 2025-04-10 11:17:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 08:17:05' and `end` < '2025-04-10 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-04-10 11:17:19] Production.INFO: count ==3755 [2025-04-10 11:17:20] Production.ERROR: pbx CDR StartTime 2025-04-10 08:17:05 - End Time 2025-04-10 11:17:05 [2025-04-10 11:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876519', 'tblTempUsageDetail_20' ) start [2025-04-10 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876519', 'tblTempUsageDetail_20' ) end [2025-04-10 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876519', 'tblTempVendorCDR_20' ) start [2025-04-10 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876519', 'tblTempVendorCDR_20' ) end [2025-04-10 11:17:20] Production.INFO: ProcessCDR(1,14876519,1,1,2) [2025-04-10 11:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876519', 'tblTempUsageDetail_20' ) start [2025-04-10 11:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876519', 'tblTempUsageDetail_20' ) end [2025-04-10 11:17:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 11:17:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 11:17:25] Production.INFO: ==15959== Releasing lock... [2025-04-10 11:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 11:17:25] Production.INFO: 56 MB #Memory Used# [2025-04-10 11:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 08:18:05 [end_date_ymd] => 2025-04-10 11:18:05 [RateCDR] => 1 ) [2025-04-10 11:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 08:18:05' and `end` < '2025-04-10 11:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 11:18:19] Production.INFO: count ==3762 [2025-04-10 11:18:20] Production.ERROR: pbx CDR StartTime 2025-04-10 08:18:05 - End Time 2025-04-10 11:18:05 [2025-04-10 11:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 11:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876524', 'tblTempUsageDetail_20' ) start [2025-04-10 11:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876524', 'tblTempUsageDetail_20' ) end [2025-04-10 11:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876524', 'tblTempVendorCDR_20' ) start [2025-04-10 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876524', 'tblTempVendorCDR_20' ) end [2025-04-10 11:18:21] Production.INFO: ProcessCDR(1,14876524,1,1,2) [2025-04-10 11:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876524', 'tblTempUsageDetail_20' ) start [2025-04-10 11:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876524', 'tblTempUsageDetail_20' ) end [2025-04-10 11:18:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 11:18:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 11:18:25] Production.INFO: ==16037== Releasing lock... [2025-04-10 11:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 11:18:25] Production.INFO: 56 MB #Memory Used# [2025-04-10 11:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 08:19:04 [end_date_ymd] => 2025-04-10 11:19:04 [RateCDR] => 1 ) [2025-04-10 11:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 08:19:04' and `end` < '2025-04-10 11:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 11:19:18] Production.INFO: count ==3775 [2025-04-10 11:19:20] Production.ERROR: pbx CDR StartTime 2025-04-10 08:19:04 - End Time 2025-04-10 11:19:04 [2025-04-10 11:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876529', 'tblTempUsageDetail_20' ) start [2025-04-10 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876529', 'tblTempUsageDetail_20' ) end [2025-04-10 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876529', 'tblTempVendorCDR_20' ) start [2025-04-10 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876529', 'tblTempVendorCDR_20' ) end [2025-04-10 11:19:20] Production.INFO: ProcessCDR(1,14876529,1,1,2) [2025-04-10 11:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876529', 'tblTempUsageDetail_20' ) start [2025-04-10 11:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876529', 'tblTempUsageDetail_20' ) end [2025-04-10 11:19:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 11:19:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 11:19:25] Production.INFO: ==16116== Releasing lock... [2025-04-10 11:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 11:19:25] Production.INFO: 56.25 MB #Memory Used# [2025-04-10 11:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 08:20:06 [end_date_ymd] => 2025-04-10 11:20:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 08:20:06' and `end` < '2025-04-10 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-04-10 11:20:20] Production.INFO: count ==3780 [2025-04-10 11:20:21] Production.ERROR: pbx CDR StartTime 2025-04-10 08:20:06 - End Time 2025-04-10 11:20:06 [2025-04-10 11:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876535', 'tblTempUsageDetail_20' ) start [2025-04-10 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876535', 'tblTempUsageDetail_20' ) end [2025-04-10 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876535', 'tblTempVendorCDR_20' ) start [2025-04-10 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876535', 'tblTempVendorCDR_20' ) end [2025-04-10 11:20:21] Production.INFO: ProcessCDR(1,14876535,1,1,2) [2025-04-10 11:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876535', 'tblTempUsageDetail_20' ) start [2025-04-10 11:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876535', 'tblTempUsageDetail_20' ) end [2025-04-10 11:20:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 11:20:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 11:20:26] Production.INFO: ==16197== Releasing lock... [2025-04-10 11:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 11:20:26] Production.INFO: 56.25 MB #Memory Used# [2025-04-10 11:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 08:21:05 [end_date_ymd] => 2025-04-10 11:21:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 08:21:05' and `end` < '2025-04-10 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-04-10 11:21:19] Production.INFO: count ==3878 [2025-04-10 11:21:20] Production.ERROR: pbx CDR StartTime 2025-04-10 08:21:05 - End Time 2025-04-10 11:21:05 [2025-04-10 11:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876540', 'tblTempUsageDetail_20' ) start [2025-04-10 11:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876540', 'tblTempUsageDetail_20' ) end [2025-04-10 11:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876540', 'tblTempVendorCDR_20' ) start [2025-04-10 11:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876540', 'tblTempVendorCDR_20' ) end [2025-04-10 11:21:21] Production.INFO: ProcessCDR(1,14876540,1,1,2) [2025-04-10 11:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876540', 'tblTempUsageDetail_20' ) start [2025-04-10 11:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876540', 'tblTempUsageDetail_20' ) end [2025-04-10 11:21:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 11:21:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 11:21:26] Production.INFO: ==16279== Releasing lock... [2025-04-10 11:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 11:21:26] Production.INFO: 57 MB #Memory Used# [2025-04-10 11:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 08:22:05 [end_date_ymd] => 2025-04-10 11:22:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 08:22:05' and `end` < '2025-04-10 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-04-10 11:22:19] Production.INFO: count ==3894 [2025-04-10 11:22:20] Production.ERROR: pbx CDR StartTime 2025-04-10 08:22:05 - End Time 2025-04-10 11:22:05 [2025-04-10 11:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 11:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876545', 'tblTempUsageDetail_20' ) start [2025-04-10 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876545', 'tblTempUsageDetail_20' ) end [2025-04-10 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876545', 'tblTempVendorCDR_20' ) start [2025-04-10 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876545', 'tblTempVendorCDR_20' ) end [2025-04-10 11:22:21] Production.INFO: ProcessCDR(1,14876545,1,1,2) [2025-04-10 11:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876545', 'tblTempUsageDetail_20' ) start [2025-04-10 11:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876545', 'tblTempUsageDetail_20' ) end [2025-04-10 11:22:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 11:22:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 11:22:26] Production.INFO: ==16356== Releasing lock... [2025-04-10 11:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 11:22:26] Production.INFO: 57 MB #Memory Used# [2025-04-10 11:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 08:23:06 [end_date_ymd] => 2025-04-10 11:23:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 08:23:06' and `end` < '2025-04-10 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-04-10 11:23:19] Production.INFO: count ==3899 [2025-04-10 11:23:21] Production.ERROR: pbx CDR StartTime 2025-04-10 08:23:06 - End Time 2025-04-10 11:23:06 [2025-04-10 11:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 11:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876550', 'tblTempUsageDetail_20' ) start [2025-04-10 11:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876550', 'tblTempUsageDetail_20' ) end [2025-04-10 11:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876550', 'tblTempVendorCDR_20' ) start [2025-04-10 11:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876550', 'tblTempVendorCDR_20' ) end [2025-04-10 11:23:21] Production.INFO: ProcessCDR(1,14876550,1,1,2) [2025-04-10 11:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876550', 'tblTempUsageDetail_20' ) start [2025-04-10 11:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876550', 'tblTempUsageDetail_20' ) end [2025-04-10 11:23:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 11:23:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 11:23:26] Production.INFO: ==16428== Releasing lock... [2025-04-10 11:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 11:23:26] Production.INFO: 57 MB #Memory Used# [2025-04-10 11:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 08:24:05 [end_date_ymd] => 2025-04-10 11:24:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 08:24:05' and `end` < '2025-04-10 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-04-10 11:24:19] Production.INFO: count ==3892 [2025-04-10 11:24:21] Production.ERROR: pbx CDR StartTime 2025-04-10 08:24:05 - End Time 2025-04-10 11:24:05 [2025-04-10 11:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876555', 'tblTempUsageDetail_20' ) start [2025-04-10 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876555', 'tblTempUsageDetail_20' ) end [2025-04-10 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876555', 'tblTempVendorCDR_20' ) start [2025-04-10 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876555', 'tblTempVendorCDR_20' ) end [2025-04-10 11:24:21] Production.INFO: ProcessCDR(1,14876555,1,1,2) [2025-04-10 11:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876555', 'tblTempUsageDetail_20' ) start [2025-04-10 11:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876555', 'tblTempUsageDetail_20' ) end [2025-04-10 11:24:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 11:24:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 11:24:26] Production.INFO: ==16501== Releasing lock... [2025-04-10 11:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 11:24:26] Production.INFO: 57.25 MB #Memory Used# [2025-04-10 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 08:25:05 [end_date_ymd] => 2025-04-10 11:25:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 08:25:05' and `end` < '2025-04-10 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-04-10 11:25:19] Production.INFO: count ==3896 [2025-04-10 11:25:20] Production.ERROR: pbx CDR StartTime 2025-04-10 08:25:05 - End Time 2025-04-10 11:25:05 [2025-04-10 11:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876560', 'tblTempUsageDetail_20' ) start [2025-04-10 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876560', 'tblTempUsageDetail_20' ) end [2025-04-10 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876560', 'tblTempVendorCDR_20' ) start [2025-04-10 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876560', 'tblTempVendorCDR_20' ) end [2025-04-10 11:25:21] Production.INFO: ProcessCDR(1,14876560,1,1,2) [2025-04-10 11:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876560', 'tblTempUsageDetail_20' ) start [2025-04-10 11:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876560', 'tblTempUsageDetail_20' ) end [2025-04-10 11:25:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 11:25:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 11:25:26] Production.INFO: ==16578== Releasing lock... [2025-04-10 11:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 11:25:26] Production.INFO: 57.25 MB #Memory Used# [2025-04-10 11:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 08:26:05 [end_date_ymd] => 2025-04-10 11:26:05 [RateCDR] => 1 ) [2025-04-10 11:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 08:26:05' and `end` < '2025-04-10 11:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 11:26:19] Production.INFO: count ==3895 [2025-04-10 11:26:20] Production.ERROR: pbx CDR StartTime 2025-04-10 08:26:05 - End Time 2025-04-10 11:26:05 [2025-04-10 11:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876565', 'tblTempUsageDetail_20' ) start [2025-04-10 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876565', 'tblTempUsageDetail_20' ) end [2025-04-10 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876565', 'tblTempVendorCDR_20' ) start [2025-04-10 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876565', 'tblTempVendorCDR_20' ) end [2025-04-10 11:26:20] Production.INFO: ProcessCDR(1,14876565,1,1,2) [2025-04-10 11:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876565', 'tblTempUsageDetail_20' ) start [2025-04-10 11:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876565', 'tblTempUsageDetail_20' ) end [2025-04-10 11:26:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 11:26:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 11:26:25] Production.INFO: ==16653== Releasing lock... [2025-04-10 11:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 11:26:25] Production.INFO: 57 MB #Memory Used# [2025-04-10 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 08:27:05 [end_date_ymd] => 2025-04-10 11:27:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 08:27:05' and `end` < '2025-04-10 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-04-10 11:27:19] Production.INFO: count ==3881 [2025-04-10 11:27:20] Production.ERROR: pbx CDR StartTime 2025-04-10 08:27:05 - End Time 2025-04-10 11:27:05 [2025-04-10 11:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876570', 'tblTempUsageDetail_20' ) start [2025-04-10 11:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876570', 'tblTempUsageDetail_20' ) end [2025-04-10 11:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876570', 'tblTempVendorCDR_20' ) start [2025-04-10 11:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876570', 'tblTempVendorCDR_20' ) end [2025-04-10 11:27:21] Production.INFO: ProcessCDR(1,14876570,1,1,2) [2025-04-10 11:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876570', 'tblTempUsageDetail_20' ) start [2025-04-10 11:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876570', 'tblTempUsageDetail_20' ) end [2025-04-10 11:27:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 11:27:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 11:27:26] Production.INFO: ==16731== Releasing lock... [2025-04-10 11:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 11:27:26] Production.INFO: 57.25 MB #Memory Used# [2025-04-10 11:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 08:28:05 [end_date_ymd] => 2025-04-10 11:28:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 08:28:05' and `end` < '2025-04-10 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-04-10 11:28:19] Production.INFO: count ==3883 [2025-04-10 11:28:20] Production.ERROR: pbx CDR StartTime 2025-04-10 08:28:05 - End Time 2025-04-10 11:28:05 [2025-04-10 11:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 11:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876575', 'tblTempUsageDetail_20' ) start [2025-04-10 11:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876575', 'tblTempUsageDetail_20' ) end [2025-04-10 11:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876575', 'tblTempVendorCDR_20' ) start [2025-04-10 11:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876575', 'tblTempVendorCDR_20' ) end [2025-04-10 11:28:20] Production.INFO: ProcessCDR(1,14876575,1,1,2) [2025-04-10 11:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876575', 'tblTempUsageDetail_20' ) start [2025-04-10 11:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876575', 'tblTempUsageDetail_20' ) end [2025-04-10 11:28:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 11:28:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 11:28:25] Production.INFO: ==16817== Releasing lock... [2025-04-10 11:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 11:28:25] Production.INFO: 57.25 MB #Memory Used# [2025-04-10 11:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 08:29:05 [end_date_ymd] => 2025-04-10 11:29:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 08:29:05' and `end` < '2025-04-10 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-04-10 11:29:19] Production.INFO: count ==3887 [2025-04-10 11:29:21] Production.ERROR: pbx CDR StartTime 2025-04-10 08:29:05 - End Time 2025-04-10 11:29:05 [2025-04-10 11:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876580', 'tblTempUsageDetail_20' ) start [2025-04-10 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876580', 'tblTempUsageDetail_20' ) end [2025-04-10 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876580', 'tblTempVendorCDR_20' ) start [2025-04-10 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876580', 'tblTempVendorCDR_20' ) end [2025-04-10 11:29:21] Production.INFO: ProcessCDR(1,14876580,1,1,2) [2025-04-10 11:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876580', 'tblTempUsageDetail_20' ) start [2025-04-10 11:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876580', 'tblTempUsageDetail_20' ) end [2025-04-10 11:29:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 11:29:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 11:29:26] Production.INFO: ==16894== Releasing lock... [2025-04-10 11:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 11:29:26] Production.INFO: 57 MB #Memory Used# [2025-04-10 11:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 08:30:05 [end_date_ymd] => 2025-04-10 11:30:05 [RateCDR] => 1 ) [2025-04-10 11:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 08:30:05' and `end` < '2025-04-10 11:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 11:30:19] Production.INFO: count ==3888 [2025-04-10 11:30:21] Production.ERROR: pbx CDR StartTime 2025-04-10 08:30:05 - End Time 2025-04-10 11:30:05 [2025-04-10 11:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 11:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876586', 'tblTempUsageDetail_20' ) start [2025-04-10 11:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876586', 'tblTempUsageDetail_20' ) end [2025-04-10 11:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876586', 'tblTempVendorCDR_20' ) start [2025-04-10 11:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876586', 'tblTempVendorCDR_20' ) end [2025-04-10 11:30:21] Production.INFO: ProcessCDR(1,14876586,1,1,2) [2025-04-10 11:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876586', 'tblTempUsageDetail_20' ) start [2025-04-10 11:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876586', 'tblTempUsageDetail_20' ) end [2025-04-10 11:30:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 11:30:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 11:30:26] Production.INFO: ==16968== Releasing lock... [2025-04-10 11:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 11:30:26] Production.INFO: 57 MB #Memory Used# [2025-04-10 11:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 08:31:05 [end_date_ymd] => 2025-04-10 11:31:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 08:31:05' and `end` < '2025-04-10 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-04-10 11:31:19] Production.INFO: count ==4002 [2025-04-10 11:31:20] Production.ERROR: pbx CDR StartTime 2025-04-10 08:31:05 - End Time 2025-04-10 11:31:05 [2025-04-10 11:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876591', 'tblTempUsageDetail_20' ) start [2025-04-10 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876591', 'tblTempUsageDetail_20' ) end [2025-04-10 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876591', 'tblTempVendorCDR_20' ) start [2025-04-10 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876591', 'tblTempVendorCDR_20' ) end [2025-04-10 11:31:20] Production.INFO: ProcessCDR(1,14876591,1,1,2) [2025-04-10 11:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876591', 'tblTempUsageDetail_20' ) start [2025-04-10 11:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876591', 'tblTempUsageDetail_20' ) end [2025-04-10 11:31:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 11:31:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 11:31:26] Production.INFO: ==17043== Releasing lock... [2025-04-10 11:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 11:31:26] Production.INFO: 58 MB #Memory Used# [2025-04-10 11:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 08:32:05 [end_date_ymd] => 2025-04-10 11:32:05 [RateCDR] => 1 ) [2025-04-10 11:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 08:32:05' and `end` < '2025-04-10 11:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 11:32:19] Production.INFO: count ==4000 [2025-04-10 11:32:21] Production.ERROR: pbx CDR StartTime 2025-04-10 08:32:05 - End Time 2025-04-10 11:32:05 [2025-04-10 11:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876596', 'tblTempUsageDetail_20' ) start [2025-04-10 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876596', 'tblTempUsageDetail_20' ) end [2025-04-10 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876596', 'tblTempVendorCDR_20' ) start [2025-04-10 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876596', 'tblTempVendorCDR_20' ) end [2025-04-10 11:32:21] Production.INFO: ProcessCDR(1,14876596,1,1,2) [2025-04-10 11:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876596', 'tblTempUsageDetail_20' ) start [2025-04-10 11:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876596', 'tblTempUsageDetail_20' ) end [2025-04-10 11:32:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 11:32:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 11:32:26] Production.INFO: ==17153== Releasing lock... [2025-04-10 11:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 11:32:26] Production.INFO: 57.75 MB #Memory Used# [2025-04-10 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 08:33:05 [end_date_ymd] => 2025-04-10 11:33:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 08:33:05' and `end` < '2025-04-10 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-04-10 11:33:18] Production.INFO: count ==3995 [2025-04-10 11:33:20] Production.ERROR: pbx CDR StartTime 2025-04-10 08:33:05 - End Time 2025-04-10 11:33:05 [2025-04-10 11:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 11:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876601', 'tblTempUsageDetail_20' ) start [2025-04-10 11:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876601', 'tblTempUsageDetail_20' ) end [2025-04-10 11:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876601', 'tblTempVendorCDR_20' ) start [2025-04-10 11:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876601', 'tblTempVendorCDR_20' ) end [2025-04-10 11:33:20] Production.INFO: ProcessCDR(1,14876601,1,1,2) [2025-04-10 11:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876601', 'tblTempUsageDetail_20' ) start [2025-04-10 11:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876601', 'tblTempUsageDetail_20' ) end [2025-04-10 11:33:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 11:33:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 11:33:25] Production.INFO: ==17231== Releasing lock... [2025-04-10 11:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 11:33:25] Production.INFO: 57.75 MB #Memory Used# [2025-04-10 11:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 08:34:06 [end_date_ymd] => 2025-04-10 11:34:06 [RateCDR] => 1 ) [2025-04-10 11:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 08:34:06' and `end` < '2025-04-10 11:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 11:34:19] Production.INFO: count ==4022 [2025-04-10 11:34:21] Production.ERROR: pbx CDR StartTime 2025-04-10 08:34:06 - End Time 2025-04-10 11:34:06 [2025-04-10 11:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876606', 'tblTempUsageDetail_20' ) start [2025-04-10 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876606', 'tblTempUsageDetail_20' ) end [2025-04-10 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876606', 'tblTempVendorCDR_20' ) start [2025-04-10 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876606', 'tblTempVendorCDR_20' ) end [2025-04-10 11:34:21] Production.INFO: ProcessCDR(1,14876606,1,1,2) [2025-04-10 11:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876606', 'tblTempUsageDetail_20' ) start [2025-04-10 11:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876606', 'tblTempUsageDetail_20' ) end [2025-04-10 11:34:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 11:34:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 11:34:26] Production.INFO: ==17302== Releasing lock... [2025-04-10 11:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 11:34:26] Production.INFO: 58 MB #Memory Used# [2025-04-10 11:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 08:35:04 [end_date_ymd] => 2025-04-10 11:35:04 [RateCDR] => 1 ) [2025-04-10 11:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 08:35:04' and `end` < '2025-04-10 11:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 11:35:18] Production.INFO: count ==4020 [2025-04-10 11:35:20] Production.ERROR: pbx CDR StartTime 2025-04-10 08:35:04 - End Time 2025-04-10 11:35:04 [2025-04-10 11:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 11:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876611', 'tblTempUsageDetail_20' ) start [2025-04-10 11:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876611', 'tblTempUsageDetail_20' ) end [2025-04-10 11:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876611', 'tblTempVendorCDR_20' ) start [2025-04-10 11:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876611', 'tblTempVendorCDR_20' ) end [2025-04-10 11:35:20] Production.INFO: ProcessCDR(1,14876611,1,1,2) [2025-04-10 11:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876611', 'tblTempUsageDetail_20' ) start [2025-04-10 11:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876611', 'tblTempUsageDetail_20' ) end [2025-04-10 11:35:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 11:35:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 11:35:25] Production.INFO: ==17382== Releasing lock... [2025-04-10 11:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 11:35:25] Production.INFO: 58 MB #Memory Used# [2025-04-10 11:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 08:36:05 [end_date_ymd] => 2025-04-10 11:36:05 [RateCDR] => 1 ) [2025-04-10 11:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 08:36:05' and `end` < '2025-04-10 11:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 11:36:19] Production.INFO: count ==4035 [2025-04-10 11:36:20] Production.ERROR: pbx CDR StartTime 2025-04-10 08:36:05 - End Time 2025-04-10 11:36:05 [2025-04-10 11:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876616', 'tblTempUsageDetail_20' ) start [2025-04-10 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876616', 'tblTempUsageDetail_20' ) end [2025-04-10 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876616', 'tblTempVendorCDR_20' ) start [2025-04-10 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876616', 'tblTempVendorCDR_20' ) end [2025-04-10 11:36:20] Production.INFO: ProcessCDR(1,14876616,1,1,2) [2025-04-10 11:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876616', 'tblTempUsageDetail_20' ) start [2025-04-10 11:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876616', 'tblTempUsageDetail_20' ) end [2025-04-10 11:36:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 11:36:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 11:36:25] Production.INFO: ==17455== Releasing lock... [2025-04-10 11:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 11:36:25] Production.INFO: 58.25 MB #Memory Used# [2025-04-10 11:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 08:37:05 [end_date_ymd] => 2025-04-10 11:37:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 08:37:05' and `end` < '2025-04-10 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-04-10 11:37:19] Production.INFO: count ==4035 [2025-04-10 11:37:20] Production.ERROR: pbx CDR StartTime 2025-04-10 08:37:05 - End Time 2025-04-10 11:37:05 [2025-04-10 11:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 11:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876621', 'tblTempUsageDetail_20' ) start [2025-04-10 11:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876621', 'tblTempUsageDetail_20' ) end [2025-04-10 11:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876621', 'tblTempVendorCDR_20' ) start [2025-04-10 11:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876621', 'tblTempVendorCDR_20' ) end [2025-04-10 11:37:20] Production.INFO: ProcessCDR(1,14876621,1,1,2) [2025-04-10 11:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876621', 'tblTempUsageDetail_20' ) start [2025-04-10 11:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876621', 'tblTempUsageDetail_20' ) end [2025-04-10 11:37:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 11:37:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 11:37:26] Production.INFO: ==17545== Releasing lock... [2025-04-10 11:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 11:37:26] Production.INFO: 58.25 MB #Memory Used# [2025-04-10 11:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 08:38:06 [end_date_ymd] => 2025-04-10 11:38:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 08:38:06' and `end` < '2025-04-10 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-04-10 11:38:20] Production.INFO: count ==4059 [2025-04-10 11:38:21] Production.ERROR: pbx CDR StartTime 2025-04-10 08:38:06 - End Time 2025-04-10 11:38:06 [2025-04-10 11:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876626', 'tblTempUsageDetail_20' ) start [2025-04-10 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876626', 'tblTempUsageDetail_20' ) end [2025-04-10 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876626', 'tblTempVendorCDR_20' ) start [2025-04-10 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876626', 'tblTempVendorCDR_20' ) end [2025-04-10 11:38:21] Production.INFO: ProcessCDR(1,14876626,1,1,2) [2025-04-10 11:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876626', 'tblTempUsageDetail_20' ) start [2025-04-10 11:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876626', 'tblTempUsageDetail_20' ) end [2025-04-10 11:38:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 11:38:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 11:38:27] Production.INFO: ==17619== Releasing lock... [2025-04-10 11:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 11:38:27] Production.INFO: 58.25 MB #Memory Used# [2025-04-10 11:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 08:39:05 [end_date_ymd] => 2025-04-10 11:39:05 [RateCDR] => 1 ) [2025-04-10 11:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 08:39:05' and `end` < '2025-04-10 11:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 11:39:19] Production.INFO: count ==4063 [2025-04-10 11:39:21] Production.ERROR: pbx CDR StartTime 2025-04-10 08:39:05 - End Time 2025-04-10 11:39:05 [2025-04-10 11:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876631', 'tblTempUsageDetail_20' ) start [2025-04-10 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876631', 'tblTempUsageDetail_20' ) end [2025-04-10 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876631', 'tblTempVendorCDR_20' ) start [2025-04-10 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876631', 'tblTempVendorCDR_20' ) end [2025-04-10 11:39:21] Production.INFO: ProcessCDR(1,14876631,1,1,2) [2025-04-10 11:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876631', 'tblTempUsageDetail_20' ) start [2025-04-10 11:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876631', 'tblTempUsageDetail_20' ) end [2025-04-10 11:39:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 11:39:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 11:39:26] Production.INFO: ==17693== Releasing lock... [2025-04-10 11:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 11:39:26] Production.INFO: 58.25 MB #Memory Used# [2025-04-10 11:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 08:40:06 [end_date_ymd] => 2025-04-10 11:40:06 [RateCDR] => 1 ) [2025-04-10 11:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 08:40:06' and `end` < '2025-04-10 11:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 11:40:20] Production.INFO: count ==4082 [2025-04-10 11:40:22] Production.ERROR: pbx CDR StartTime 2025-04-10 08:40:06 - End Time 2025-04-10 11:40:06 [2025-04-10 11:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 11:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876637', 'tblTempUsageDetail_20' ) start [2025-04-10 11:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876637', 'tblTempUsageDetail_20' ) end [2025-04-10 11:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876637', 'tblTempVendorCDR_20' ) start [2025-04-10 11:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876637', 'tblTempVendorCDR_20' ) end [2025-04-10 11:40:22] Production.INFO: ProcessCDR(1,14876637,1,1,2) [2025-04-10 11:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876637', 'tblTempUsageDetail_20' ) start [2025-04-10 11:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876637', 'tblTempUsageDetail_20' ) end [2025-04-10 11:40:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 11:40:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 11:40:27] Production.INFO: ==17767== Releasing lock... [2025-04-10 11:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 11:40:27] Production.INFO: 58.75 MB #Memory Used# [2025-04-10 11:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 08:41:05 [end_date_ymd] => 2025-04-10 11:41:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 08:41:05' and `end` < '2025-04-10 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-04-10 11:41:19] Production.INFO: count ==4150 [2025-04-10 11:41:21] Production.ERROR: pbx CDR StartTime 2025-04-10 08:41:05 - End Time 2025-04-10 11:41:05 [2025-04-10 11:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 11:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876642', 'tblTempUsageDetail_20' ) start [2025-04-10 11:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876642', 'tblTempUsageDetail_20' ) end [2025-04-10 11:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876642', 'tblTempVendorCDR_20' ) start [2025-04-10 11:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876642', 'tblTempVendorCDR_20' ) end [2025-04-10 11:41:21] Production.INFO: ProcessCDR(1,14876642,1,1,2) [2025-04-10 11:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876642', 'tblTempUsageDetail_20' ) start [2025-04-10 11:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876642', 'tblTempUsageDetail_20' ) end [2025-04-10 11:41:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 11:41:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 11:41:26] Production.INFO: ==17842== Releasing lock... [2025-04-10 11:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 11:41:26] Production.INFO: 59 MB #Memory Used# [2025-04-10 11:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 08:42:05 [end_date_ymd] => 2025-04-10 11:42:05 [RateCDR] => 1 ) [2025-04-10 11:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 08:42:05' and `end` < '2025-04-10 11:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 11:42:19] Production.INFO: count ==4148 [2025-04-10 11:42:21] Production.ERROR: pbx CDR StartTime 2025-04-10 08:42:05 - End Time 2025-04-10 11:42:05 [2025-04-10 11:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876647', 'tblTempUsageDetail_20' ) start [2025-04-10 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876647', 'tblTempUsageDetail_20' ) end [2025-04-10 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876647', 'tblTempVendorCDR_20' ) start [2025-04-10 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876647', 'tblTempVendorCDR_20' ) end [2025-04-10 11:42:21] Production.INFO: ProcessCDR(1,14876647,1,1,2) [2025-04-10 11:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876647', 'tblTempUsageDetail_20' ) start [2025-04-10 11:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876647', 'tblTempUsageDetail_20' ) end [2025-04-10 11:42:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 11:42:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 11:42:26] Production.INFO: ==17916== Releasing lock... [2025-04-10 11:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 11:42:26] Production.INFO: 59 MB #Memory Used# [2025-04-10 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 08:43:05 [end_date_ymd] => 2025-04-10 11:43:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 08:43:05' and `end` < '2025-04-10 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-04-10 11:43:19] Production.INFO: count ==4157 [2025-04-10 11:43:20] Production.ERROR: pbx CDR StartTime 2025-04-10 08:43:05 - End Time 2025-04-10 11:43:05 [2025-04-10 11:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876652', 'tblTempUsageDetail_20' ) start [2025-04-10 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876652', 'tblTempUsageDetail_20' ) end [2025-04-10 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876652', 'tblTempVendorCDR_20' ) start [2025-04-10 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876652', 'tblTempVendorCDR_20' ) end [2025-04-10 11:43:20] Production.INFO: ProcessCDR(1,14876652,1,1,2) [2025-04-10 11:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876652', 'tblTempUsageDetail_20' ) start [2025-04-10 11:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876652', 'tblTempUsageDetail_20' ) end [2025-04-10 11:43:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 11:43:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 11:43:26] Production.INFO: ==17989== Releasing lock... [2025-04-10 11:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 11:43:26] Production.INFO: 59 MB #Memory Used# [2025-04-10 11:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 08:44:06 [end_date_ymd] => 2025-04-10 11:44:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 08:44:06' and `end` < '2025-04-10 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-04-10 11:44:20] Production.INFO: count ==4151 [2025-04-10 11:44:21] Production.ERROR: pbx CDR StartTime 2025-04-10 08:44:06 - End Time 2025-04-10 11:44:06 [2025-04-10 11:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876657', 'tblTempUsageDetail_20' ) start [2025-04-10 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876657', 'tblTempUsageDetail_20' ) end [2025-04-10 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876657', 'tblTempVendorCDR_20' ) start [2025-04-10 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876657', 'tblTempVendorCDR_20' ) end [2025-04-10 11:44:21] Production.INFO: ProcessCDR(1,14876657,1,1,2) [2025-04-10 11:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876657', 'tblTempUsageDetail_20' ) start [2025-04-10 11:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876657', 'tblTempUsageDetail_20' ) end [2025-04-10 11:44:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 11:44:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 11:44:26] Production.INFO: ==18063== Releasing lock... [2025-04-10 11:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 11:44:26] Production.INFO: 59 MB #Memory Used# [2025-04-10 11:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 08:45:05 [end_date_ymd] => 2025-04-10 11:45:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 08:45:05' and `end` < '2025-04-10 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-04-10 11:45:19] Production.INFO: count ==4159 [2025-04-10 11:45:20] Production.ERROR: pbx CDR StartTime 2025-04-10 08:45:05 - End Time 2025-04-10 11:45:05 [2025-04-10 11:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 11:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876662', 'tblTempUsageDetail_20' ) start [2025-04-10 11:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876662', 'tblTempUsageDetail_20' ) end [2025-04-10 11:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876662', 'tblTempVendorCDR_20' ) start [2025-04-10 11:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876662', 'tblTempVendorCDR_20' ) end [2025-04-10 11:45:20] Production.INFO: ProcessCDR(1,14876662,1,1,2) [2025-04-10 11:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876662', 'tblTempUsageDetail_20' ) start [2025-04-10 11:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876662', 'tblTempUsageDetail_20' ) end [2025-04-10 11:45:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 11:45:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 11:45:26] Production.INFO: ==18135== Releasing lock... [2025-04-10 11:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 11:45:26] Production.INFO: 59 MB #Memory Used# [2025-04-10 11:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 08:46:06 [end_date_ymd] => 2025-04-10 11:46:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 08:46:06' and `end` < '2025-04-10 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-04-10 11:46:20] Production.INFO: count ==4181 [2025-04-10 11:46:22] Production.ERROR: pbx CDR StartTime 2025-04-10 08:46:06 - End Time 2025-04-10 11:46:06 [2025-04-10 11:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 11:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876667', 'tblTempUsageDetail_20' ) start [2025-04-10 11:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876667', 'tblTempUsageDetail_20' ) end [2025-04-10 11:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876667', 'tblTempVendorCDR_20' ) start [2025-04-10 11:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876667', 'tblTempVendorCDR_20' ) end [2025-04-10 11:46:22] Production.INFO: ProcessCDR(1,14876667,1,1,2) [2025-04-10 11:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876667', 'tblTempUsageDetail_20' ) start [2025-04-10 11:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876667', 'tblTempUsageDetail_20' ) end [2025-04-10 11:46:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 11:46:28] Production.ERROR: pbx prc_insertCDR end [2025-04-10 11:46:28] Production.INFO: ==18208== Releasing lock... [2025-04-10 11:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 11:46:28] Production.INFO: 59.25 MB #Memory Used# [2025-04-10 11:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 08:47:05 [end_date_ymd] => 2025-04-10 11:47:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 08:47:05' and `end` < '2025-04-10 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-04-10 11:47:19] Production.INFO: count ==4273 [2025-04-10 11:47:21] Production.ERROR: pbx CDR StartTime 2025-04-10 08:47:05 - End Time 2025-04-10 11:47:05 [2025-04-10 11:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876672', 'tblTempUsageDetail_20' ) start [2025-04-10 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876672', 'tblTempUsageDetail_20' ) end [2025-04-10 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876672', 'tblTempVendorCDR_20' ) start [2025-04-10 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876672', 'tblTempVendorCDR_20' ) end [2025-04-10 11:47:21] Production.INFO: ProcessCDR(1,14876672,1,1,2) [2025-04-10 11:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876672', 'tblTempUsageDetail_20' ) start [2025-04-10 11:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876672', 'tblTempUsageDetail_20' ) end [2025-04-10 11:47:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 11:47:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 11:47:26] Production.INFO: ==18325== Releasing lock... [2025-04-10 11:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 11:47:26] Production.INFO: 60 MB #Memory Used# [2025-04-10 11:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 08:48:05 [end_date_ymd] => 2025-04-10 11:48:05 [RateCDR] => 1 ) [2025-04-10 11:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 08:48:05' and `end` < '2025-04-10 11:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 11:48:19] Production.INFO: count ==4272 [2025-04-10 11:48:21] Production.ERROR: pbx CDR StartTime 2025-04-10 08:48:05 - End Time 2025-04-10 11:48:05 [2025-04-10 11:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876677', 'tblTempUsageDetail_20' ) start [2025-04-10 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876677', 'tblTempUsageDetail_20' ) end [2025-04-10 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876677', 'tblTempVendorCDR_20' ) start [2025-04-10 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876677', 'tblTempVendorCDR_20' ) end [2025-04-10 11:48:21] Production.INFO: ProcessCDR(1,14876677,1,1,2) [2025-04-10 11:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876677', 'tblTempUsageDetail_20' ) start [2025-04-10 11:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876677', 'tblTempUsageDetail_20' ) end [2025-04-10 11:48:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 11:48:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 11:48:27] Production.INFO: ==18428== Releasing lock... [2025-04-10 11:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 11:48:27] Production.INFO: 60 MB #Memory Used# [2025-04-10 11:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 08:49:05 [end_date_ymd] => 2025-04-10 11:49:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 08:49:05' and `end` < '2025-04-10 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-04-10 11:49:19] Production.INFO: count ==4293 [2025-04-10 11:49:20] Production.ERROR: pbx CDR StartTime 2025-04-10 08:49:05 - End Time 2025-04-10 11:49:05 [2025-04-10 11:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 11:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876682', 'tblTempUsageDetail_20' ) start [2025-04-10 11:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876682', 'tblTempUsageDetail_20' ) end [2025-04-10 11:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876682', 'tblTempVendorCDR_20' ) start [2025-04-10 11:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876682', 'tblTempVendorCDR_20' ) end [2025-04-10 11:49:20] Production.INFO: ProcessCDR(1,14876682,1,1,2) [2025-04-10 11:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876682', 'tblTempUsageDetail_20' ) start [2025-04-10 11:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876682', 'tblTempUsageDetail_20' ) end [2025-04-10 11:49:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 11:49:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 11:49:26] Production.INFO: ==18499== Releasing lock... [2025-04-10 11:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 11:49:26] Production.INFO: 60 MB #Memory Used# [2025-04-10 11:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 08:50:06 [end_date_ymd] => 2025-04-10 11:50:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 08:50:06' and `end` < '2025-04-10 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-04-10 11:50:20] Production.INFO: count ==4330 [2025-04-10 11:50:22] Production.ERROR: pbx CDR StartTime 2025-04-10 08:50:06 - End Time 2025-04-10 11:50:06 [2025-04-10 11:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876688', 'tblTempUsageDetail_20' ) start [2025-04-10 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876688', 'tblTempUsageDetail_20' ) end [2025-04-10 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876688', 'tblTempVendorCDR_20' ) start [2025-04-10 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876688', 'tblTempVendorCDR_20' ) end [2025-04-10 11:50:22] Production.INFO: ProcessCDR(1,14876688,1,1,2) [2025-04-10 11:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876688', 'tblTempUsageDetail_20' ) start [2025-04-10 11:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876688', 'tblTempUsageDetail_20' ) end [2025-04-10 11:50:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 11:50:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 11:50:27] Production.INFO: ==18576== Releasing lock... [2025-04-10 11:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 11:50:27] Production.INFO: 60.5 MB #Memory Used# [2025-04-10 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 08:51:05 [end_date_ymd] => 2025-04-10 11:51:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 08:51:05' and `end` < '2025-04-10 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-04-10 11:51:19] Production.INFO: count ==4401 [2025-04-10 11:51:21] Production.ERROR: pbx CDR StartTime 2025-04-10 08:51:05 - End Time 2025-04-10 11:51:05 [2025-04-10 11:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876693', 'tblTempUsageDetail_20' ) start [2025-04-10 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876693', 'tblTempUsageDetail_20' ) end [2025-04-10 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876693', 'tblTempVendorCDR_20' ) start [2025-04-10 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876693', 'tblTempVendorCDR_20' ) end [2025-04-10 11:51:21] Production.INFO: ProcessCDR(1,14876693,1,1,2) [2025-04-10 11:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876693', 'tblTempUsageDetail_20' ) start [2025-04-10 11:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876693', 'tblTempUsageDetail_20' ) end [2025-04-10 11:51:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 11:51:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 11:51:26] Production.INFO: ==18651== Releasing lock... [2025-04-10 11:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 11:51:26] Production.INFO: 61 MB #Memory Used# [2025-04-10 11:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 08:52:06 [end_date_ymd] => 2025-04-10 11:52:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 08:52:06' and `end` < '2025-04-10 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-04-10 11:52:20] Production.INFO: count ==4398 [2025-04-10 11:52:21] Production.ERROR: pbx CDR StartTime 2025-04-10 08:52:06 - End Time 2025-04-10 11:52:06 [2025-04-10 11:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876698', 'tblTempUsageDetail_20' ) start [2025-04-10 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876698', 'tblTempUsageDetail_20' ) end [2025-04-10 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876698', 'tblTempVendorCDR_20' ) start [2025-04-10 11:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876698', 'tblTempVendorCDR_20' ) end [2025-04-10 11:52:22] Production.INFO: ProcessCDR(1,14876698,1,1,2) [2025-04-10 11:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876698', 'tblTempUsageDetail_20' ) start [2025-04-10 11:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876698', 'tblTempUsageDetail_20' ) end [2025-04-10 11:52:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 11:52:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 11:52:27] Production.INFO: ==18725== Releasing lock... [2025-04-10 11:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 11:52:27] Production.INFO: 61 MB #Memory Used# [2025-04-10 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 08:53:05 [end_date_ymd] => 2025-04-10 11:53:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 08:53:05' and `end` < '2025-04-10 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-04-10 11:53:19] Production.INFO: count ==4398 [2025-04-10 11:53:20] Production.ERROR: pbx CDR StartTime 2025-04-10 08:53:05 - End Time 2025-04-10 11:53:05 [2025-04-10 11:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 11:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876703', 'tblTempUsageDetail_20' ) start [2025-04-10 11:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876703', 'tblTempUsageDetail_20' ) end [2025-04-10 11:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876703', 'tblTempVendorCDR_20' ) start [2025-04-10 11:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876703', 'tblTempVendorCDR_20' ) end [2025-04-10 11:53:20] Production.INFO: ProcessCDR(1,14876703,1,1,2) [2025-04-10 11:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876703', 'tblTempUsageDetail_20' ) start [2025-04-10 11:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876703', 'tblTempUsageDetail_20' ) end [2025-04-10 11:53:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 11:53:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 11:53:26] Production.INFO: ==18800== Releasing lock... [2025-04-10 11:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 11:53:26] Production.INFO: 61 MB #Memory Used# [2025-04-10 11:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 08:54:05 [end_date_ymd] => 2025-04-10 11:54:05 [RateCDR] => 1 ) [2025-04-10 11:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 08:54:05' and `end` < '2025-04-10 11:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 11:54:19] Production.INFO: count ==4399 [2025-04-10 11:54:21] Production.ERROR: pbx CDR StartTime 2025-04-10 08:54:05 - End Time 2025-04-10 11:54:05 [2025-04-10 11:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 11:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876708', 'tblTempUsageDetail_20' ) start [2025-04-10 11:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876708', 'tblTempUsageDetail_20' ) end [2025-04-10 11:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876708', 'tblTempVendorCDR_20' ) start [2025-04-10 11:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876708', 'tblTempVendorCDR_20' ) end [2025-04-10 11:54:21] Production.INFO: ProcessCDR(1,14876708,1,1,2) [2025-04-10 11:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876708', 'tblTempUsageDetail_20' ) start [2025-04-10 11:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876708', 'tblTempUsageDetail_20' ) end [2025-04-10 11:54:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 11:54:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 11:54:26] Production.INFO: ==18877== Releasing lock... [2025-04-10 11:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 11:54:26] Production.INFO: 61 MB #Memory Used# [2025-04-10 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 08:55:05 [end_date_ymd] => 2025-04-10 11:55:05 [RateCDR] => 1 ) [2025-04-10 11:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 08:55:05' and `end` < '2025-04-10 11:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 11:55:19] Production.INFO: count ==4403 [2025-04-10 11:55:21] Production.ERROR: pbx CDR StartTime 2025-04-10 08:55:05 - End Time 2025-04-10 11:55:05 [2025-04-10 11:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876713', 'tblTempUsageDetail_20' ) start [2025-04-10 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876713', 'tblTempUsageDetail_20' ) end [2025-04-10 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876713', 'tblTempVendorCDR_20' ) start [2025-04-10 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876713', 'tblTempVendorCDR_20' ) end [2025-04-10 11:55:21] Production.INFO: ProcessCDR(1,14876713,1,1,2) [2025-04-10 11:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876713', 'tblTempUsageDetail_20' ) start [2025-04-10 11:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876713', 'tblTempUsageDetail_20' ) end [2025-04-10 11:55:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 11:55:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 11:55:26] Production.INFO: ==18949== Releasing lock... [2025-04-10 11:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 11:55:26] Production.INFO: 61 MB #Memory Used# [2025-04-10 11:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 08:56:05 [end_date_ymd] => 2025-04-10 11:56:05 [RateCDR] => 1 ) [2025-04-10 11:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 08:56:05' and `end` < '2025-04-10 11:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 11:56:19] Production.INFO: count ==4406 [2025-04-10 11:56:21] Production.ERROR: pbx CDR StartTime 2025-04-10 08:56:05 - End Time 2025-04-10 11:56:05 [2025-04-10 11:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876718', 'tblTempUsageDetail_20' ) start [2025-04-10 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876718', 'tblTempUsageDetail_20' ) end [2025-04-10 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876718', 'tblTempVendorCDR_20' ) start [2025-04-10 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876718', 'tblTempVendorCDR_20' ) end [2025-04-10 11:56:21] Production.INFO: ProcessCDR(1,14876718,1,1,2) [2025-04-10 11:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876718', 'tblTempUsageDetail_20' ) start [2025-04-10 11:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876718', 'tblTempUsageDetail_20' ) end [2025-04-10 11:56:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 11:56:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 11:56:27] Production.INFO: ==19021== Releasing lock... [2025-04-10 11:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 11:56:27] Production.INFO: 61 MB #Memory Used# [2025-04-10 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 08:57:05 [end_date_ymd] => 2025-04-10 11:57:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 08:57:05' and `end` < '2025-04-10 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-04-10 11:57:19] Production.INFO: count ==4424 [2025-04-10 11:57:20] Production.ERROR: pbx CDR StartTime 2025-04-10 08:57:05 - End Time 2025-04-10 11:57:05 [2025-04-10 11:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 11:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876723', 'tblTempUsageDetail_20' ) start [2025-04-10 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876723', 'tblTempUsageDetail_20' ) end [2025-04-10 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876723', 'tblTempVendorCDR_20' ) start [2025-04-10 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876723', 'tblTempVendorCDR_20' ) end [2025-04-10 11:57:21] Production.INFO: ProcessCDR(1,14876723,1,1,2) [2025-04-10 11:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876723', 'tblTempUsageDetail_20' ) start [2025-04-10 11:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876723', 'tblTempUsageDetail_20' ) end [2025-04-10 11:57:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 11:57:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 11:57:27] Production.INFO: ==19092== Releasing lock... [2025-04-10 11:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 11:57:27] Production.INFO: 61 MB #Memory Used# [2025-04-10 11:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 08:58:05 [end_date_ymd] => 2025-04-10 11:58:05 [RateCDR] => 1 ) [2025-04-10 11:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 08:58:05' and `end` < '2025-04-10 11:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 11:58:19] Production.INFO: count ==4419 [2025-04-10 11:58:21] Production.ERROR: pbx CDR StartTime 2025-04-10 08:58:05 - End Time 2025-04-10 11:58:05 [2025-04-10 11:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876728', 'tblTempUsageDetail_20' ) start [2025-04-10 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876728', 'tblTempUsageDetail_20' ) end [2025-04-10 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876728', 'tblTempVendorCDR_20' ) start [2025-04-10 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876728', 'tblTempVendorCDR_20' ) end [2025-04-10 11:58:21] Production.INFO: ProcessCDR(1,14876728,1,1,2) [2025-04-10 11:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876728', 'tblTempUsageDetail_20' ) start [2025-04-10 11:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876728', 'tblTempUsageDetail_20' ) end [2025-04-10 11:58:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 11:58:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 11:58:24] Production.INFO: ==19167== Releasing lock... [2025-04-10 11:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 11:58:24] Production.INFO: 61 MB #Memory Used# [2025-04-10 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 08:59:05 [end_date_ymd] => 2025-04-10 11:59:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 08:59:05' and `end` < '2025-04-10 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-04-10 11:59:19] Production.INFO: count ==4421 [2025-04-10 11:59:21] Production.ERROR: pbx CDR StartTime 2025-04-10 08:59:05 - End Time 2025-04-10 11:59:05 [2025-04-10 11:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876733', 'tblTempUsageDetail_20' ) start [2025-04-10 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876733', 'tblTempUsageDetail_20' ) end [2025-04-10 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876733', 'tblTempVendorCDR_20' ) start [2025-04-10 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876733', 'tblTempVendorCDR_20' ) end [2025-04-10 11:59:21] Production.INFO: ProcessCDR(1,14876733,1,1,2) [2025-04-10 11:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 11:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 11:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876733', 'tblTempUsageDetail_20' ) start [2025-04-10 11:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876733', 'tblTempUsageDetail_20' ) end [2025-04-10 11:59:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 11:59:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 11:59:26] Production.INFO: ==19239== Releasing lock... [2025-04-10 11:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 11:59:26] Production.INFO: 61 MB #Memory Used# [2025-04-10 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 09:00:06 [end_date_ymd] => 2025-04-10 12:00:06 [RateCDR] => 1 ) [2025-04-10 12:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 09:00:06' and `end` < '2025-04-10 12:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 12:00:20] Production.INFO: count ==4430 [2025-04-10 12:00:22] Production.ERROR: pbx CDR StartTime 2025-04-10 09:00:06 - End Time 2025-04-10 12:00:06 [2025-04-10 12:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876739', 'tblTempUsageDetail_20' ) start [2025-04-10 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876739', 'tblTempUsageDetail_20' ) end [2025-04-10 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876739', 'tblTempVendorCDR_20' ) start [2025-04-10 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876739', 'tblTempVendorCDR_20' ) end [2025-04-10 12:00:22] Production.INFO: ProcessCDR(1,14876739,1,1,2) [2025-04-10 12:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876739', 'tblTempUsageDetail_20' ) start [2025-04-10 12:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876739', 'tblTempUsageDetail_20' ) end [2025-04-10 12:00:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 12:00:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 12:00:27] Production.INFO: ==19316== Releasing lock... [2025-04-10 12:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 12:00:27] Production.INFO: 61.25 MB #Memory Used# [2025-04-10 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 09:01:05 [end_date_ymd] => 2025-04-10 12:01:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 09:01:05' and `end` < '2025-04-10 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-04-10 12:01:18] Production.INFO: count ==4546 [2025-04-10 12:01:20] Production.ERROR: pbx CDR StartTime 2025-04-10 09:01:05 - End Time 2025-04-10 12:01:05 [2025-04-10 12:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 12:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876744', 'tblTempUsageDetail_20' ) start [2025-04-10 12:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876744', 'tblTempUsageDetail_20' ) end [2025-04-10 12:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876744', 'tblTempVendorCDR_20' ) start [2025-04-10 12:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876744', 'tblTempVendorCDR_20' ) end [2025-04-10 12:01:20] Production.INFO: ProcessCDR(1,14876744,1,1,2) [2025-04-10 12:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876744', 'tblTempUsageDetail_20' ) start [2025-04-10 12:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876744', 'tblTempUsageDetail_20' ) end [2025-04-10 12:01:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 12:01:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 12:01:25] Production.INFO: ==19404== Releasing lock... [2025-04-10 12:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 12:01:25] Production.INFO: 62 MB #Memory Used# [2025-04-10 12:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 09:02:05 [end_date_ymd] => 2025-04-10 12:02:05 [RateCDR] => 1 ) [2025-04-10 12:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 09:02:05' and `end` < '2025-04-10 12:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 12:02:19] Production.INFO: count ==4534 [2025-04-10 12:02:21] Production.ERROR: pbx CDR StartTime 2025-04-10 09:02:05 - End Time 2025-04-10 12:02:05 [2025-04-10 12:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876749', 'tblTempUsageDetail_20' ) start [2025-04-10 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876749', 'tblTempUsageDetail_20' ) end [2025-04-10 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876749', 'tblTempVendorCDR_20' ) start [2025-04-10 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876749', 'tblTempVendorCDR_20' ) end [2025-04-10 12:02:21] Production.INFO: ProcessCDR(1,14876749,1,1,2) [2025-04-10 12:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876749', 'tblTempUsageDetail_20' ) start [2025-04-10 12:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876749', 'tblTempUsageDetail_20' ) end [2025-04-10 12:02:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 12:02:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 12:02:27] Production.INFO: ==19479== Releasing lock... [2025-04-10 12:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 12:02:27] Production.INFO: 62 MB #Memory Used# [2025-04-10 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 09:03:05 [end_date_ymd] => 2025-04-10 12:03:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 09:03:05' and `end` < '2025-04-10 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-04-10 12:03:19] Production.INFO: count ==4510 [2025-04-10 12:03:20] Production.ERROR: pbx CDR StartTime 2025-04-10 09:03:05 - End Time 2025-04-10 12:03:05 [2025-04-10 12:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 12:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876754', 'tblTempUsageDetail_20' ) start [2025-04-10 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876754', 'tblTempUsageDetail_20' ) end [2025-04-10 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876754', 'tblTempVendorCDR_20' ) start [2025-04-10 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876754', 'tblTempVendorCDR_20' ) end [2025-04-10 12:03:21] Production.INFO: ProcessCDR(1,14876754,1,1,2) [2025-04-10 12:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876754', 'tblTempUsageDetail_20' ) start [2025-04-10 12:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876754', 'tblTempUsageDetail_20' ) end [2025-04-10 12:03:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 12:03:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 12:03:26] Production.INFO: ==19591== Releasing lock... [2025-04-10 12:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 12:03:26] Production.INFO: 61.75 MB #Memory Used# [2025-04-10 12:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 09:04:05 [end_date_ymd] => 2025-04-10 12:04:05 [RateCDR] => 1 ) [2025-04-10 12:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 09:04:05' and `end` < '2025-04-10 12:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 12:04:19] Production.INFO: count ==4531 [2025-04-10 12:04:21] Production.ERROR: pbx CDR StartTime 2025-04-10 09:04:05 - End Time 2025-04-10 12:04:05 [2025-04-10 12:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876759', 'tblTempUsageDetail_20' ) start [2025-04-10 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876759', 'tblTempUsageDetail_20' ) end [2025-04-10 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876759', 'tblTempVendorCDR_20' ) start [2025-04-10 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876759', 'tblTempVendorCDR_20' ) end [2025-04-10 12:04:21] Production.INFO: ProcessCDR(1,14876759,1,1,2) [2025-04-10 12:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876759', 'tblTempUsageDetail_20' ) start [2025-04-10 12:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876759', 'tblTempUsageDetail_20' ) end [2025-04-10 12:04:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 12:04:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 12:04:26] Production.INFO: ==19662== Releasing lock... [2025-04-10 12:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 12:04:26] Production.INFO: 62 MB #Memory Used# [2025-04-10 12:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 09:05:05 [end_date_ymd] => 2025-04-10 12:05:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 09:05:05' and `end` < '2025-04-10 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-04-10 12:05:19] Production.INFO: count ==4586 [2025-04-10 12:05:21] Production.ERROR: pbx CDR StartTime 2025-04-10 09:05:05 - End Time 2025-04-10 12:05:05 [2025-04-10 12:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876764', 'tblTempUsageDetail_20' ) start [2025-04-10 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876764', 'tblTempUsageDetail_20' ) end [2025-04-10 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876764', 'tblTempVendorCDR_20' ) start [2025-04-10 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876764', 'tblTempVendorCDR_20' ) end [2025-04-10 12:05:21] Production.INFO: ProcessCDR(1,14876764,1,1,2) [2025-04-10 12:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876764', 'tblTempUsageDetail_20' ) start [2025-04-10 12:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876764', 'tblTempUsageDetail_20' ) end [2025-04-10 12:05:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 12:05:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 12:05:26] Production.INFO: ==19743== Releasing lock... [2025-04-10 12:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 12:05:26] Production.INFO: 62.25 MB #Memory Used# [2025-04-10 12:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 09:06:06 [end_date_ymd] => 2025-04-10 12:06:06 [RateCDR] => 1 ) [2025-04-10 12:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 09:06:06' and `end` < '2025-04-10 12:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 12:06:20] Production.INFO: count ==4616 [2025-04-10 12:06:21] Production.ERROR: pbx CDR StartTime 2025-04-10 09:06:06 - End Time 2025-04-10 12:06:06 [2025-04-10 12:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 12:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876769', 'tblTempUsageDetail_20' ) start [2025-04-10 12:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876769', 'tblTempUsageDetail_20' ) end [2025-04-10 12:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876769', 'tblTempVendorCDR_20' ) start [2025-04-10 12:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876769', 'tblTempVendorCDR_20' ) end [2025-04-10 12:06:22] Production.INFO: ProcessCDR(1,14876769,1,1,2) [2025-04-10 12:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876769', 'tblTempUsageDetail_20' ) start [2025-04-10 12:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876769', 'tblTempUsageDetail_20' ) end [2025-04-10 12:06:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 12:06:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 12:06:25] Production.INFO: ==19841== Releasing lock... [2025-04-10 12:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 12:06:25] Production.INFO: 62.5 MB #Memory Used# [2025-04-10 12:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 09:07:05 [end_date_ymd] => 2025-04-10 12:07:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 09:07:05' and `end` < '2025-04-10 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-04-10 12:07:18] Production.INFO: count ==4607 [2025-04-10 12:07:20] Production.ERROR: pbx CDR StartTime 2025-04-10 09:07:05 - End Time 2025-04-10 12:07:05 [2025-04-10 12:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 12:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876774', 'tblTempUsageDetail_20' ) start [2025-04-10 12:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876774', 'tblTempUsageDetail_20' ) end [2025-04-10 12:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876774', 'tblTempVendorCDR_20' ) start [2025-04-10 12:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876774', 'tblTempVendorCDR_20' ) end [2025-04-10 12:07:20] Production.INFO: ProcessCDR(1,14876774,1,1,2) [2025-04-10 12:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876774', 'tblTempUsageDetail_20' ) start [2025-04-10 12:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876774', 'tblTempUsageDetail_20' ) end [2025-04-10 12:07:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 12:07:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 12:07:24] Production.INFO: ==19915== Releasing lock... [2025-04-10 12:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 12:07:24] Production.INFO: 62.5 MB #Memory Used# [2025-04-10 12:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 09:08:05 [end_date_ymd] => 2025-04-10 12:08:05 [RateCDR] => 1 ) [2025-04-10 12:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 09:08:05' and `end` < '2025-04-10 12:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 12:08:19] Production.INFO: count ==4604 [2025-04-10 12:08:21] Production.ERROR: pbx CDR StartTime 2025-04-10 09:08:05 - End Time 2025-04-10 12:08:05 [2025-04-10 12:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876779', 'tblTempUsageDetail_20' ) start [2025-04-10 12:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876779', 'tblTempUsageDetail_20' ) end [2025-04-10 12:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876779', 'tblTempVendorCDR_20' ) start [2025-04-10 12:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876779', 'tblTempVendorCDR_20' ) end [2025-04-10 12:08:22] Production.INFO: ProcessCDR(1,14876779,1,1,2) [2025-04-10 12:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876779', 'tblTempUsageDetail_20' ) start [2025-04-10 12:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876779', 'tblTempUsageDetail_20' ) end [2025-04-10 12:08:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 12:08:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 12:08:27] Production.INFO: ==19988== Releasing lock... [2025-04-10 12:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 12:08:27] Production.INFO: 62.5 MB #Memory Used# [2025-04-10 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 09:09:05 [end_date_ymd] => 2025-04-10 12:09:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 09:09:05' and `end` < '2025-04-10 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-04-10 12:09:19] Production.INFO: count ==4605 [2025-04-10 12:09:20] Production.ERROR: pbx CDR StartTime 2025-04-10 09:09:05 - End Time 2025-04-10 12:09:05 [2025-04-10 12:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 12:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876784', 'tblTempUsageDetail_20' ) start [2025-04-10 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876784', 'tblTempUsageDetail_20' ) end [2025-04-10 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876784', 'tblTempVendorCDR_20' ) start [2025-04-10 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876784', 'tblTempVendorCDR_20' ) end [2025-04-10 12:09:21] Production.INFO: ProcessCDR(1,14876784,1,1,2) [2025-04-10 12:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876784', 'tblTempUsageDetail_20' ) start [2025-04-10 12:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876784', 'tblTempUsageDetail_20' ) end [2025-04-10 12:09:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 12:09:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 12:09:26] Production.INFO: ==20059== Releasing lock... [2025-04-10 12:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 12:09:26] Production.INFO: 62.5 MB #Memory Used# [2025-04-10 12:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 09:10:06 [end_date_ymd] => 2025-04-10 12:10:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 09:10:06' and `end` < '2025-04-10 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-04-10 12:10:20] Production.INFO: count ==4595 [2025-04-10 12:10:22] Production.ERROR: pbx CDR StartTime 2025-04-10 09:10:06 - End Time 2025-04-10 12:10:06 [2025-04-10 12:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 12:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876790', 'tblTempUsageDetail_20' ) start [2025-04-10 12:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876790', 'tblTempUsageDetail_20' ) end [2025-04-10 12:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876790', 'tblTempVendorCDR_20' ) start [2025-04-10 12:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876790', 'tblTempVendorCDR_20' ) end [2025-04-10 12:10:22] Production.INFO: ProcessCDR(1,14876790,1,1,2) [2025-04-10 12:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876790', 'tblTempUsageDetail_20' ) start [2025-04-10 12:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876790', 'tblTempUsageDetail_20' ) end [2025-04-10 12:10:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 12:10:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 12:10:27] Production.INFO: ==20134== Releasing lock... [2025-04-10 12:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 12:10:27] Production.INFO: 62.5 MB #Memory Used# [2025-04-10 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 09:11:05 [end_date_ymd] => 2025-04-10 12:11:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 09:11:05' and `end` < '2025-04-10 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-04-10 12:11:19] Production.INFO: count ==4685 [2025-04-10 12:11:21] Production.ERROR: pbx CDR StartTime 2025-04-10 09:11:05 - End Time 2025-04-10 12:11:05 [2025-04-10 12:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876795', 'tblTempUsageDetail_20' ) start [2025-04-10 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876795', 'tblTempUsageDetail_20' ) end [2025-04-10 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876795', 'tblTempVendorCDR_20' ) start [2025-04-10 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876795', 'tblTempVendorCDR_20' ) end [2025-04-10 12:11:21] Production.INFO: ProcessCDR(1,14876795,1,1,2) [2025-04-10 12:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876795', 'tblTempUsageDetail_20' ) start [2025-04-10 12:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876795', 'tblTempUsageDetail_20' ) end [2025-04-10 12:11:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 12:11:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 12:11:27] Production.INFO: ==20205== Releasing lock... [2025-04-10 12:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 12:11:27] Production.INFO: 63 MB #Memory Used# [2025-04-10 12:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 09:12:06 [end_date_ymd] => 2025-04-10 12:12:06 [RateCDR] => 1 ) [2025-04-10 12:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 09:12:06' and `end` < '2025-04-10 12:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 12:12:20] Production.INFO: count ==4688 [2025-04-10 12:12:22] Production.ERROR: pbx CDR StartTime 2025-04-10 09:12:06 - End Time 2025-04-10 12:12:06 [2025-04-10 12:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 12:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876800', 'tblTempUsageDetail_20' ) start [2025-04-10 12:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876800', 'tblTempUsageDetail_20' ) end [2025-04-10 12:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876800', 'tblTempVendorCDR_20' ) start [2025-04-10 12:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876800', 'tblTempVendorCDR_20' ) end [2025-04-10 12:12:22] Production.INFO: ProcessCDR(1,14876800,1,1,2) [2025-04-10 12:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876800', 'tblTempUsageDetail_20' ) start [2025-04-10 12:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876800', 'tblTempUsageDetail_20' ) end [2025-04-10 12:12:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 12:12:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 12:12:27] Production.INFO: ==20274== Releasing lock... [2025-04-10 12:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 12:12:27] Production.INFO: 63 MB #Memory Used# [2025-04-10 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 09:13:05 [end_date_ymd] => 2025-04-10 12:13:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 09:13:05' and `end` < '2025-04-10 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-04-10 12:13:19] Production.INFO: count ==4695 [2025-04-10 12:13:21] Production.ERROR: pbx CDR StartTime 2025-04-10 09:13:05 - End Time 2025-04-10 12:13:05 [2025-04-10 12:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876805', 'tblTempUsageDetail_20' ) start [2025-04-10 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876805', 'tblTempUsageDetail_20' ) end [2025-04-10 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876805', 'tblTempVendorCDR_20' ) start [2025-04-10 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876805', 'tblTempVendorCDR_20' ) end [2025-04-10 12:13:21] Production.INFO: ProcessCDR(1,14876805,1,1,2) [2025-04-10 12:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876805', 'tblTempUsageDetail_20' ) start [2025-04-10 12:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876805', 'tblTempUsageDetail_20' ) end [2025-04-10 12:13:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 12:13:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 12:13:26] Production.INFO: ==20352== Releasing lock... [2025-04-10 12:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 12:13:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-10 12:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 09:14:06 [end_date_ymd] => 2025-04-10 12:14:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 09:14:06' and `end` < '2025-04-10 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-04-10 12:14:20] Production.INFO: count ==4698 [2025-04-10 12:14:22] Production.ERROR: pbx CDR StartTime 2025-04-10 09:14:06 - End Time 2025-04-10 12:14:06 [2025-04-10 12:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 12:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876810', 'tblTempUsageDetail_20' ) start [2025-04-10 12:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876810', 'tblTempUsageDetail_20' ) end [2025-04-10 12:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876810', 'tblTempVendorCDR_20' ) start [2025-04-10 12:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876810', 'tblTempVendorCDR_20' ) end [2025-04-10 12:14:22] Production.INFO: ProcessCDR(1,14876810,1,1,2) [2025-04-10 12:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876810', 'tblTempUsageDetail_20' ) start [2025-04-10 12:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876810', 'tblTempUsageDetail_20' ) end [2025-04-10 12:14:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 12:14:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 12:14:27] Production.INFO: ==20425== Releasing lock... [2025-04-10 12:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 12:14:27] Production.INFO: 63.25 MB #Memory Used# [2025-04-10 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 09:15:05 [end_date_ymd] => 2025-04-10 12:15:05 [RateCDR] => 1 ) [2025-04-10 12:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 09:15:05' and `end` < '2025-04-10 12:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 12:15:19] Production.INFO: count ==4715 [2025-04-10 12:15:21] Production.ERROR: pbx CDR StartTime 2025-04-10 09:15:05 - End Time 2025-04-10 12:15:05 [2025-04-10 12:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876815', 'tblTempUsageDetail_20' ) start [2025-04-10 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876815', 'tblTempUsageDetail_20' ) end [2025-04-10 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876815', 'tblTempVendorCDR_20' ) start [2025-04-10 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876815', 'tblTempVendorCDR_20' ) end [2025-04-10 12:15:21] Production.INFO: ProcessCDR(1,14876815,1,1,2) [2025-04-10 12:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876815', 'tblTempUsageDetail_20' ) start [2025-04-10 12:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876815', 'tblTempUsageDetail_20' ) end [2025-04-10 12:15:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 12:15:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 12:15:27] Production.INFO: ==20502== Releasing lock... [2025-04-10 12:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 12:15:27] Production.INFO: 63.25 MB #Memory Used# [2025-04-10 12:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 09:16:06 [end_date_ymd] => 2025-04-10 12:16:06 [RateCDR] => 1 ) [2025-04-10 12:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 09:16:06' and `end` < '2025-04-10 12:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 12:16:20] Production.INFO: count ==4728 [2025-04-10 12:16:22] Production.ERROR: pbx CDR StartTime 2025-04-10 09:16:06 - End Time 2025-04-10 12:16:06 [2025-04-10 12:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 12:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876820', 'tblTempUsageDetail_20' ) start [2025-04-10 12:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876820', 'tblTempUsageDetail_20' ) end [2025-04-10 12:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876820', 'tblTempVendorCDR_20' ) start [2025-04-10 12:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876820', 'tblTempVendorCDR_20' ) end [2025-04-10 12:16:22] Production.INFO: ProcessCDR(1,14876820,1,1,2) [2025-04-10 12:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876820', 'tblTempUsageDetail_20' ) start [2025-04-10 12:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876820', 'tblTempUsageDetail_20' ) end [2025-04-10 12:16:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 12:16:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 12:16:27] Production.INFO: ==20576== Releasing lock... [2025-04-10 12:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 12:16:27] Production.INFO: 63.5 MB #Memory Used# [2025-04-10 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 09:17:05 [end_date_ymd] => 2025-04-10 12:17:05 [RateCDR] => 1 ) [2025-04-10 12:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 09:17:05' and `end` < '2025-04-10 12:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 12:17:19] Production.INFO: count ==4729 [2025-04-10 12:17:21] Production.ERROR: pbx CDR StartTime 2025-04-10 09:17:05 - End Time 2025-04-10 12:17:05 [2025-04-10 12:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876825', 'tblTempUsageDetail_20' ) start [2025-04-10 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876825', 'tblTempUsageDetail_20' ) end [2025-04-10 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876825', 'tblTempVendorCDR_20' ) start [2025-04-10 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876825', 'tblTempVendorCDR_20' ) end [2025-04-10 12:17:21] Production.INFO: ProcessCDR(1,14876825,1,1,2) [2025-04-10 12:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876825', 'tblTempUsageDetail_20' ) start [2025-04-10 12:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876825', 'tblTempUsageDetail_20' ) end [2025-04-10 12:17:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 12:17:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 12:17:26] Production.INFO: ==20645== Releasing lock... [2025-04-10 12:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 12:17:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-10 12:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 09:18:06 [end_date_ymd] => 2025-04-10 12:18:06 [RateCDR] => 1 ) [2025-04-10 12:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 09:18:06' and `end` < '2025-04-10 12:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 12:18:20] Production.INFO: count ==4719 [2025-04-10 12:18:21] Production.ERROR: pbx CDR StartTime 2025-04-10 09:18:06 - End Time 2025-04-10 12:18:06 [2025-04-10 12:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876830', 'tblTempUsageDetail_20' ) start [2025-04-10 12:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876830', 'tblTempUsageDetail_20' ) end [2025-04-10 12:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876830', 'tblTempVendorCDR_20' ) start [2025-04-10 12:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876830', 'tblTempVendorCDR_20' ) end [2025-04-10 12:18:22] Production.INFO: ProcessCDR(1,14876830,1,1,2) [2025-04-10 12:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876830', 'tblTempUsageDetail_20' ) start [2025-04-10 12:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876830', 'tblTempUsageDetail_20' ) end [2025-04-10 12:18:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 12:18:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 12:18:27] Production.INFO: ==20757== Releasing lock... [2025-04-10 12:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 12:18:27] Production.INFO: 63.25 MB #Memory Used# [2025-04-10 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 09:19:05 [end_date_ymd] => 2025-04-10 12:19:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 09:19:05' and `end` < '2025-04-10 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-04-10 12:19:19] Production.INFO: count ==4713 [2025-04-10 12:19:21] Production.ERROR: pbx CDR StartTime 2025-04-10 09:19:05 - End Time 2025-04-10 12:19:05 [2025-04-10 12:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876835', 'tblTempUsageDetail_20' ) start [2025-04-10 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876835', 'tblTempUsageDetail_20' ) end [2025-04-10 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876835', 'tblTempVendorCDR_20' ) start [2025-04-10 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876835', 'tblTempVendorCDR_20' ) end [2025-04-10 12:19:21] Production.INFO: ProcessCDR(1,14876835,1,1,2) [2025-04-10 12:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876835', 'tblTempUsageDetail_20' ) start [2025-04-10 12:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876835', 'tblTempUsageDetail_20' ) end [2025-04-10 12:19:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 12:19:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 12:19:26] Production.INFO: ==20829== Releasing lock... [2025-04-10 12:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 12:19:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-10 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 09:20:06 [end_date_ymd] => 2025-04-10 12:20:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 09:20:06' and `end` < '2025-04-10 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-04-10 12:20:21] Production.INFO: count ==4729 [2025-04-10 12:20:22] Production.ERROR: pbx CDR StartTime 2025-04-10 09:20:06 - End Time 2025-04-10 12:20:06 [2025-04-10 12:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876841', 'tblTempUsageDetail_20' ) start [2025-04-10 12:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876841', 'tblTempUsageDetail_20' ) end [2025-04-10 12:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876841', 'tblTempVendorCDR_20' ) start [2025-04-10 12:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876841', 'tblTempVendorCDR_20' ) end [2025-04-10 12:20:23] Production.INFO: ProcessCDR(1,14876841,1,1,2) [2025-04-10 12:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876841', 'tblTempUsageDetail_20' ) start [2025-04-10 12:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876841', 'tblTempUsageDetail_20' ) end [2025-04-10 12:20:28] Production.ERROR: pbx prc_insertCDR start [2025-04-10 12:20:28] Production.ERROR: pbx prc_insertCDR end [2025-04-10 12:20:28] Production.INFO: ==20908== Releasing lock... [2025-04-10 12:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 12:20:28] Production.INFO: 63.75 MB #Memory Used# [2025-04-10 12:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 09:21:04 [end_date_ymd] => 2025-04-10 12:21:04 [RateCDR] => 1 ) [2025-04-10 12:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 09:21:04' and `end` < '2025-04-10 12:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 12:21:18] Production.INFO: count ==4747 [2025-04-10 12:21:20] Production.ERROR: pbx CDR StartTime 2025-04-10 09:21:04 - End Time 2025-04-10 12:21:04 [2025-04-10 12:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 12:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876846', 'tblTempUsageDetail_20' ) start [2025-04-10 12:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876846', 'tblTempUsageDetail_20' ) end [2025-04-10 12:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876846', 'tblTempVendorCDR_20' ) start [2025-04-10 12:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876846', 'tblTempVendorCDR_20' ) end [2025-04-10 12:21:20] Production.INFO: ProcessCDR(1,14876846,1,1,2) [2025-04-10 12:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876846', 'tblTempUsageDetail_20' ) start [2025-04-10 12:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876846', 'tblTempUsageDetail_20' ) end [2025-04-10 12:21:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 12:21:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 12:21:25] Production.INFO: ==20982== Releasing lock... [2025-04-10 12:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 12:21:25] Production.INFO: 63.5 MB #Memory Used# [2025-04-10 12:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 09:22:06 [end_date_ymd] => 2025-04-10 12:22:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 09:22:06' and `end` < '2025-04-10 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-04-10 12:22:20] Production.INFO: count ==4730 [2025-04-10 12:22:21] Production.ERROR: pbx CDR StartTime 2025-04-10 09:22:06 - End Time 2025-04-10 12:22:06 [2025-04-10 12:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876851', 'tblTempUsageDetail_20' ) start [2025-04-10 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876851', 'tblTempUsageDetail_20' ) end [2025-04-10 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876851', 'tblTempVendorCDR_20' ) start [2025-04-10 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876851', 'tblTempVendorCDR_20' ) end [2025-04-10 12:22:22] Production.INFO: ProcessCDR(1,14876851,1,1,2) [2025-04-10 12:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876851', 'tblTempUsageDetail_20' ) start [2025-04-10 12:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876851', 'tblTempUsageDetail_20' ) end [2025-04-10 12:22:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 12:22:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 12:22:27] Production.INFO: ==21062== Releasing lock... [2025-04-10 12:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 12:22:27] Production.INFO: 63.5 MB #Memory Used# [2025-04-10 12:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 09:23:04 [end_date_ymd] => 2025-04-10 12:23:04 [RateCDR] => 1 ) [2025-04-10 12:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 09:23:04' and `end` < '2025-04-10 12:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 12:23:18] Production.INFO: count ==4716 [2025-04-10 12:23:20] Production.ERROR: pbx CDR StartTime 2025-04-10 09:23:04 - End Time 2025-04-10 12:23:04 [2025-04-10 12:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 12:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876856', 'tblTempUsageDetail_20' ) start [2025-04-10 12:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876856', 'tblTempUsageDetail_20' ) end [2025-04-10 12:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876856', 'tblTempVendorCDR_20' ) start [2025-04-10 12:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876856', 'tblTempVendorCDR_20' ) end [2025-04-10 12:23:20] Production.INFO: ProcessCDR(1,14876856,1,1,2) [2025-04-10 12:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876856', 'tblTempUsageDetail_20' ) start [2025-04-10 12:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876856', 'tblTempUsageDetail_20' ) end [2025-04-10 12:23:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 12:23:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 12:23:26] Production.INFO: ==21145== Releasing lock... [2025-04-10 12:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 12:23:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-10 12:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 09:24:05 [end_date_ymd] => 2025-04-10 12:24:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 09:24:05' and `end` < '2025-04-10 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-04-10 12:24:19] Production.INFO: count ==4719 [2025-04-10 12:24:21] Production.ERROR: pbx CDR StartTime 2025-04-10 09:24:05 - End Time 2025-04-10 12:24:05 [2025-04-10 12:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876861', 'tblTempUsageDetail_20' ) start [2025-04-10 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876861', 'tblTempUsageDetail_20' ) end [2025-04-10 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876861', 'tblTempVendorCDR_20' ) start [2025-04-10 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876861', 'tblTempVendorCDR_20' ) end [2025-04-10 12:24:21] Production.INFO: ProcessCDR(1,14876861,1,1,2) [2025-04-10 12:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876861', 'tblTempUsageDetail_20' ) start [2025-04-10 12:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876861', 'tblTempUsageDetail_20' ) end [2025-04-10 12:24:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 12:24:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 12:24:27] Production.INFO: ==21228== Releasing lock... [2025-04-10 12:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 12:24:27] Production.INFO: 63.25 MB #Memory Used# [2025-04-10 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 09:25:05 [end_date_ymd] => 2025-04-10 12:25:05 [RateCDR] => 1 ) [2025-04-10 12:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 09:25:05' and `end` < '2025-04-10 12:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 12:25:19] Production.INFO: count ==4718 [2025-04-10 12:25:21] Production.ERROR: pbx CDR StartTime 2025-04-10 09:25:05 - End Time 2025-04-10 12:25:05 [2025-04-10 12:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876866', 'tblTempUsageDetail_20' ) start [2025-04-10 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876866', 'tblTempUsageDetail_20' ) end [2025-04-10 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876866', 'tblTempVendorCDR_20' ) start [2025-04-10 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876866', 'tblTempVendorCDR_20' ) end [2025-04-10 12:25:21] Production.INFO: ProcessCDR(1,14876866,1,1,2) [2025-04-10 12:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876866', 'tblTempUsageDetail_20' ) start [2025-04-10 12:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876866', 'tblTempUsageDetail_20' ) end [2025-04-10 12:25:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 12:25:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 12:25:27] Production.INFO: ==21297== Releasing lock... [2025-04-10 12:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 12:25:27] Production.INFO: 63.25 MB #Memory Used# [2025-04-10 12:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 09:26:05 [end_date_ymd] => 2025-04-10 12:26:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 09:26:05' and `end` < '2025-04-10 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-04-10 12:26:19] Production.INFO: count ==4724 [2025-04-10 12:26:21] Production.ERROR: pbx CDR StartTime 2025-04-10 09:26:05 - End Time 2025-04-10 12:26:05 [2025-04-10 12:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876871', 'tblTempUsageDetail_20' ) start [2025-04-10 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876871', 'tblTempUsageDetail_20' ) end [2025-04-10 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876871', 'tblTempVendorCDR_20' ) start [2025-04-10 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876871', 'tblTempVendorCDR_20' ) end [2025-04-10 12:26:21] Production.INFO: ProcessCDR(1,14876871,1,1,2) [2025-04-10 12:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876871', 'tblTempUsageDetail_20' ) start [2025-04-10 12:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876871', 'tblTempUsageDetail_20' ) end [2025-04-10 12:26:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 12:26:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 12:26:26] Production.INFO: ==21372== Releasing lock... [2025-04-10 12:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 12:26:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-10 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 09:27:05 [end_date_ymd] => 2025-04-10 12:27:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 09:27:05' and `end` < '2025-04-10 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-04-10 12:27:18] Production.INFO: count ==4722 [2025-04-10 12:27:20] Production.ERROR: pbx CDR StartTime 2025-04-10 09:27:05 - End Time 2025-04-10 12:27:05 [2025-04-10 12:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 12:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876876', 'tblTempUsageDetail_20' ) start [2025-04-10 12:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876876', 'tblTempUsageDetail_20' ) end [2025-04-10 12:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876876', 'tblTempVendorCDR_20' ) start [2025-04-10 12:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876876', 'tblTempVendorCDR_20' ) end [2025-04-10 12:27:20] Production.INFO: ProcessCDR(1,14876876,1,1,2) [2025-04-10 12:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876876', 'tblTempUsageDetail_20' ) start [2025-04-10 12:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876876', 'tblTempUsageDetail_20' ) end [2025-04-10 12:27:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 12:27:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 12:27:25] Production.INFO: ==21442== Releasing lock... [2025-04-10 12:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 12:27:25] Production.INFO: 63.25 MB #Memory Used# [2025-04-10 12:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 09:28:05 [end_date_ymd] => 2025-04-10 12:28:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 09:28:05' and `end` < '2025-04-10 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-04-10 12:28:19] Production.INFO: count ==4719 [2025-04-10 12:28:21] Production.ERROR: pbx CDR StartTime 2025-04-10 09:28:05 - End Time 2025-04-10 12:28:05 [2025-04-10 12:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876881', 'tblTempUsageDetail_20' ) start [2025-04-10 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876881', 'tblTempUsageDetail_20' ) end [2025-04-10 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876881', 'tblTempVendorCDR_20' ) start [2025-04-10 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876881', 'tblTempVendorCDR_20' ) end [2025-04-10 12:28:21] Production.INFO: ProcessCDR(1,14876881,1,1,2) [2025-04-10 12:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876881', 'tblTempUsageDetail_20' ) start [2025-04-10 12:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876881', 'tblTempUsageDetail_20' ) end [2025-04-10 12:28:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 12:28:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 12:28:26] Production.INFO: ==21517== Releasing lock... [2025-04-10 12:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 12:28:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-10 12:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 09:29:04 [end_date_ymd] => 2025-04-10 12:29:04 [RateCDR] => 1 ) [2025-04-10 12:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 09:29:04' and `end` < '2025-04-10 12:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 12:29:18] Production.INFO: count ==4716 [2025-04-10 12:29:20] Production.ERROR: pbx CDR StartTime 2025-04-10 09:29:04 - End Time 2025-04-10 12:29:04 [2025-04-10 12:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 12:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876886', 'tblTempUsageDetail_20' ) start [2025-04-10 12:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876886', 'tblTempUsageDetail_20' ) end [2025-04-10 12:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876886', 'tblTempVendorCDR_20' ) start [2025-04-10 12:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876886', 'tblTempVendorCDR_20' ) end [2025-04-10 12:29:20] Production.INFO: ProcessCDR(1,14876886,1,1,2) [2025-04-10 12:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876886', 'tblTempUsageDetail_20' ) start [2025-04-10 12:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876886', 'tblTempUsageDetail_20' ) end [2025-04-10 12:29:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 12:29:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 12:29:25] Production.INFO: ==21596== Releasing lock... [2025-04-10 12:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 12:29:25] Production.INFO: 63.25 MB #Memory Used# [2025-04-10 12:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 09:30:06 [end_date_ymd] => 2025-04-10 12:30:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 09:30:06' and `end` < '2025-04-10 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-04-10 12:30:20] Production.INFO: count ==4714 [2025-04-10 12:30:22] Production.ERROR: pbx CDR StartTime 2025-04-10 09:30:06 - End Time 2025-04-10 12:30:06 [2025-04-10 12:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876892', 'tblTempUsageDetail_20' ) start [2025-04-10 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876892', 'tblTempUsageDetail_20' ) end [2025-04-10 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876892', 'tblTempVendorCDR_20' ) start [2025-04-10 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876892', 'tblTempVendorCDR_20' ) end [2025-04-10 12:30:22] Production.INFO: ProcessCDR(1,14876892,1,1,2) [2025-04-10 12:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876892', 'tblTempUsageDetail_20' ) start [2025-04-10 12:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876892', 'tblTempUsageDetail_20' ) end [2025-04-10 12:30:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 12:30:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 12:30:27] Production.INFO: ==21671== Releasing lock... [2025-04-10 12:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 12:30:27] Production.INFO: 63.25 MB #Memory Used# [2025-04-10 12:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 09:31:04 [end_date_ymd] => 2025-04-10 12:31:04 [RateCDR] => 1 ) [2025-04-10 12: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-04-10 09:31:04' and `end` < '2025-04-10 12: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-04-10 12:31:18] Production.INFO: count ==4783 [2025-04-10 12:31:20] Production.ERROR: pbx CDR StartTime 2025-04-10 09:31:04 - End Time 2025-04-10 12:31:04 [2025-04-10 12:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 12:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876897', 'tblTempUsageDetail_20' ) start [2025-04-10 12:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876897', 'tblTempUsageDetail_20' ) end [2025-04-10 12:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876897', 'tblTempVendorCDR_20' ) start [2025-04-10 12:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876897', 'tblTempVendorCDR_20' ) end [2025-04-10 12:31:20] Production.INFO: ProcessCDR(1,14876897,1,1,2) [2025-04-10 12:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876897', 'tblTempUsageDetail_20' ) start [2025-04-10 12:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876897', 'tblTempUsageDetail_20' ) end [2025-04-10 12:31:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 12:31:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 12:31:25] Production.INFO: ==21748== Releasing lock... [2025-04-10 12:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 12:31:25] Production.INFO: 63.75 MB #Memory Used# [2025-04-10 12:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 09:32:05 [end_date_ymd] => 2025-04-10 12:32:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 09:32:05' and `end` < '2025-04-10 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-04-10 12:32:19] Production.INFO: count ==4795 [2025-04-10 12:32:21] Production.ERROR: pbx CDR StartTime 2025-04-10 09:32:05 - End Time 2025-04-10 12:32:05 [2025-04-10 12:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876902', 'tblTempUsageDetail_20' ) start [2025-04-10 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876902', 'tblTempUsageDetail_20' ) end [2025-04-10 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876902', 'tblTempVendorCDR_20' ) start [2025-04-10 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876902', 'tblTempVendorCDR_20' ) end [2025-04-10 12:32:21] Production.INFO: ProcessCDR(1,14876902,1,1,2) [2025-04-10 12:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876902', 'tblTempUsageDetail_20' ) start [2025-04-10 12:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876902', 'tblTempUsageDetail_20' ) end [2025-04-10 12:32:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 12:32:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 12:32:26] Production.INFO: ==21821== Releasing lock... [2025-04-10 12:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 12:32:26] Production.INFO: 64 MB #Memory Used# [2025-04-10 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 09:33:05 [end_date_ymd] => 2025-04-10 12:33:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 09:33:05' and `end` < '2025-04-10 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-04-10 12:33:19] Production.INFO: count ==4794 [2025-04-10 12:33:21] Production.ERROR: pbx CDR StartTime 2025-04-10 09:33:05 - End Time 2025-04-10 12:33:05 [2025-04-10 12:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876907', 'tblTempUsageDetail_20' ) start [2025-04-10 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876907', 'tblTempUsageDetail_20' ) end [2025-04-10 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876907', 'tblTempVendorCDR_20' ) start [2025-04-10 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876907', 'tblTempVendorCDR_20' ) end [2025-04-10 12:33:21] Production.INFO: ProcessCDR(1,14876907,1,1,2) [2025-04-10 12:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876907', 'tblTempUsageDetail_20' ) start [2025-04-10 12:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876907', 'tblTempUsageDetail_20' ) end [2025-04-10 12:33:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 12:33:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 12:33:26] Production.INFO: ==21899== Releasing lock... [2025-04-10 12:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 12:33:26] Production.INFO: 64 MB #Memory Used# [2025-04-10 12:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 09:34:05 [end_date_ymd] => 2025-04-10 12:34:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 09:34:05' and `end` < '2025-04-10 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-04-10 12:34:19] Production.INFO: count ==4777 [2025-04-10 12:34:21] Production.ERROR: pbx CDR StartTime 2025-04-10 09:34:05 - End Time 2025-04-10 12:34:05 [2025-04-10 12:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876912', 'tblTempUsageDetail_20' ) start [2025-04-10 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876912', 'tblTempUsageDetail_20' ) end [2025-04-10 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876912', 'tblTempVendorCDR_20' ) start [2025-04-10 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876912', 'tblTempVendorCDR_20' ) end [2025-04-10 12:34:21] Production.INFO: ProcessCDR(1,14876912,1,1,2) [2025-04-10 12:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876912', 'tblTempUsageDetail_20' ) start [2025-04-10 12:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876912', 'tblTempUsageDetail_20' ) end [2025-04-10 12:34:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 12:34:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 12:34:26] Production.INFO: ==22010== Releasing lock... [2025-04-10 12:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 12:34:26] Production.INFO: 63.75 MB #Memory Used# [2025-04-10 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 09:35:05 [end_date_ymd] => 2025-04-10 12:35:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 09:35:05' and `end` < '2025-04-10 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-04-10 12:35:19] Production.INFO: count ==4783 [2025-04-10 12:35:21] Production.ERROR: pbx CDR StartTime 2025-04-10 09:35:05 - End Time 2025-04-10 12:35:05 [2025-04-10 12:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876917', 'tblTempUsageDetail_20' ) start [2025-04-10 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876917', 'tblTempUsageDetail_20' ) end [2025-04-10 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876917', 'tblTempVendorCDR_20' ) start [2025-04-10 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876917', 'tblTempVendorCDR_20' ) end [2025-04-10 12:35:21] Production.INFO: ProcessCDR(1,14876917,1,1,2) [2025-04-10 12:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876917', 'tblTempUsageDetail_20' ) start [2025-04-10 12:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876917', 'tblTempUsageDetail_20' ) end [2025-04-10 12:35:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 12:35:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 12:35:26] Production.INFO: ==22084== Releasing lock... [2025-04-10 12:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 12:35:26] Production.INFO: 63.75 MB #Memory Used# [2025-04-10 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 09:36:05 [end_date_ymd] => 2025-04-10 12:36:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 09:36:05' and `end` < '2025-04-10 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-04-10 12:36:19] Production.INFO: count ==4768 [2025-04-10 12:36:20] Production.ERROR: pbx CDR StartTime 2025-04-10 09:36:05 - End Time 2025-04-10 12:36:05 [2025-04-10 12:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 12:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876922', 'tblTempUsageDetail_20' ) start [2025-04-10 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876922', 'tblTempUsageDetail_20' ) end [2025-04-10 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876922', 'tblTempVendorCDR_20' ) start [2025-04-10 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876922', 'tblTempVendorCDR_20' ) end [2025-04-10 12:36:21] Production.INFO: ProcessCDR(1,14876922,1,1,2) [2025-04-10 12:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876922', 'tblTempUsageDetail_20' ) start [2025-04-10 12:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876922', 'tblTempUsageDetail_20' ) end [2025-04-10 12:36:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 12:36:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 12:36:26] Production.INFO: ==22157== Releasing lock... [2025-04-10 12:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 12:36:26] Production.INFO: 63.75 MB #Memory Used# [2025-04-10 12:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 09:37:06 [end_date_ymd] => 2025-04-10 12:37:06 [RateCDR] => 1 ) [2025-04-10 12:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 09:37:06' and `end` < '2025-04-10 12:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 12:37:20] Production.INFO: count ==4773 [2025-04-10 12:37:22] Production.ERROR: pbx CDR StartTime 2025-04-10 09:37:06 - End Time 2025-04-10 12:37:06 [2025-04-10 12:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 12:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876927', 'tblTempUsageDetail_20' ) start [2025-04-10 12:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876927', 'tblTempUsageDetail_20' ) end [2025-04-10 12:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876927', 'tblTempVendorCDR_20' ) start [2025-04-10 12:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876927', 'tblTempVendorCDR_20' ) end [2025-04-10 12:37:22] Production.INFO: ProcessCDR(1,14876927,1,1,2) [2025-04-10 12:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876927', 'tblTempUsageDetail_20' ) start [2025-04-10 12:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876927', 'tblTempUsageDetail_20' ) end [2025-04-10 12:37:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 12:37:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 12:37:27] Production.INFO: ==22236== Releasing lock... [2025-04-10 12:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 12:37:27] Production.INFO: 63.75 MB #Memory Used# [2025-04-10 12:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 09:38:05 [end_date_ymd] => 2025-04-10 12:38:05 [RateCDR] => 1 ) [2025-04-10 12:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 09:38:05' and `end` < '2025-04-10 12:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 12:38:18] Production.INFO: count ==4777 [2025-04-10 12:38:20] Production.ERROR: pbx CDR StartTime 2025-04-10 09:38:05 - End Time 2025-04-10 12:38:05 [2025-04-10 12:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 12:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876932', 'tblTempUsageDetail_20' ) start [2025-04-10 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876932', 'tblTempUsageDetail_20' ) end [2025-04-10 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876932', 'tblTempVendorCDR_20' ) start [2025-04-10 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876932', 'tblTempVendorCDR_20' ) end [2025-04-10 12:38:21] Production.INFO: ProcessCDR(1,14876932,1,1,2) [2025-04-10 12:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876932', 'tblTempUsageDetail_20' ) start [2025-04-10 12:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876932', 'tblTempUsageDetail_20' ) end [2025-04-10 12:38:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 12:38:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 12:38:26] Production.INFO: ==22312== Releasing lock... [2025-04-10 12:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 12:38:26] Production.INFO: 63.75 MB #Memory Used# [2025-04-10 12:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 09:39:05 [end_date_ymd] => 2025-04-10 12:39:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 09:39:05' and `end` < '2025-04-10 12:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 12:39:19] Production.INFO: count ==4758 [2025-04-10 12:39:21] Production.ERROR: pbx CDR StartTime 2025-04-10 09:39:05 - End Time 2025-04-10 12:39:05 [2025-04-10 12:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876937', 'tblTempUsageDetail_20' ) start [2025-04-10 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876937', 'tblTempUsageDetail_20' ) end [2025-04-10 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876937', 'tblTempVendorCDR_20' ) start [2025-04-10 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876937', 'tblTempVendorCDR_20' ) end [2025-04-10 12:39:21] Production.INFO: ProcessCDR(1,14876937,1,1,2) [2025-04-10 12:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876937', 'tblTempUsageDetail_20' ) start [2025-04-10 12:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876937', 'tblTempUsageDetail_20' ) end [2025-04-10 12:39:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 12:39:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 12:39:26] Production.INFO: ==22386== Releasing lock... [2025-04-10 12:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 12:39:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-10 12:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 09:40:05 [end_date_ymd] => 2025-04-10 12:40:05 [RateCDR] => 1 ) [2025-04-10 12:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 09:40:05' and `end` < '2025-04-10 12:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 12:40:20] Production.INFO: count ==4755 [2025-04-10 12:40:22] Production.ERROR: pbx CDR StartTime 2025-04-10 09:40:05 - End Time 2025-04-10 12:40:05 [2025-04-10 12:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876942', 'tblTempUsageDetail_20' ) start [2025-04-10 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876942', 'tblTempUsageDetail_20' ) end [2025-04-10 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876942', 'tblTempVendorCDR_20' ) start [2025-04-10 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876942', 'tblTempVendorCDR_20' ) end [2025-04-10 12:40:22] Production.INFO: ProcessCDR(1,14876942,1,1,2) [2025-04-10 12:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876942', 'tblTempUsageDetail_20' ) start [2025-04-10 12:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876942', 'tblTempUsageDetail_20' ) end [2025-04-10 12:40:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 12:40:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 12:40:27] Production.INFO: ==22461== Releasing lock... [2025-04-10 12:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 12:40:27] Production.INFO: 63.5 MB #Memory Used# [2025-04-10 12:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 09:41:06 [end_date_ymd] => 2025-04-10 12:41:06 [RateCDR] => 1 ) [2025-04-10 12:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 09:41:06' and `end` < '2025-04-10 12:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 12:41:19] Production.INFO: count ==4764 [2025-04-10 12:41:21] Production.ERROR: pbx CDR StartTime 2025-04-10 09:41:06 - End Time 2025-04-10 12:41:06 [2025-04-10 12:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876948', 'tblTempUsageDetail_20' ) start [2025-04-10 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876948', 'tblTempUsageDetail_20' ) end [2025-04-10 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876948', 'tblTempVendorCDR_20' ) start [2025-04-10 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876948', 'tblTempVendorCDR_20' ) end [2025-04-10 12:41:21] Production.INFO: ProcessCDR(1,14876948,1,1,2) [2025-04-10 12:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876948', 'tblTempUsageDetail_20' ) start [2025-04-10 12:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876948', 'tblTempUsageDetail_20' ) end [2025-04-10 12:41:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 12:41:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 12:41:27] Production.INFO: ==22537== Releasing lock... [2025-04-10 12:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 12:41:27] Production.INFO: 63.75 MB #Memory Used# [2025-04-10 12:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 09:42:05 [end_date_ymd] => 2025-04-10 12:42:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 09:42:05' and `end` < '2025-04-10 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-04-10 12:42:19] Production.INFO: count ==4789 [2025-04-10 12:42:21] Production.ERROR: pbx CDR StartTime 2025-04-10 09:42:05 - End Time 2025-04-10 12:42:05 [2025-04-10 12:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876953', 'tblTempUsageDetail_20' ) start [2025-04-10 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876953', 'tblTempUsageDetail_20' ) end [2025-04-10 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876953', 'tblTempVendorCDR_20' ) start [2025-04-10 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876953', 'tblTempVendorCDR_20' ) end [2025-04-10 12:42:21] Production.INFO: ProcessCDR(1,14876953,1,1,2) [2025-04-10 12:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876953', 'tblTempUsageDetail_20' ) start [2025-04-10 12:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876953', 'tblTempUsageDetail_20' ) end [2025-04-10 12:42:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 12:42:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 12:42:26] Production.INFO: ==22608== Releasing lock... [2025-04-10 12:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 12:42:26] Production.INFO: 63.75 MB #Memory Used# [2025-04-10 12:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 09:43:06 [end_date_ymd] => 2025-04-10 12:43:06 [RateCDR] => 1 ) [2025-04-10 12:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 09:43:06' and `end` < '2025-04-10 12:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 12:43:19] Production.INFO: count ==4773 [2025-04-10 12:43:21] Production.ERROR: pbx CDR StartTime 2025-04-10 09:43:06 - End Time 2025-04-10 12:43:06 [2025-04-10 12:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876958', 'tblTempUsageDetail_20' ) start [2025-04-10 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876958', 'tblTempUsageDetail_20' ) end [2025-04-10 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876958', 'tblTempVendorCDR_20' ) start [2025-04-10 12:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876958', 'tblTempVendorCDR_20' ) end [2025-04-10 12:43:21] Production.INFO: ProcessCDR(1,14876958,1,1,2) [2025-04-10 12:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876958', 'tblTempUsageDetail_20' ) start [2025-04-10 12:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876958', 'tblTempUsageDetail_20' ) end [2025-04-10 12:43:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 12:43:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 12:43:26] Production.INFO: ==22685== Releasing lock... [2025-04-10 12:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 12:43:26] Production.INFO: 63.75 MB #Memory Used# [2025-04-10 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 09:44:05 [end_date_ymd] => 2025-04-10 12:44:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 09:44:05' and `end` < '2025-04-10 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-04-10 12:44:19] Production.INFO: count ==4746 [2025-04-10 12:44:20] Production.ERROR: pbx CDR StartTime 2025-04-10 09:44:05 - End Time 2025-04-10 12:44:05 [2025-04-10 12:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 12:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876963', 'tblTempUsageDetail_20' ) start [2025-04-10 12:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876963', 'tblTempUsageDetail_20' ) end [2025-04-10 12:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876963', 'tblTempVendorCDR_20' ) start [2025-04-10 12:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876963', 'tblTempVendorCDR_20' ) end [2025-04-10 12:44:21] Production.INFO: ProcessCDR(1,14876963,1,1,2) [2025-04-10 12:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876963', 'tblTempUsageDetail_20' ) start [2025-04-10 12:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876963', 'tblTempUsageDetail_20' ) end [2025-04-10 12:44:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 12:44:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 12:44:26] Production.INFO: ==22759== Releasing lock... [2025-04-10 12:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 12:44:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-10 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 09:45:05 [end_date_ymd] => 2025-04-10 12:45:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 09:45:05' and `end` < '2025-04-10 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-04-10 12:45:19] Production.INFO: count ==4750 [2025-04-10 12:45:21] Production.ERROR: pbx CDR StartTime 2025-04-10 09:45:05 - End Time 2025-04-10 12:45:05 [2025-04-10 12:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876968', 'tblTempUsageDetail_20' ) start [2025-04-10 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876968', 'tblTempUsageDetail_20' ) end [2025-04-10 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876968', 'tblTempVendorCDR_20' ) start [2025-04-10 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876968', 'tblTempVendorCDR_20' ) end [2025-04-10 12:45:21] Production.INFO: ProcessCDR(1,14876968,1,1,2) [2025-04-10 12:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876968', 'tblTempUsageDetail_20' ) start [2025-04-10 12:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876968', 'tblTempUsageDetail_20' ) end [2025-04-10 12:45:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 12:45:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 12:45:26] Production.INFO: ==22835== Releasing lock... [2025-04-10 12:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 12:45:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-10 12:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 09:46:05 [end_date_ymd] => 2025-04-10 12:46:05 [RateCDR] => 1 ) [2025-04-10 12:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 09:46:05' and `end` < '2025-04-10 12:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 12:46:19] Production.INFO: count ==4739 [2025-04-10 12:46:21] Production.ERROR: pbx CDR StartTime 2025-04-10 09:46:05 - End Time 2025-04-10 12:46:05 [2025-04-10 12:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876973', 'tblTempUsageDetail_20' ) start [2025-04-10 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876973', 'tblTempUsageDetail_20' ) end [2025-04-10 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876973', 'tblTempVendorCDR_20' ) start [2025-04-10 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876973', 'tblTempVendorCDR_20' ) end [2025-04-10 12:46:21] Production.INFO: ProcessCDR(1,14876973,1,1,2) [2025-04-10 12:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876973', 'tblTempUsageDetail_20' ) start [2025-04-10 12:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876973', 'tblTempUsageDetail_20' ) end [2025-04-10 12:46:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 12:46:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 12:46:26] Production.INFO: ==22908== Releasing lock... [2025-04-10 12:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 12:46:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-10 12:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 09:47:05 [end_date_ymd] => 2025-04-10 12:47:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 09:47:05' and `end` < '2025-04-10 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-04-10 12:47:19] Production.INFO: count ==4739 [2025-04-10 12:47:21] Production.ERROR: pbx CDR StartTime 2025-04-10 09:47:05 - End Time 2025-04-10 12:47:05 [2025-04-10 12:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876978', 'tblTempUsageDetail_20' ) start [2025-04-10 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876978', 'tblTempUsageDetail_20' ) end [2025-04-10 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876978', 'tblTempVendorCDR_20' ) start [2025-04-10 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876978', 'tblTempVendorCDR_20' ) end [2025-04-10 12:47:21] Production.INFO: ProcessCDR(1,14876978,1,1,2) [2025-04-10 12:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876978', 'tblTempUsageDetail_20' ) start [2025-04-10 12:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876978', 'tblTempUsageDetail_20' ) end [2025-04-10 12:47:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 12:47:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 12:47:26] Production.INFO: ==22979== Releasing lock... [2025-04-10 12:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 12:47:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-10 12:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 09:48:06 [end_date_ymd] => 2025-04-10 12:48:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 09:48:06' and `end` < '2025-04-10 12:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 12:48:20] Production.INFO: count ==4720 [2025-04-10 12:48:22] Production.ERROR: pbx CDR StartTime 2025-04-10 09:48:06 - End Time 2025-04-10 12:48:06 [2025-04-10 12:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 12:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876983', 'tblTempUsageDetail_20' ) start [2025-04-10 12:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876983', 'tblTempUsageDetail_20' ) end [2025-04-10 12:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876983', 'tblTempVendorCDR_20' ) start [2025-04-10 12:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876983', 'tblTempVendorCDR_20' ) end [2025-04-10 12:48:22] Production.INFO: ProcessCDR(1,14876983,1,1,2) [2025-04-10 12:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876983', 'tblTempUsageDetail_20' ) start [2025-04-10 12:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876983', 'tblTempUsageDetail_20' ) end [2025-04-10 12:48:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 12:48:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 12:48:27] Production.INFO: ==23052== Releasing lock... [2025-04-10 12:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 12:48:27] Production.INFO: 63.25 MB #Memory Used# [2025-04-10 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 09:49:05 [end_date_ymd] => 2025-04-10 12:49:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 09:49:05' and `end` < '2025-04-10 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-04-10 12:49:19] Production.INFO: count ==4718 [2025-04-10 12:49:21] Production.ERROR: pbx CDR StartTime 2025-04-10 09:49:05 - End Time 2025-04-10 12:49:05 [2025-04-10 12:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876988', 'tblTempUsageDetail_20' ) start [2025-04-10 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876988', 'tblTempUsageDetail_20' ) end [2025-04-10 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876988', 'tblTempVendorCDR_20' ) start [2025-04-10 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876988', 'tblTempVendorCDR_20' ) end [2025-04-10 12:49:21] Production.INFO: ProcessCDR(1,14876988,1,1,2) [2025-04-10 12:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876988', 'tblTempUsageDetail_20' ) start [2025-04-10 12:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876988', 'tblTempUsageDetail_20' ) end [2025-04-10 12:49:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 12:49:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 12:49:26] Production.INFO: ==23163== Releasing lock... [2025-04-10 12:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 12:49:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-10 12:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 09:50:07 [end_date_ymd] => 2025-04-10 12:50:07 [RateCDR] => 1 ) [2025-04-10 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-04-10 09:50:07' and `end` < '2025-04-10 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-04-10 12:50:21] Production.INFO: count ==4705 [2025-04-10 12:50:23] Production.ERROR: pbx CDR StartTime 2025-04-10 09:50:07 - End Time 2025-04-10 12:50:07 [2025-04-10 12:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 12:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876994', 'tblTempUsageDetail_20' ) start [2025-04-10 12:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876994', 'tblTempUsageDetail_20' ) end [2025-04-10 12:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876994', 'tblTempVendorCDR_20' ) start [2025-04-10 12:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876994', 'tblTempVendorCDR_20' ) end [2025-04-10 12:50:23] Production.INFO: ProcessCDR(1,14876994,1,1,2) [2025-04-10 12:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:50:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:50:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876994', 'tblTempUsageDetail_20' ) start [2025-04-10 12:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876994', 'tblTempUsageDetail_20' ) end [2025-04-10 12:50:28] Production.ERROR: pbx prc_insertCDR start [2025-04-10 12:50:28] Production.ERROR: pbx prc_insertCDR end [2025-04-10 12:50:28] Production.INFO: ==23236== Releasing lock... [2025-04-10 12:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 12:50:28] Production.INFO: 63.25 MB #Memory Used# [2025-04-10 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 09:51:05 [end_date_ymd] => 2025-04-10 12:51:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 09:51:05' and `end` < '2025-04-10 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-04-10 12:51:19] Production.INFO: count ==4698 [2025-04-10 12:51:21] Production.ERROR: pbx CDR StartTime 2025-04-10 09:51:05 - End Time 2025-04-10 12:51:05 [2025-04-10 12:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876999', 'tblTempUsageDetail_20' ) start [2025-04-10 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14876999', 'tblTempUsageDetail_20' ) end [2025-04-10 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876999', 'tblTempVendorCDR_20' ) start [2025-04-10 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14876999', 'tblTempVendorCDR_20' ) end [2025-04-10 12:51:21] Production.INFO: ProcessCDR(1,14876999,1,1,2) [2025-04-10 12:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14876999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14876999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14876999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14876999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876999', 'tblTempUsageDetail_20' ) start [2025-04-10 12:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14876999', 'tblTempUsageDetail_20' ) end [2025-04-10 12:51:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 12:51:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 12:51:26] Production.INFO: ==23311== Releasing lock... [2025-04-10 12:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 12:51:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-10 12:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 09:52:05 [end_date_ymd] => 2025-04-10 12:52:05 [RateCDR] => 1 ) [2025-04-10 12:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 09:52:05' and `end` < '2025-04-10 12:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 12:52:19] Production.INFO: count ==4693 [2025-04-10 12:52:21] Production.ERROR: pbx CDR StartTime 2025-04-10 09:52:05 - End Time 2025-04-10 12:52:05 [2025-04-10 12:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877004', 'tblTempUsageDetail_20' ) start [2025-04-10 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877004', 'tblTempUsageDetail_20' ) end [2025-04-10 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877004', 'tblTempVendorCDR_20' ) start [2025-04-10 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877004', 'tblTempVendorCDR_20' ) end [2025-04-10 12:52:21] Production.INFO: ProcessCDR(1,14877004,1,1,2) [2025-04-10 12:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877004', 'tblTempUsageDetail_20' ) start [2025-04-10 12:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877004', 'tblTempUsageDetail_20' ) end [2025-04-10 12:52:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 12:52:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 12:52:26] Production.INFO: ==23391== Releasing lock... [2025-04-10 12:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 12:52:26] Production.INFO: 63 MB #Memory Used# [2025-04-10 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 09:53:05 [end_date_ymd] => 2025-04-10 12:53:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 09:53:05' and `end` < '2025-04-10 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-04-10 12:53:19] Production.INFO: count ==4691 [2025-04-10 12:53:21] Production.ERROR: pbx CDR StartTime 2025-04-10 09:53:05 - End Time 2025-04-10 12:53:05 [2025-04-10 12:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877009', 'tblTempUsageDetail_20' ) start [2025-04-10 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877009', 'tblTempUsageDetail_20' ) end [2025-04-10 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877009', 'tblTempVendorCDR_20' ) start [2025-04-10 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877009', 'tblTempVendorCDR_20' ) end [2025-04-10 12:53:21] Production.INFO: ProcessCDR(1,14877009,1,1,2) [2025-04-10 12:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877009', 'tblTempUsageDetail_20' ) start [2025-04-10 12:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877009', 'tblTempUsageDetail_20' ) end [2025-04-10 12:53:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 12:53:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 12:53:27] Production.INFO: ==23466== Releasing lock... [2025-04-10 12:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 12:53:27] Production.INFO: 63 MB #Memory Used# [2025-04-10 12:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 09:54:05 [end_date_ymd] => 2025-04-10 12:54:05 [RateCDR] => 1 ) [2025-04-10 12: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-04-10 09:54:05' and `end` < '2025-04-10 12: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-04-10 12:54:19] Production.INFO: count ==4693 [2025-04-10 12:54:21] Production.ERROR: pbx CDR StartTime 2025-04-10 09:54:05 - End Time 2025-04-10 12:54:05 [2025-04-10 12:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877014', 'tblTempUsageDetail_20' ) start [2025-04-10 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877014', 'tblTempUsageDetail_20' ) end [2025-04-10 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877014', 'tblTempVendorCDR_20' ) start [2025-04-10 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877014', 'tblTempVendorCDR_20' ) end [2025-04-10 12:54:21] Production.INFO: ProcessCDR(1,14877014,1,1,2) [2025-04-10 12:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877014', 'tblTempUsageDetail_20' ) start [2025-04-10 12:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877014', 'tblTempUsageDetail_20' ) end [2025-04-10 12:54:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 12:54:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 12:54:26] Production.INFO: ==23540== Releasing lock... [2025-04-10 12:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 12:54:26] Production.INFO: 63 MB #Memory Used# [2025-04-10 12:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 09:55:05 [end_date_ymd] => 2025-04-10 12:55:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 09:55:05' and `end` < '2025-04-10 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-04-10 12:55:19] Production.INFO: count ==4717 [2025-04-10 12:55:21] Production.ERROR: pbx CDR StartTime 2025-04-10 09:55:05 - End Time 2025-04-10 12:55:05 [2025-04-10 12:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877019', 'tblTempUsageDetail_20' ) start [2025-04-10 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877019', 'tblTempUsageDetail_20' ) end [2025-04-10 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877019', 'tblTempVendorCDR_20' ) start [2025-04-10 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877019', 'tblTempVendorCDR_20' ) end [2025-04-10 12:55:21] Production.INFO: ProcessCDR(1,14877019,1,1,2) [2025-04-10 12:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877019', 'tblTempUsageDetail_20' ) start [2025-04-10 12:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877019', 'tblTempUsageDetail_20' ) end [2025-04-10 12:55:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 12:55:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 12:55:26] Production.INFO: ==23613== Releasing lock... [2025-04-10 12:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 12:55:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-10 12:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 09:56:05 [end_date_ymd] => 2025-04-10 12:56:05 [RateCDR] => 1 ) [2025-04-10 12:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 09:56:05' and `end` < '2025-04-10 12:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 12:56:19] Production.INFO: count ==4716 [2025-04-10 12:56:21] Production.ERROR: pbx CDR StartTime 2025-04-10 09:56:05 - End Time 2025-04-10 12:56:05 [2025-04-10 12:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877024', 'tblTempUsageDetail_20' ) start [2025-04-10 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877024', 'tblTempUsageDetail_20' ) end [2025-04-10 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877024', 'tblTempVendorCDR_20' ) start [2025-04-10 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877024', 'tblTempVendorCDR_20' ) end [2025-04-10 12:56:21] Production.INFO: ProcessCDR(1,14877024,1,1,2) [2025-04-10 12:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877024', 'tblTempUsageDetail_20' ) start [2025-04-10 12:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877024', 'tblTempUsageDetail_20' ) end [2025-04-10 12:56:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 12:56:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 12:56:26] Production.INFO: ==23687== Releasing lock... [2025-04-10 12:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 12:56:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-10 12:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 09:57:05 [end_date_ymd] => 2025-04-10 12:57:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 09:57:05' and `end` < '2025-04-10 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-04-10 12:57:19] Production.INFO: count ==4704 [2025-04-10 12:57:21] Production.ERROR: pbx CDR StartTime 2025-04-10 09:57:05 - End Time 2025-04-10 12:57:05 [2025-04-10 12:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877029', 'tblTempUsageDetail_20' ) start [2025-04-10 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877029', 'tblTempUsageDetail_20' ) end [2025-04-10 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877029', 'tblTempVendorCDR_20' ) start [2025-04-10 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877029', 'tblTempVendorCDR_20' ) end [2025-04-10 12:57:21] Production.INFO: ProcessCDR(1,14877029,1,1,2) [2025-04-10 12:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877029', 'tblTempUsageDetail_20' ) start [2025-04-10 12:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877029', 'tblTempUsageDetail_20' ) end [2025-04-10 12:57:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 12:57:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 12:57:26] Production.INFO: ==23756== Releasing lock... [2025-04-10 12:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 12:57:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-10 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 09:58:05 [end_date_ymd] => 2025-04-10 12:58:05 [RateCDR] => 1 ) [2025-04-10 12:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 09:58:05' and `end` < '2025-04-10 12:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 12:58:19] Production.INFO: count ==4708 [2025-04-10 12:58:20] Production.ERROR: pbx CDR StartTime 2025-04-10 09:58:05 - End Time 2025-04-10 12:58:05 [2025-04-10 12:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 12:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877034', 'tblTempUsageDetail_20' ) start [2025-04-10 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877034', 'tblTempUsageDetail_20' ) end [2025-04-10 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877034', 'tblTempVendorCDR_20' ) start [2025-04-10 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877034', 'tblTempVendorCDR_20' ) end [2025-04-10 12:58:21] Production.INFO: ProcessCDR(1,14877034,1,1,2) [2025-04-10 12:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877034', 'tblTempUsageDetail_20' ) start [2025-04-10 12:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877034', 'tblTempUsageDetail_20' ) end [2025-04-10 12:58:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 12:58:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 12:58:26] Production.INFO: ==23829== Releasing lock... [2025-04-10 12:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 12:58:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-10 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 09:59:05 [end_date_ymd] => 2025-04-10 12:59:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 09:59:05' and `end` < '2025-04-10 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-04-10 12:59:18] Production.INFO: count ==4709 [2025-04-10 12:59:20] Production.ERROR: pbx CDR StartTime 2025-04-10 09:59:05 - End Time 2025-04-10 12:59:05 [2025-04-10 12:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 12:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877039', 'tblTempUsageDetail_20' ) start [2025-04-10 12:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877039', 'tblTempUsageDetail_20' ) end [2025-04-10 12:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877039', 'tblTempVendorCDR_20' ) start [2025-04-10 12:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877039', 'tblTempVendorCDR_20' ) end [2025-04-10 12:59:20] Production.INFO: ProcessCDR(1,14877039,1,1,2) [2025-04-10 12:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 12:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 12:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877039', 'tblTempUsageDetail_20' ) start [2025-04-10 12:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877039', 'tblTempUsageDetail_20' ) end [2025-04-10 12:59:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 12:59:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 12:59:26] Production.INFO: ==23906== Releasing lock... [2025-04-10 12:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 12:59:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-10 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 10:00:06 [end_date_ymd] => 2025-04-10 13:00:06 [RateCDR] => 1 ) [2025-04-10 13:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 10:00:06' and `end` < '2025-04-10 13:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 13:00:19] Production.INFO: count ==4697 [2025-04-10 13:00:21] Production.ERROR: pbx CDR StartTime 2025-04-10 10:00:06 - End Time 2025-04-10 13:00:06 [2025-04-10 13:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 13:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877045', 'tblTempUsageDetail_20' ) start [2025-04-10 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877045', 'tblTempUsageDetail_20' ) end [2025-04-10 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877045', 'tblTempVendorCDR_20' ) start [2025-04-10 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877045', 'tblTempVendorCDR_20' ) end [2025-04-10 13:00:22] Production.INFO: ProcessCDR(1,14877045,1,1,2) [2025-04-10 13:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877045', 'tblTempUsageDetail_20' ) start [2025-04-10 13:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877045', 'tblTempUsageDetail_20' ) end [2025-04-10 13:00:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 13:00:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 13:00:27] Production.INFO: ==23994== Releasing lock... [2025-04-10 13:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 13:00:27] Production.INFO: 63.25 MB #Memory Used# [2025-04-10 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 10:01:05 [end_date_ymd] => 2025-04-10 13:01:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 10:01:05' and `end` < '2025-04-10 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-04-10 13:01:19] Production.INFO: count ==4754 [2025-04-10 13:01:20] Production.ERROR: pbx CDR StartTime 2025-04-10 10:01:05 - End Time 2025-04-10 13:01:05 [2025-04-10 13:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 13:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877050', 'tblTempUsageDetail_20' ) start [2025-04-10 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877050', 'tblTempUsageDetail_20' ) end [2025-04-10 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877050', 'tblTempVendorCDR_20' ) start [2025-04-10 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877050', 'tblTempVendorCDR_20' ) end [2025-04-10 13:01:21] Production.INFO: ProcessCDR(1,14877050,1,1,2) [2025-04-10 13:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877050', 'tblTempUsageDetail_20' ) start [2025-04-10 13:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877050', 'tblTempUsageDetail_20' ) end [2025-04-10 13:01:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 13:01:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 13:01:26] Production.INFO: ==24088== Releasing lock... [2025-04-10 13:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 13:01:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-10 13:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 10:02:05 [end_date_ymd] => 2025-04-10 13:02:05 [RateCDR] => 1 ) [2025-04-10 13:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 10:02:05' and `end` < '2025-04-10 13:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 13:02:19] Production.INFO: count ==4759 [2025-04-10 13:02:21] Production.ERROR: pbx CDR StartTime 2025-04-10 10:02:05 - End Time 2025-04-10 13:02:05 [2025-04-10 13:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 13:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877055', 'tblTempUsageDetail_20' ) start [2025-04-10 13:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877055', 'tblTempUsageDetail_20' ) end [2025-04-10 13:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877055', 'tblTempVendorCDR_20' ) start [2025-04-10 13:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877055', 'tblTempVendorCDR_20' ) end [2025-04-10 13:02:21] Production.INFO: ProcessCDR(1,14877055,1,1,2) [2025-04-10 13:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877055', 'tblTempUsageDetail_20' ) start [2025-04-10 13:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877055', 'tblTempUsageDetail_20' ) end [2025-04-10 13:02:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 13:02:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 13:02:27] Production.INFO: ==24168== Releasing lock... [2025-04-10 13:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 13:02:27] Production.INFO: 63.5 MB #Memory Used# [2025-04-10 13:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 10:03:05 [end_date_ymd] => 2025-04-10 13:03:05 [RateCDR] => 1 ) [2025-04-10 13:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 10:03:05' and `end` < '2025-04-10 13:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 13:03:19] Production.INFO: count ==4791 [2025-04-10 13:03:21] Production.ERROR: pbx CDR StartTime 2025-04-10 10:03:05 - End Time 2025-04-10 13:03:05 [2025-04-10 13:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877060', 'tblTempUsageDetail_20' ) start [2025-04-10 13:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877060', 'tblTempUsageDetail_20' ) end [2025-04-10 13:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877060', 'tblTempVendorCDR_20' ) start [2025-04-10 13:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877060', 'tblTempVendorCDR_20' ) end [2025-04-10 13:03:22] Production.INFO: ProcessCDR(1,14877060,1,1,2) [2025-04-10 13:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877060', 'tblTempUsageDetail_20' ) start [2025-04-10 13:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877060', 'tblTempUsageDetail_20' ) end [2025-04-10 13:03:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 13:03:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 13:03:27] Production.INFO: ==24244== Releasing lock... [2025-04-10 13:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 13:03:27] Production.INFO: 63.75 MB #Memory Used# [2025-04-10 13:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 10:04:05 [end_date_ymd] => 2025-04-10 13:04:05 [RateCDR] => 1 ) [2025-04-10 13:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 10:04:05' and `end` < '2025-04-10 13:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 13:04:19] Production.INFO: count ==4799 [2025-04-10 13:04:21] Production.ERROR: pbx CDR StartTime 2025-04-10 10:04:05 - End Time 2025-04-10 13:04:05 [2025-04-10 13:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877065', 'tblTempUsageDetail_20' ) start [2025-04-10 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877065', 'tblTempUsageDetail_20' ) end [2025-04-10 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877065', 'tblTempVendorCDR_20' ) start [2025-04-10 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877065', 'tblTempVendorCDR_20' ) end [2025-04-10 13:04:21] Production.INFO: ProcessCDR(1,14877065,1,1,2) [2025-04-10 13:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877065', 'tblTempUsageDetail_20' ) start [2025-04-10 13:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877065', 'tblTempUsageDetail_20' ) end [2025-04-10 13:04:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 13:04:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 13:04:26] Production.INFO: ==24339== Releasing lock... [2025-04-10 13:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 13:04:26] Production.INFO: 64 MB #Memory Used# [2025-04-10 13:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 10:05:06 [end_date_ymd] => 2025-04-10 13:05:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 10:05:06' and `end` < '2025-04-10 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-04-10 13:05:20] Production.INFO: count ==4796 [2025-04-10 13:05:22] Production.ERROR: pbx CDR StartTime 2025-04-10 10:05:06 - End Time 2025-04-10 13:05:06 [2025-04-10 13:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 13:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877070', 'tblTempUsageDetail_20' ) start [2025-04-10 13:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877070', 'tblTempUsageDetail_20' ) end [2025-04-10 13:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877070', 'tblTempVendorCDR_20' ) start [2025-04-10 13:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877070', 'tblTempVendorCDR_20' ) end [2025-04-10 13:05:22] Production.INFO: ProcessCDR(1,14877070,1,1,2) [2025-04-10 13:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877070', 'tblTempUsageDetail_20' ) start [2025-04-10 13:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877070', 'tblTempUsageDetail_20' ) end [2025-04-10 13:05:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 13:05:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 13:05:27] Production.INFO: ==24519== Releasing lock... [2025-04-10 13:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 13:05:27] Production.INFO: 64.25 MB #Memory Used# [2025-04-10 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 10:06:05 [end_date_ymd] => 2025-04-10 13:06:05 [RateCDR] => 1 ) [2025-04-10 13:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 10:06:05' and `end` < '2025-04-10 13:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 13:06:18] Production.INFO: count ==4774 [2025-04-10 13:06:20] Production.ERROR: pbx CDR StartTime 2025-04-10 10:06:05 - End Time 2025-04-10 13:06:05 [2025-04-10 13:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 13:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877075', 'tblTempUsageDetail_20' ) start [2025-04-10 13:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877075', 'tblTempUsageDetail_20' ) end [2025-04-10 13:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877075', 'tblTempVendorCDR_20' ) start [2025-04-10 13:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877075', 'tblTempVendorCDR_20' ) end [2025-04-10 13:06:20] Production.INFO: ProcessCDR(1,14877075,1,1,2) [2025-04-10 13:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877075', 'tblTempUsageDetail_20' ) start [2025-04-10 13:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877075', 'tblTempUsageDetail_20' ) end [2025-04-10 13:06:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 13:06:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 13:06:25] Production.INFO: ==24691== Releasing lock... [2025-04-10 13:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 13:06:25] Production.INFO: 63.75 MB #Memory Used# [2025-04-10 13:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 10:07:05 [end_date_ymd] => 2025-04-10 13:07:05 [RateCDR] => 1 ) [2025-04-10 13:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 10:07:05' and `end` < '2025-04-10 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-04-10 13:07:19] Production.INFO: count ==4758 [2025-04-10 13:07:21] Production.ERROR: pbx CDR StartTime 2025-04-10 10:07:05 - End Time 2025-04-10 13:07:05 [2025-04-10 13:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877080', 'tblTempUsageDetail_20' ) start [2025-04-10 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877080', 'tblTempUsageDetail_20' ) end [2025-04-10 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877080', 'tblTempVendorCDR_20' ) start [2025-04-10 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877080', 'tblTempVendorCDR_20' ) end [2025-04-10 13:07:21] Production.INFO: ProcessCDR(1,14877080,1,1,2) [2025-04-10 13:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877080', 'tblTempUsageDetail_20' ) start [2025-04-10 13:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877080', 'tblTempUsageDetail_20' ) end [2025-04-10 13:07:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 13:07:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 13:07:24] Production.INFO: ==24812== Releasing lock... [2025-04-10 13:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 13:07:24] Production.INFO: 63.5 MB #Memory Used# [2025-04-10 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 10:08:05 [end_date_ymd] => 2025-04-10 13:08:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 10:08:05' and `end` < '2025-04-10 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-04-10 13:08:19] Production.INFO: count ==4757 [2025-04-10 13:08:20] Production.ERROR: pbx CDR StartTime 2025-04-10 10:08:05 - End Time 2025-04-10 13:08:05 [2025-04-10 13:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 13:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877085', 'tblTempUsageDetail_20' ) start [2025-04-10 13:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877085', 'tblTempUsageDetail_20' ) end [2025-04-10 13:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877085', 'tblTempVendorCDR_20' ) start [2025-04-10 13:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877085', 'tblTempVendorCDR_20' ) end [2025-04-10 13:08:20] Production.INFO: ProcessCDR(1,14877085,1,1,2) [2025-04-10 13:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877085', 'tblTempUsageDetail_20' ) start [2025-04-10 13:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877085', 'tblTempUsageDetail_20' ) end [2025-04-10 13:08:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 13:08:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 13:08:25] Production.INFO: ==24925== Releasing lock... [2025-04-10 13:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 13:08:25] Production.INFO: 63.5 MB #Memory Used# [2025-04-10 13:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 10:09:05 [end_date_ymd] => 2025-04-10 13:09:05 [RateCDR] => 1 ) [2025-04-10 13:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 10:09:05' and `end` < '2025-04-10 13:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 13:09:19] Production.INFO: count ==4755 [2025-04-10 13:09:21] Production.ERROR: pbx CDR StartTime 2025-04-10 10:09:05 - End Time 2025-04-10 13:09:05 [2025-04-10 13:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877090', 'tblTempUsageDetail_20' ) start [2025-04-10 13:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877090', 'tblTempUsageDetail_20' ) end [2025-04-10 13:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877090', 'tblTempVendorCDR_20' ) start [2025-04-10 13:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877090', 'tblTempVendorCDR_20' ) end [2025-04-10 13:09:22] Production.INFO: ProcessCDR(1,14877090,1,1,2) [2025-04-10 13:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877090', 'tblTempUsageDetail_20' ) start [2025-04-10 13:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877090', 'tblTempUsageDetail_20' ) end [2025-04-10 13:09:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 13:09:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 13:09:27] Production.INFO: ==24996== Releasing lock... [2025-04-10 13:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 13:09:27] Production.INFO: 63.5 MB #Memory Used# [2025-04-10 13:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 10:10:06 [end_date_ymd] => 2025-04-10 13:10:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 10:10:06' and `end` < '2025-04-10 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-04-10 13:10:19] Production.INFO: count ==4764 [2025-04-10 13:10:21] Production.ERROR: pbx CDR StartTime 2025-04-10 10:10:06 - End Time 2025-04-10 13:10:06 [2025-04-10 13:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 13:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877096', 'tblTempUsageDetail_20' ) start [2025-04-10 13:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877096', 'tblTempUsageDetail_20' ) end [2025-04-10 13:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877096', 'tblTempVendorCDR_20' ) start [2025-04-10 13:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877096', 'tblTempVendorCDR_20' ) end [2025-04-10 13:10:21] Production.INFO: ProcessCDR(1,14877096,1,1,2) [2025-04-10 13:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877096', 'tblTempUsageDetail_20' ) start [2025-04-10 13:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877096', 'tblTempUsageDetail_20' ) end [2025-04-10 13:10:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 13:10:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 13:10:26] Production.INFO: ==25178== Releasing lock... [2025-04-10 13:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 13:10:26] Production.INFO: 63.75 MB #Memory Used# [2025-04-10 13:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 10:11:06 [end_date_ymd] => 2025-04-10 13:11:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 10:11:06' and `end` < '2025-04-10 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-04-10 13:11:19] Production.INFO: count ==4748 [2025-04-10 13:11:21] Production.ERROR: pbx CDR StartTime 2025-04-10 10:11:06 - End Time 2025-04-10 13:11:06 [2025-04-10 13:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877101', 'tblTempUsageDetail_20' ) start [2025-04-10 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877101', 'tblTempUsageDetail_20' ) end [2025-04-10 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877101', 'tblTempVendorCDR_20' ) start [2025-04-10 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877101', 'tblTempVendorCDR_20' ) end [2025-04-10 13:11:21] Production.INFO: ProcessCDR(1,14877101,1,1,2) [2025-04-10 13:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877101', 'tblTempUsageDetail_20' ) start [2025-04-10 13:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877101', 'tblTempUsageDetail_20' ) end [2025-04-10 13:11:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 13:11:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 13:11:27] Production.INFO: ==25261== Releasing lock... [2025-04-10 13:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 13:11:27] Production.INFO: 63.5 MB #Memory Used# [2025-04-10 13:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 10:12:05 [end_date_ymd] => 2025-04-10 13:12:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 10:12:05' and `end` < '2025-04-10 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-04-10 13:12:18] Production.INFO: count ==4733 [2025-04-10 13:12:20] Production.ERROR: pbx CDR StartTime 2025-04-10 10:12:05 - End Time 2025-04-10 13:12:05 [2025-04-10 13:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 13:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877106', 'tblTempUsageDetail_20' ) start [2025-04-10 13:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877106', 'tblTempUsageDetail_20' ) end [2025-04-10 13:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877106', 'tblTempVendorCDR_20' ) start [2025-04-10 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877106', 'tblTempVendorCDR_20' ) end [2025-04-10 13:12:21] Production.INFO: ProcessCDR(1,14877106,1,1,2) [2025-04-10 13:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877106', 'tblTempUsageDetail_20' ) start [2025-04-10 13:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877106', 'tblTempUsageDetail_20' ) end [2025-04-10 13:12:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 13:12:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 13:12:26] Production.INFO: ==25343== Releasing lock... [2025-04-10 13:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 13:12:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-10 13:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 10:13:05 [end_date_ymd] => 2025-04-10 13:13:05 [RateCDR] => 1 ) [2025-04-10 13: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-04-10 10:13:05' and `end` < '2025-04-10 13: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-04-10 13:13:19] Production.INFO: count ==4733 [2025-04-10 13:13:21] Production.ERROR: pbx CDR StartTime 2025-04-10 10:13:05 - End Time 2025-04-10 13:13:05 [2025-04-10 13:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877111', 'tblTempUsageDetail_20' ) start [2025-04-10 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877111', 'tblTempUsageDetail_20' ) end [2025-04-10 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877111', 'tblTempVendorCDR_20' ) start [2025-04-10 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877111', 'tblTempVendorCDR_20' ) end [2025-04-10 13:13:21] Production.INFO: ProcessCDR(1,14877111,1,1,2) [2025-04-10 13:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877111', 'tblTempUsageDetail_20' ) start [2025-04-10 13:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877111', 'tblTempUsageDetail_20' ) end [2025-04-10 13:13:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 13:13:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 13:13:26] Production.INFO: ==25424== Releasing lock... [2025-04-10 13:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 13:13:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-10 13:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 10:14:06 [end_date_ymd] => 2025-04-10 13:14:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 10:14:06' and `end` < '2025-04-10 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-04-10 13:14:19] Production.INFO: count ==4731 [2025-04-10 13:14:21] Production.ERROR: pbx CDR StartTime 2025-04-10 10:14:06 - End Time 2025-04-10 13:14:06 [2025-04-10 13:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877116', 'tblTempUsageDetail_20' ) start [2025-04-10 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877116', 'tblTempUsageDetail_20' ) end [2025-04-10 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877116', 'tblTempVendorCDR_20' ) start [2025-04-10 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877116', 'tblTempVendorCDR_20' ) end [2025-04-10 13:14:21] Production.INFO: ProcessCDR(1,14877116,1,1,2) [2025-04-10 13:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877116', 'tblTempUsageDetail_20' ) start [2025-04-10 13:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877116', 'tblTempUsageDetail_20' ) end [2025-04-10 13:14:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 13:14:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 13:14:27] Production.INFO: ==25497== Releasing lock... [2025-04-10 13:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 13:14:27] Production.INFO: 63.5 MB #Memory Used# [2025-04-10 13:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 10:15:05 [end_date_ymd] => 2025-04-10 13:15:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 10:15:05' and `end` < '2025-04-10 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-04-10 13:15:18] Production.INFO: count ==4721 [2025-04-10 13:15:20] Production.ERROR: pbx CDR StartTime 2025-04-10 10:15:05 - End Time 2025-04-10 13:15:05 [2025-04-10 13:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 13:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877121', 'tblTempUsageDetail_20' ) start [2025-04-10 13:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877121', 'tblTempUsageDetail_20' ) end [2025-04-10 13:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877121', 'tblTempVendorCDR_20' ) start [2025-04-10 13:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877121', 'tblTempVendorCDR_20' ) end [2025-04-10 13:15:20] Production.INFO: ProcessCDR(1,14877121,1,1,2) [2025-04-10 13:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877121', 'tblTempUsageDetail_20' ) start [2025-04-10 13:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877121', 'tblTempUsageDetail_20' ) end [2025-04-10 13:15:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 13:15:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 13:15:26] Production.INFO: ==25584== Releasing lock... [2025-04-10 13:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 13:15:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-10 13:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 10:16:05 [end_date_ymd] => 2025-04-10 13:16:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 10:16:05' and `end` < '2025-04-10 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-04-10 13:16:19] Production.INFO: count ==4720 [2025-04-10 13:16:21] Production.ERROR: pbx CDR StartTime 2025-04-10 10:16:05 - End Time 2025-04-10 13:16:05 [2025-04-10 13:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877126', 'tblTempUsageDetail_20' ) start [2025-04-10 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877126', 'tblTempUsageDetail_20' ) end [2025-04-10 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877126', 'tblTempVendorCDR_20' ) start [2025-04-10 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877126', 'tblTempVendorCDR_20' ) end [2025-04-10 13:16:21] Production.INFO: ProcessCDR(1,14877126,1,1,2) [2025-04-10 13:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877126', 'tblTempUsageDetail_20' ) start [2025-04-10 13:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877126', 'tblTempUsageDetail_20' ) end [2025-04-10 13:16:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 13:16:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 13:16:26] Production.INFO: ==25660== Releasing lock... [2025-04-10 13:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 13:16:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-10 13:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 10:17:05 [end_date_ymd] => 2025-04-10 13:17:05 [RateCDR] => 1 ) [2025-04-10 13:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 10:17:05' and `end` < '2025-04-10 13:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 13:17:19] Production.INFO: count ==4701 [2025-04-10 13:17:20] Production.ERROR: pbx CDR StartTime 2025-04-10 10:17:05 - End Time 2025-04-10 13:17:05 [2025-04-10 13:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 13:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877131', 'tblTempUsageDetail_20' ) start [2025-04-10 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877131', 'tblTempUsageDetail_20' ) end [2025-04-10 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877131', 'tblTempVendorCDR_20' ) start [2025-04-10 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877131', 'tblTempVendorCDR_20' ) end [2025-04-10 13:17:21] Production.INFO: ProcessCDR(1,14877131,1,1,2) [2025-04-10 13:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877131', 'tblTempUsageDetail_20' ) start [2025-04-10 13:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877131', 'tblTempUsageDetail_20' ) end [2025-04-10 13:17:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 13:17:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 13:17:24] Production.INFO: ==25736== Releasing lock... [2025-04-10 13:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 13:17:24] Production.INFO: 63.25 MB #Memory Used# [2025-04-10 13:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 10:18:05 [end_date_ymd] => 2025-04-10 13:18:05 [RateCDR] => 1 ) [2025-04-10 13: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-04-10 10:18:05' and `end` < '2025-04-10 13:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 13:18:19] Production.INFO: count ==4688 [2025-04-10 13:18:21] Production.ERROR: pbx CDR StartTime 2025-04-10 10:18:05 - End Time 2025-04-10 13:18:05 [2025-04-10 13:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877136', 'tblTempUsageDetail_20' ) start [2025-04-10 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877136', 'tblTempUsageDetail_20' ) end [2025-04-10 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877136', 'tblTempVendorCDR_20' ) start [2025-04-10 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877136', 'tblTempVendorCDR_20' ) end [2025-04-10 13:18:21] Production.INFO: ProcessCDR(1,14877136,1,1,2) [2025-04-10 13:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877136', 'tblTempUsageDetail_20' ) start [2025-04-10 13:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877136', 'tblTempUsageDetail_20' ) end [2025-04-10 13:18:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 13:18:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 13:18:26] Production.INFO: ==25827== Releasing lock... [2025-04-10 13:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 13:18:26] Production.INFO: 63 MB #Memory Used# [2025-04-10 13:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 10:19:06 [end_date_ymd] => 2025-04-10 13:19:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 10:19:06' and `end` < '2025-04-10 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-04-10 13:19:19] Production.INFO: count ==4678 [2025-04-10 13:19:21] Production.ERROR: pbx CDR StartTime 2025-04-10 10:19:06 - End Time 2025-04-10 13:19:06 [2025-04-10 13:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877141', 'tblTempUsageDetail_20' ) start [2025-04-10 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877141', 'tblTempUsageDetail_20' ) end [2025-04-10 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877141', 'tblTempVendorCDR_20' ) start [2025-04-10 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877141', 'tblTempVendorCDR_20' ) end [2025-04-10 13:19:21] Production.INFO: ProcessCDR(1,14877141,1,1,2) [2025-04-10 13:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877141', 'tblTempUsageDetail_20' ) start [2025-04-10 13:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877141', 'tblTempUsageDetail_20' ) end [2025-04-10 13:19:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 13:19:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 13:19:27] Production.INFO: ==25906== Releasing lock... [2025-04-10 13:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 13:19:27] Production.INFO: 63 MB #Memory Used# [2025-04-10 13:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 10:20:06 [end_date_ymd] => 2025-04-10 13:20:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 10:20:06' and `end` < '2025-04-10 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-04-10 13:20:20] Production.INFO: count ==4676 [2025-04-10 13:20:22] Production.ERROR: pbx CDR StartTime 2025-04-10 10:20:06 - End Time 2025-04-10 13:20:06 [2025-04-10 13:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877146', 'tblTempUsageDetail_20' ) start [2025-04-10 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877146', 'tblTempUsageDetail_20' ) end [2025-04-10 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877146', 'tblTempVendorCDR_20' ) start [2025-04-10 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877146', 'tblTempVendorCDR_20' ) end [2025-04-10 13:20:22] Production.INFO: ProcessCDR(1,14877146,1,1,2) [2025-04-10 13:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877146', 'tblTempUsageDetail_20' ) start [2025-04-10 13:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877146', 'tblTempUsageDetail_20' ) end [2025-04-10 13:20:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 13:20:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 13:20:27] Production.INFO: ==26026== Releasing lock... [2025-04-10 13:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 13:20:27] Production.INFO: 63 MB #Memory Used# [2025-04-10 13:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 10:21:05 [end_date_ymd] => 2025-04-10 13:21:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 10:21:05' and `end` < '2025-04-10 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-04-10 13:21:19] Production.INFO: count ==4598 [2025-04-10 13:21:20] Production.ERROR: pbx CDR StartTime 2025-04-10 10:21:05 - End Time 2025-04-10 13:21:05 [2025-04-10 13:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 13:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877152', 'tblTempUsageDetail_20' ) start [2025-04-10 13:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877152', 'tblTempUsageDetail_20' ) end [2025-04-10 13:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877152', 'tblTempVendorCDR_20' ) start [2025-04-10 13:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877152', 'tblTempVendorCDR_20' ) end [2025-04-10 13:21:20] Production.INFO: ProcessCDR(1,14877152,1,1,2) [2025-04-10 13:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877152', 'tblTempUsageDetail_20' ) start [2025-04-10 13:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877152', 'tblTempUsageDetail_20' ) end [2025-04-10 13:21:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 13:21:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 13:21:26] Production.INFO: ==26111== Releasing lock... [2025-04-10 13:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 13:21:26] Production.INFO: 62.5 MB #Memory Used# [2025-04-10 13:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 10:22:05 [end_date_ymd] => 2025-04-10 13:22:05 [RateCDR] => 1 ) [2025-04-10 13:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 10:22:05' and `end` < '2025-04-10 13:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 13:22:19] Production.INFO: count ==4589 [2025-04-10 13:22:21] Production.ERROR: pbx CDR StartTime 2025-04-10 10:22:05 - End Time 2025-04-10 13:22:05 [2025-04-10 13:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877157', 'tblTempUsageDetail_20' ) start [2025-04-10 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877157', 'tblTempUsageDetail_20' ) end [2025-04-10 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877157', 'tblTempVendorCDR_20' ) start [2025-04-10 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877157', 'tblTempVendorCDR_20' ) end [2025-04-10 13:22:21] Production.INFO: ProcessCDR(1,14877157,1,1,2) [2025-04-10 13:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877157', 'tblTempUsageDetail_20' ) start [2025-04-10 13:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877157', 'tblTempUsageDetail_20' ) end [2025-04-10 13:22:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 13:22:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 13:22:26] Production.INFO: ==26183== Releasing lock... [2025-04-10 13:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 13:22:26] Production.INFO: 62.25 MB #Memory Used# [2025-04-10 13:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 10:23:05 [end_date_ymd] => 2025-04-10 13:23:05 [RateCDR] => 1 ) [2025-04-10 13:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 10:23:05' and `end` < '2025-04-10 13:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 13:23:18] Production.INFO: count ==4581 [2025-04-10 13:23:20] Production.ERROR: pbx CDR StartTime 2025-04-10 10:23:05 - End Time 2025-04-10 13:23:05 [2025-04-10 13:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 13:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877162', 'tblTempUsageDetail_20' ) start [2025-04-10 13:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877162', 'tblTempUsageDetail_20' ) end [2025-04-10 13:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877162', 'tblTempVendorCDR_20' ) start [2025-04-10 13:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877162', 'tblTempVendorCDR_20' ) end [2025-04-10 13:23:20] Production.INFO: ProcessCDR(1,14877162,1,1,2) [2025-04-10 13:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877162', 'tblTempUsageDetail_20' ) start [2025-04-10 13:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877162', 'tblTempUsageDetail_20' ) end [2025-04-10 13:23:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 13:23:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 13:23:25] Production.INFO: ==26271== Releasing lock... [2025-04-10 13:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 13:23:25] Production.INFO: 62.25 MB #Memory Used# [2025-04-10 13:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 10:24:05 [end_date_ymd] => 2025-04-10 13:24:05 [RateCDR] => 1 ) [2025-04-10 13:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 10:24:05' and `end` < '2025-04-10 13:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 13:24:19] Production.INFO: count ==4593 [2025-04-10 13:24:21] Production.ERROR: pbx CDR StartTime 2025-04-10 10:24:05 - End Time 2025-04-10 13:24:05 [2025-04-10 13:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877167', 'tblTempUsageDetail_20' ) start [2025-04-10 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877167', 'tblTempUsageDetail_20' ) end [2025-04-10 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877167', 'tblTempVendorCDR_20' ) start [2025-04-10 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877167', 'tblTempVendorCDR_20' ) end [2025-04-10 13:24:21] Production.INFO: ProcessCDR(1,14877167,1,1,2) [2025-04-10 13:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877167', 'tblTempUsageDetail_20' ) start [2025-04-10 13:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877167', 'tblTempUsageDetail_20' ) end [2025-04-10 13:24:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 13:24:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 13:24:26] Production.INFO: ==26355== Releasing lock... [2025-04-10 13:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 13:24:26] Production.INFO: 62.25 MB #Memory Used# [2025-04-10 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 10:25:05 [end_date_ymd] => 2025-04-10 13:25:05 [RateCDR] => 1 ) [2025-04-10 13:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 10:25:05' and `end` < '2025-04-10 13:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 13:25:19] Production.INFO: count ==4583 [2025-04-10 13:25:20] Production.ERROR: pbx CDR StartTime 2025-04-10 10:25:05 - End Time 2025-04-10 13:25:05 [2025-04-10 13:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 13:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877172', 'tblTempUsageDetail_20' ) start [2025-04-10 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877172', 'tblTempUsageDetail_20' ) end [2025-04-10 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877172', 'tblTempVendorCDR_20' ) start [2025-04-10 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877172', 'tblTempVendorCDR_20' ) end [2025-04-10 13:25:21] Production.INFO: ProcessCDR(1,14877172,1,1,2) [2025-04-10 13:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877172', 'tblTempUsageDetail_20' ) start [2025-04-10 13:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877172', 'tblTempUsageDetail_20' ) end [2025-04-10 13:25:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 13:25:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 13:25:26] Production.INFO: ==26438== Releasing lock... [2025-04-10 13:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 13:25:26] Production.INFO: 62.25 MB #Memory Used# [2025-04-10 13:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 10:26:05 [end_date_ymd] => 2025-04-10 13:26:05 [RateCDR] => 1 ) [2025-04-10 13:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 10:26:05' and `end` < '2025-04-10 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-04-10 13:26:19] Production.INFO: count ==4586 [2025-04-10 13:26:21] Production.ERROR: pbx CDR StartTime 2025-04-10 10:26:05 - End Time 2025-04-10 13:26:05 [2025-04-10 13:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877177', 'tblTempUsageDetail_20' ) start [2025-04-10 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877177', 'tblTempUsageDetail_20' ) end [2025-04-10 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877177', 'tblTempVendorCDR_20' ) start [2025-04-10 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877177', 'tblTempVendorCDR_20' ) end [2025-04-10 13:26:21] Production.INFO: ProcessCDR(1,14877177,1,1,2) [2025-04-10 13:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877177', 'tblTempUsageDetail_20' ) start [2025-04-10 13:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877177', 'tblTempUsageDetail_20' ) end [2025-04-10 13:26:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 13:26:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 13:26:26] Production.INFO: ==26519== Releasing lock... [2025-04-10 13:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 13:26:26] Production.INFO: 62.25 MB #Memory Used# [2025-04-10 13:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 10:27:04 [end_date_ymd] => 2025-04-10 13:27:04 [RateCDR] => 1 ) [2025-04-10 13:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 10:27:04' and `end` < '2025-04-10 13:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 13:27:18] Production.INFO: count ==4591 [2025-04-10 13:27:20] Production.ERROR: pbx CDR StartTime 2025-04-10 10:27:04 - End Time 2025-04-10 13:27:04 [2025-04-10 13:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 13:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877182', 'tblTempUsageDetail_20' ) start [2025-04-10 13:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877182', 'tblTempUsageDetail_20' ) end [2025-04-10 13:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877182', 'tblTempVendorCDR_20' ) start [2025-04-10 13:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877182', 'tblTempVendorCDR_20' ) end [2025-04-10 13:27:20] Production.INFO: ProcessCDR(1,14877182,1,1,2) [2025-04-10 13:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877182', 'tblTempUsageDetail_20' ) start [2025-04-10 13:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877182', 'tblTempUsageDetail_20' ) end [2025-04-10 13:27:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 13:27:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 13:27:25] Production.INFO: ==26593== Releasing lock... [2025-04-10 13:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 13:27:25] Production.INFO: 62.25 MB #Memory Used# [2025-04-10 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 10:28:05 [end_date_ymd] => 2025-04-10 13:28:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 10:28:05' and `end` < '2025-04-10 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-04-10 13:28:19] Production.INFO: count ==4593 [2025-04-10 13:28:21] Production.ERROR: pbx CDR StartTime 2025-04-10 10:28:05 - End Time 2025-04-10 13:28:05 [2025-04-10 13:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877187', 'tblTempUsageDetail_20' ) start [2025-04-10 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877187', 'tblTempUsageDetail_20' ) end [2025-04-10 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877187', 'tblTempVendorCDR_20' ) start [2025-04-10 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877187', 'tblTempVendorCDR_20' ) end [2025-04-10 13:28:21] Production.INFO: ProcessCDR(1,14877187,1,1,2) [2025-04-10 13:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877187', 'tblTempUsageDetail_20' ) start [2025-04-10 13:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877187', 'tblTempUsageDetail_20' ) end [2025-04-10 13:28:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 13:28:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 13:28:27] Production.INFO: ==26674== Releasing lock... [2025-04-10 13:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 13:28:27] Production.INFO: 62.25 MB #Memory Used# [2025-04-10 13:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 10:29:04 [end_date_ymd] => 2025-04-10 13:29:04 [RateCDR] => 1 ) [2025-04-10 13:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 10:29:04' and `end` < '2025-04-10 13:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 13:29:18] Production.INFO: count ==4585 [2025-04-10 13:29:20] Production.ERROR: pbx CDR StartTime 2025-04-10 10:29:04 - End Time 2025-04-10 13:29:04 [2025-04-10 13:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 13:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877192', 'tblTempUsageDetail_20' ) start [2025-04-10 13:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877192', 'tblTempUsageDetail_20' ) end [2025-04-10 13:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877192', 'tblTempVendorCDR_20' ) start [2025-04-10 13:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877192', 'tblTempVendorCDR_20' ) end [2025-04-10 13:29:20] Production.INFO: ProcessCDR(1,14877192,1,1,2) [2025-04-10 13:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877192', 'tblTempUsageDetail_20' ) start [2025-04-10 13:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877192', 'tblTempUsageDetail_20' ) end [2025-04-10 13:29:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 13:29:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 13:29:25] Production.INFO: ==26749== Releasing lock... [2025-04-10 13:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 13:29:25] Production.INFO: 62.25 MB #Memory Used# [2025-04-10 13:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 10:30:06 [end_date_ymd] => 2025-04-10 13:30:06 [RateCDR] => 1 ) [2025-04-10 13:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 10:30:06' and `end` < '2025-04-10 13:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 13:30:20] Production.INFO: count ==4553 [2025-04-10 13:30:22] Production.ERROR: pbx CDR StartTime 2025-04-10 10:30:06 - End Time 2025-04-10 13:30:06 [2025-04-10 13:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877198', 'tblTempUsageDetail_20' ) start [2025-04-10 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877198', 'tblTempUsageDetail_20' ) end [2025-04-10 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877198', 'tblTempVendorCDR_20' ) start [2025-04-10 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877198', 'tblTempVendorCDR_20' ) end [2025-04-10 13:30:22] Production.INFO: ProcessCDR(1,14877198,1,1,2) [2025-04-10 13:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877198', 'tblTempUsageDetail_20' ) start [2025-04-10 13:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877198', 'tblTempUsageDetail_20' ) end [2025-04-10 13:30:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 13:30:28] Production.ERROR: pbx prc_insertCDR end [2025-04-10 13:30:28] Production.INFO: ==26834== Releasing lock... [2025-04-10 13:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 13:30:28] Production.INFO: 62 MB #Memory Used# [2025-04-10 13:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 10:31:05 [end_date_ymd] => 2025-04-10 13:31:05 [RateCDR] => 1 ) [2025-04-10 13:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 10:31:05' and `end` < '2025-04-10 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-04-10 13:31:19] Production.INFO: count ==4486 [2025-04-10 13:31:21] Production.ERROR: pbx CDR StartTime 2025-04-10 10:31:05 - End Time 2025-04-10 13:31:05 [2025-04-10 13:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877203', 'tblTempUsageDetail_20' ) start [2025-04-10 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877203', 'tblTempUsageDetail_20' ) end [2025-04-10 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877203', 'tblTempVendorCDR_20' ) start [2025-04-10 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877203', 'tblTempVendorCDR_20' ) end [2025-04-10 13:31:21] Production.INFO: ProcessCDR(1,14877203,1,1,2) [2025-04-10 13:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877203', 'tblTempUsageDetail_20' ) start [2025-04-10 13:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877203', 'tblTempUsageDetail_20' ) end [2025-04-10 13:31:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 13:31:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 13:31:26] Production.INFO: ==26916== Releasing lock... [2025-04-10 13:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 13:31:26] Production.INFO: 61.5 MB #Memory Used# [2025-04-10 13:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 10:32:05 [end_date_ymd] => 2025-04-10 13:32:05 [RateCDR] => 1 ) [2025-04-10 13:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 10:32:05' and `end` < '2025-04-10 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-04-10 13:32:19] Production.INFO: count ==4470 [2025-04-10 13:32:21] Production.ERROR: pbx CDR StartTime 2025-04-10 10:32:05 - End Time 2025-04-10 13:32:05 [2025-04-10 13:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877208', 'tblTempUsageDetail_20' ) start [2025-04-10 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877208', 'tblTempUsageDetail_20' ) end [2025-04-10 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877208', 'tblTempVendorCDR_20' ) start [2025-04-10 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877208', 'tblTempVendorCDR_20' ) end [2025-04-10 13:32:21] Production.INFO: ProcessCDR(1,14877208,1,1,2) [2025-04-10 13:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877208', 'tblTempUsageDetail_20' ) start [2025-04-10 13:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877208', 'tblTempUsageDetail_20' ) end [2025-04-10 13:32:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 13:32:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 13:32:27] Production.INFO: ==26998== Releasing lock... [2025-04-10 13:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 13:32:27] Production.INFO: 61.5 MB #Memory Used# [2025-04-10 13:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 10:33:06 [end_date_ymd] => 2025-04-10 13:33:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 10:33:06' and `end` < '2025-04-10 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-04-10 13:33:19] Production.INFO: count ==4476 [2025-04-10 13:33:21] Production.ERROR: pbx CDR StartTime 2025-04-10 10:33:06 - End Time 2025-04-10 13:33:06 [2025-04-10 13:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877213', 'tblTempUsageDetail_20' ) start [2025-04-10 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877213', 'tblTempUsageDetail_20' ) end [2025-04-10 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877213', 'tblTempVendorCDR_20' ) start [2025-04-10 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877213', 'tblTempVendorCDR_20' ) end [2025-04-10 13:33:21] Production.INFO: ProcessCDR(1,14877213,1,1,2) [2025-04-10 13:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877213', 'tblTempUsageDetail_20' ) start [2025-04-10 13:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877213', 'tblTempUsageDetail_20' ) end [2025-04-10 13:33:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 13:33:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 13:33:25] Production.INFO: ==27078== Releasing lock... [2025-04-10 13:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 13:33:25] Production.INFO: 61.5 MB #Memory Used# [2025-04-10 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 10:34:05 [end_date_ymd] => 2025-04-10 13:34:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 10:34:05' and `end` < '2025-04-10 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-04-10 13:34:19] Production.INFO: count ==4460 [2025-04-10 13:34:20] Production.ERROR: pbx CDR StartTime 2025-04-10 10:34:05 - End Time 2025-04-10 13:34:05 [2025-04-10 13:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 13:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877218', 'tblTempUsageDetail_20' ) start [2025-04-10 13:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877218', 'tblTempUsageDetail_20' ) end [2025-04-10 13:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877218', 'tblTempVendorCDR_20' ) start [2025-04-10 13:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877218', 'tblTempVendorCDR_20' ) end [2025-04-10 13:34:20] Production.INFO: ProcessCDR(1,14877218,1,1,2) [2025-04-10 13:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877218', 'tblTempUsageDetail_20' ) start [2025-04-10 13:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877218', 'tblTempUsageDetail_20' ) end [2025-04-10 13:34:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 13:34:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 13:34:24] Production.INFO: ==27157== Releasing lock... [2025-04-10 13:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 13:34:24] Production.INFO: 61.25 MB #Memory Used# [2025-04-10 13:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 10:35:05 [end_date_ymd] => 2025-04-10 13:35:05 [RateCDR] => 1 ) [2025-04-10 13:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 10:35:05' and `end` < '2025-04-10 13:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 13:35:19] Production.INFO: count ==4451 [2025-04-10 13:35:21] Production.ERROR: pbx CDR StartTime 2025-04-10 10:35:05 - End Time 2025-04-10 13:35:05 [2025-04-10 13:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 13:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877223', 'tblTempUsageDetail_20' ) start [2025-04-10 13:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877223', 'tblTempUsageDetail_20' ) end [2025-04-10 13:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877223', 'tblTempVendorCDR_20' ) start [2025-04-10 13:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877223', 'tblTempVendorCDR_20' ) end [2025-04-10 13:35:21] Production.INFO: ProcessCDR(1,14877223,1,1,2) [2025-04-10 13:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877223', 'tblTempUsageDetail_20' ) start [2025-04-10 13:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877223', 'tblTempUsageDetail_20' ) end [2025-04-10 13:35:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 13:35:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 13:35:26] Production.INFO: ==27275== Releasing lock... [2025-04-10 13:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 13:35:26] Production.INFO: 61.25 MB #Memory Used# [2025-04-10 13:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 10:36:05 [end_date_ymd] => 2025-04-10 13:36:05 [RateCDR] => 1 ) [2025-04-10 13:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 10:36:05' and `end` < '2025-04-10 13:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 13:36:19] Production.INFO: count ==4452 [2025-04-10 13:36:21] Production.ERROR: pbx CDR StartTime 2025-04-10 10:36:05 - End Time 2025-04-10 13:36:05 [2025-04-10 13:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877228', 'tblTempUsageDetail_20' ) start [2025-04-10 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877228', 'tblTempUsageDetail_20' ) end [2025-04-10 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877228', 'tblTempVendorCDR_20' ) start [2025-04-10 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877228', 'tblTempVendorCDR_20' ) end [2025-04-10 13:36:21] Production.INFO: ProcessCDR(1,14877228,1,1,2) [2025-04-10 13:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877228', 'tblTempUsageDetail_20' ) start [2025-04-10 13:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877228', 'tblTempUsageDetail_20' ) end [2025-04-10 13:36:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 13:36:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 13:36:26] Production.INFO: ==27349== Releasing lock... [2025-04-10 13:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 13:36:26] Production.INFO: 61.25 MB #Memory Used# [2025-04-10 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 10:37:05 [end_date_ymd] => 2025-04-10 13:37:05 [RateCDR] => 1 ) [2025-04-10 13:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 10:37:05' and `end` < '2025-04-10 13:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 13:37:19] Production.INFO: count ==4442 [2025-04-10 13:37:21] Production.ERROR: pbx CDR StartTime 2025-04-10 10:37:05 - End Time 2025-04-10 13:37:05 [2025-04-10 13:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877233', 'tblTempUsageDetail_20' ) start [2025-04-10 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877233', 'tblTempUsageDetail_20' ) end [2025-04-10 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877233', 'tblTempVendorCDR_20' ) start [2025-04-10 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877233', 'tblTempVendorCDR_20' ) end [2025-04-10 13:37:21] Production.INFO: ProcessCDR(1,14877233,1,1,2) [2025-04-10 13:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877233', 'tblTempUsageDetail_20' ) start [2025-04-10 13:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877233', 'tblTempUsageDetail_20' ) end [2025-04-10 13:37:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 13:37:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 13:37:26] Production.INFO: ==27432== Releasing lock... [2025-04-10 13:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 13:37:26] Production.INFO: 61.25 MB #Memory Used# [2025-04-10 13:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 10:38:05 [end_date_ymd] => 2025-04-10 13:38:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 10:38:05' and `end` < '2025-04-10 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-04-10 13:38:19] Production.INFO: count ==4437 [2025-04-10 13:38:21] Production.ERROR: pbx CDR StartTime 2025-04-10 10:38:05 - End Time 2025-04-10 13:38:05 [2025-04-10 13:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877238', 'tblTempUsageDetail_20' ) start [2025-04-10 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877238', 'tblTempUsageDetail_20' ) end [2025-04-10 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877238', 'tblTempVendorCDR_20' ) start [2025-04-10 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877238', 'tblTempVendorCDR_20' ) end [2025-04-10 13:38:21] Production.INFO: ProcessCDR(1,14877238,1,1,2) [2025-04-10 13:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877238', 'tblTempUsageDetail_20' ) start [2025-04-10 13:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877238', 'tblTempUsageDetail_20' ) end [2025-04-10 13:38:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 13:38:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 13:38:26] Production.INFO: ==27517== Releasing lock... [2025-04-10 13:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 13:38:26] Production.INFO: 61.25 MB #Memory Used# [2025-04-10 13:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 10:39:05 [end_date_ymd] => 2025-04-10 13:39:05 [RateCDR] => 1 ) [2025-04-10 13:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 10:39:05' and `end` < '2025-04-10 13:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 13:39:19] Production.INFO: count ==4433 [2025-04-10 13:39:21] Production.ERROR: pbx CDR StartTime 2025-04-10 10:39:05 - End Time 2025-04-10 13:39:05 [2025-04-10 13:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877243', 'tblTempUsageDetail_20' ) start [2025-04-10 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877243', 'tblTempUsageDetail_20' ) end [2025-04-10 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877243', 'tblTempVendorCDR_20' ) start [2025-04-10 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877243', 'tblTempVendorCDR_20' ) end [2025-04-10 13:39:21] Production.INFO: ProcessCDR(1,14877243,1,1,2) [2025-04-10 13:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877243', 'tblTempUsageDetail_20' ) start [2025-04-10 13:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877243', 'tblTempUsageDetail_20' ) end [2025-04-10 13:39:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 13:39:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 13:39:26] Production.INFO: ==27599== Releasing lock... [2025-04-10 13:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 13:39:26] Production.INFO: 61.25 MB #Memory Used# [2025-04-10 13:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 10:40:05 [end_date_ymd] => 2025-04-10 13:40:05 [RateCDR] => 1 ) [2025-04-10 13:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 10:40:05' and `end` < '2025-04-10 13:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 13:40:19] Production.INFO: count ==4455 [2025-04-10 13:40:21] Production.ERROR: pbx CDR StartTime 2025-04-10 10:40:05 - End Time 2025-04-10 13:40:05 [2025-04-10 13:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 13:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877249', 'tblTempUsageDetail_20' ) start [2025-04-10 13:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877249', 'tblTempUsageDetail_20' ) end [2025-04-10 13:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877249', 'tblTempVendorCDR_20' ) start [2025-04-10 13:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877249', 'tblTempVendorCDR_20' ) end [2025-04-10 13:40:21] Production.INFO: ProcessCDR(1,14877249,1,1,2) [2025-04-10 13:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877249', 'tblTempUsageDetail_20' ) start [2025-04-10 13:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877249', 'tblTempUsageDetail_20' ) end [2025-04-10 13:40:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 13:40:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 13:40:27] Production.INFO: ==27675== Releasing lock... [2025-04-10 13:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 13:40:27] Production.INFO: 61.25 MB #Memory Used# [2025-04-10 13:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 10:41:05 [end_date_ymd] => 2025-04-10 13:41:05 [RateCDR] => 1 ) [2025-04-10 13:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 10:41:05' and `end` < '2025-04-10 13:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 13:41:19] Production.INFO: count ==4402 [2025-04-10 13:41:20] Production.ERROR: pbx CDR StartTime 2025-04-10 10:41:05 - End Time 2025-04-10 13:41:05 [2025-04-10 13:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 13:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877254', 'tblTempUsageDetail_20' ) start [2025-04-10 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877254', 'tblTempUsageDetail_20' ) end [2025-04-10 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877254', 'tblTempVendorCDR_20' ) start [2025-04-10 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877254', 'tblTempVendorCDR_20' ) end [2025-04-10 13:41:21] Production.INFO: ProcessCDR(1,14877254,1,1,2) [2025-04-10 13:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877254', 'tblTempUsageDetail_20' ) start [2025-04-10 13:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877254', 'tblTempUsageDetail_20' ) end [2025-04-10 13:41:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 13:41:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 13:41:25] Production.INFO: ==27749== Releasing lock... [2025-04-10 13:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 13:41:25] Production.INFO: 61 MB #Memory Used# [2025-04-10 13:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 10:42:05 [end_date_ymd] => 2025-04-10 13:42:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 10:42:05' and `end` < '2025-04-10 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-04-10 13:42:18] Production.INFO: count ==4396 [2025-04-10 13:42:20] Production.ERROR: pbx CDR StartTime 2025-04-10 10:42:05 - End Time 2025-04-10 13:42:05 [2025-04-10 13:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 13:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877259', 'tblTempUsageDetail_20' ) start [2025-04-10 13:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877259', 'tblTempUsageDetail_20' ) end [2025-04-10 13:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877259', 'tblTempVendorCDR_20' ) start [2025-04-10 13:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877259', 'tblTempVendorCDR_20' ) end [2025-04-10 13:42:20] Production.INFO: ProcessCDR(1,14877259,1,1,2) [2025-04-10 13:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877259', 'tblTempUsageDetail_20' ) start [2025-04-10 13:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877259', 'tblTempUsageDetail_20' ) end [2025-04-10 13:42:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 13:42:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 13:42:25] Production.INFO: ==27820== Releasing lock... [2025-04-10 13:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 13:42:25] Production.INFO: 61 MB #Memory Used# [2025-04-10 13:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 10:43:05 [end_date_ymd] => 2025-04-10 13:43:05 [RateCDR] => 1 ) [2025-04-10 13:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 10:43:05' and `end` < '2025-04-10 13:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 13:43:19] Production.INFO: count ==4387 [2025-04-10 13:43:21] Production.ERROR: pbx CDR StartTime 2025-04-10 10:43:05 - End Time 2025-04-10 13:43:05 [2025-04-10 13:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877264', 'tblTempUsageDetail_20' ) start [2025-04-10 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877264', 'tblTempUsageDetail_20' ) end [2025-04-10 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877264', 'tblTempVendorCDR_20' ) start [2025-04-10 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877264', 'tblTempVendorCDR_20' ) end [2025-04-10 13:43:21] Production.INFO: ProcessCDR(1,14877264,1,1,2) [2025-04-10 13:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877264', 'tblTempUsageDetail_20' ) start [2025-04-10 13:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877264', 'tblTempUsageDetail_20' ) end [2025-04-10 13:43:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 13:43:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 13:43:26] Production.INFO: ==27894== Releasing lock... [2025-04-10 13:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 13:43:26] Production.INFO: 60.75 MB #Memory Used# [2025-04-10 13:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 10:44:05 [end_date_ymd] => 2025-04-10 13:44:05 [RateCDR] => 1 ) [2025-04-10 13:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 10:44:05' and `end` < '2025-04-10 13:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 13:44:19] Production.INFO: count ==4365 [2025-04-10 13:44:20] Production.ERROR: pbx CDR StartTime 2025-04-10 10:44:05 - End Time 2025-04-10 13:44:05 [2025-04-10 13:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 13:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877269', 'tblTempUsageDetail_20' ) start [2025-04-10 13:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877269', 'tblTempUsageDetail_20' ) end [2025-04-10 13:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877269', 'tblTempVendorCDR_20' ) start [2025-04-10 13:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877269', 'tblTempVendorCDR_20' ) end [2025-04-10 13:44:20] Production.INFO: ProcessCDR(1,14877269,1,1,2) [2025-04-10 13:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877269', 'tblTempUsageDetail_20' ) start [2025-04-10 13:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877269', 'tblTempUsageDetail_20' ) end [2025-04-10 13:44:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 13:44:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 13:44:26] Production.INFO: ==27968== Releasing lock... [2025-04-10 13:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 13:44:26] Production.INFO: 60.75 MB #Memory Used# [2025-04-10 13:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 10:45:05 [end_date_ymd] => 2025-04-10 13:45:05 [RateCDR] => 1 ) [2025-04-10 13:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 10:45:05' and `end` < '2025-04-10 13:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 13:45:19] Production.INFO: count ==4366 [2025-04-10 13:45:21] Production.ERROR: pbx CDR StartTime 2025-04-10 10:45:05 - End Time 2025-04-10 13:45:05 [2025-04-10 13:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877274', 'tblTempUsageDetail_20' ) start [2025-04-10 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877274', 'tblTempUsageDetail_20' ) end [2025-04-10 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877274', 'tblTempVendorCDR_20' ) start [2025-04-10 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877274', 'tblTempVendorCDR_20' ) end [2025-04-10 13:45:21] Production.INFO: ProcessCDR(1,14877274,1,1,2) [2025-04-10 13:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877274', 'tblTempUsageDetail_20' ) start [2025-04-10 13:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877274', 'tblTempUsageDetail_20' ) end [2025-04-10 13:45:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 13:45:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 13:45:26] Production.INFO: ==28041== Releasing lock... [2025-04-10 13:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 13:45:26] Production.INFO: 60.75 MB #Memory Used# [2025-04-10 13:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 10:46:04 [end_date_ymd] => 2025-04-10 13:46:04 [RateCDR] => 1 ) [2025-04-10 13: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-04-10 10:46:04' and `end` < '2025-04-10 13: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-04-10 13:46:18] Production.INFO: count ==4353 [2025-04-10 13:46:20] Production.ERROR: pbx CDR StartTime 2025-04-10 10:46:04 - End Time 2025-04-10 13:46:04 [2025-04-10 13:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 13:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877279', 'tblTempUsageDetail_20' ) start [2025-04-10 13:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877279', 'tblTempUsageDetail_20' ) end [2025-04-10 13:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877279', 'tblTempVendorCDR_20' ) start [2025-04-10 13:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877279', 'tblTempVendorCDR_20' ) end [2025-04-10 13:46:20] Production.INFO: ProcessCDR(1,14877279,1,1,2) [2025-04-10 13:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877279', 'tblTempUsageDetail_20' ) start [2025-04-10 13:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877279', 'tblTempUsageDetail_20' ) end [2025-04-10 13:46:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 13:46:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 13:46:25] Production.INFO: ==28118== Releasing lock... [2025-04-10 13:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 13:46:25] Production.INFO: 60.5 MB #Memory Used# [2025-04-10 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 10:47:05 [end_date_ymd] => 2025-04-10 13:47:05 [RateCDR] => 1 ) [2025-04-10 13:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 10:47:05' and `end` < '2025-04-10 13:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 13:47:19] Production.INFO: count ==4348 [2025-04-10 13:47:20] Production.ERROR: pbx CDR StartTime 2025-04-10 10:47:05 - End Time 2025-04-10 13:47:05 [2025-04-10 13:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 13:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877284', 'tblTempUsageDetail_20' ) start [2025-04-10 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877284', 'tblTempUsageDetail_20' ) end [2025-04-10 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877284', 'tblTempVendorCDR_20' ) start [2025-04-10 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877284', 'tblTempVendorCDR_20' ) end [2025-04-10 13:47:21] Production.INFO: ProcessCDR(1,14877284,1,1,2) [2025-04-10 13:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877284', 'tblTempUsageDetail_20' ) start [2025-04-10 13:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877284', 'tblTempUsageDetail_20' ) end [2025-04-10 13:47:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 13:47:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 13:47:24] Production.INFO: ==28189== Releasing lock... [2025-04-10 13:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 13:47:24] Production.INFO: 60.5 MB #Memory Used# [2025-04-10 13:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 10:48:05 [end_date_ymd] => 2025-04-10 13:48:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 10:48:05' and `end` < '2025-04-10 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-04-10 13:48:19] Production.INFO: count ==4347 [2025-04-10 13:48:21] Production.ERROR: pbx CDR StartTime 2025-04-10 10:48:05 - End Time 2025-04-10 13:48:05 [2025-04-10 13:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877289', 'tblTempUsageDetail_20' ) start [2025-04-10 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877289', 'tblTempUsageDetail_20' ) end [2025-04-10 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877289', 'tblTempVendorCDR_20' ) start [2025-04-10 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877289', 'tblTempVendorCDR_20' ) end [2025-04-10 13:48:21] Production.INFO: ProcessCDR(1,14877289,1,1,2) [2025-04-10 13:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877289', 'tblTempUsageDetail_20' ) start [2025-04-10 13:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877289', 'tblTempUsageDetail_20' ) end [2025-04-10 13:48:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 13:48:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 13:48:26] Production.INFO: ==28262== Releasing lock... [2025-04-10 13:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 13:48:26] Production.INFO: 60.5 MB #Memory Used# [2025-04-10 13:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 10:49:05 [end_date_ymd] => 2025-04-10 13:49:05 [RateCDR] => 1 ) [2025-04-10 13:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 10:49:05' and `end` < '2025-04-10 13:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 13:49:19] Production.INFO: count ==4366 [2025-04-10 13:49:20] Production.ERROR: pbx CDR StartTime 2025-04-10 10:49:05 - End Time 2025-04-10 13:49:05 [2025-04-10 13:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 13:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877294', 'tblTempUsageDetail_20' ) start [2025-04-10 13:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877294', 'tblTempUsageDetail_20' ) end [2025-04-10 13:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877294', 'tblTempVendorCDR_20' ) start [2025-04-10 13:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877294', 'tblTempVendorCDR_20' ) end [2025-04-10 13:49:20] Production.INFO: ProcessCDR(1,14877294,1,1,2) [2025-04-10 13:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877294', 'tblTempUsageDetail_20' ) start [2025-04-10 13:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877294', 'tblTempUsageDetail_20' ) end [2025-04-10 13:49:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 13:49:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 13:49:26] Production.INFO: ==28338== Releasing lock... [2025-04-10 13:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 13:49:26] Production.INFO: 60.75 MB #Memory Used# [2025-04-10 13:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 10:50:06 [end_date_ymd] => 2025-04-10 13:50:06 [RateCDR] => 1 ) [2025-04-10 13:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 10:50:06' and `end` < '2025-04-10 13:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 13:50:20] Production.INFO: count ==4345 [2025-04-10 13:50:22] Production.ERROR: pbx CDR StartTime 2025-04-10 10:50:06 - End Time 2025-04-10 13:50:06 [2025-04-10 13:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877300', 'tblTempUsageDetail_20' ) start [2025-04-10 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877300', 'tblTempUsageDetail_20' ) end [2025-04-10 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877300', 'tblTempVendorCDR_20' ) start [2025-04-10 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877300', 'tblTempVendorCDR_20' ) end [2025-04-10 13:50:22] Production.INFO: ProcessCDR(1,14877300,1,1,2) [2025-04-10 13:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877300', 'tblTempUsageDetail_20' ) start [2025-04-10 13:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877300', 'tblTempUsageDetail_20' ) end [2025-04-10 13:50:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 13:50:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 13:50:27] Production.INFO: ==28411== Releasing lock... [2025-04-10 13:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 13:50:27] Production.INFO: 60.5 MB #Memory Used# [2025-04-10 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 10:51:05 [end_date_ymd] => 2025-04-10 13:51:05 [RateCDR] => 1 ) [2025-04-10 13:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 10:51:05' and `end` < '2025-04-10 13:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 13:51:18] Production.INFO: count ==4330 [2025-04-10 13:51:20] Production.ERROR: pbx CDR StartTime 2025-04-10 10:51:05 - End Time 2025-04-10 13:51:05 [2025-04-10 13:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 13:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877305', 'tblTempUsageDetail_20' ) start [2025-04-10 13:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877305', 'tblTempUsageDetail_20' ) end [2025-04-10 13:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877305', 'tblTempVendorCDR_20' ) start [2025-04-10 13:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877305', 'tblTempVendorCDR_20' ) end [2025-04-10 13:51:20] Production.INFO: ProcessCDR(1,14877305,1,1,2) [2025-04-10 13:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877305', 'tblTempUsageDetail_20' ) start [2025-04-10 13:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877305', 'tblTempUsageDetail_20' ) end [2025-04-10 13:51:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 13:51:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 13:51:26] Production.INFO: ==28530== Releasing lock... [2025-04-10 13:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 13:51:26] Production.INFO: 60.5 MB #Memory Used# [2025-04-10 13:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 10:52:06 [end_date_ymd] => 2025-04-10 13:52:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 10:52:06' and `end` < '2025-04-10 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-04-10 13:52:19] Production.INFO: count ==4331 [2025-04-10 13:52:21] Production.ERROR: pbx CDR StartTime 2025-04-10 10:52:06 - End Time 2025-04-10 13:52:06 [2025-04-10 13:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877310', 'tblTempUsageDetail_20' ) start [2025-04-10 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877310', 'tblTempUsageDetail_20' ) end [2025-04-10 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877310', 'tblTempVendorCDR_20' ) start [2025-04-10 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877310', 'tblTempVendorCDR_20' ) end [2025-04-10 13:52:21] Production.INFO: ProcessCDR(1,14877310,1,1,2) [2025-04-10 13:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877310', 'tblTempUsageDetail_20' ) start [2025-04-10 13:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877310', 'tblTempUsageDetail_20' ) end [2025-04-10 13:52:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 13:52:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 13:52:26] Production.INFO: ==28600== Releasing lock... [2025-04-10 13:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 13:52:26] Production.INFO: 60.5 MB #Memory Used# [2025-04-10 13:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 10:53:05 [end_date_ymd] => 2025-04-10 13:53:05 [RateCDR] => 1 ) [2025-04-10 13:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 10:53:05' and `end` < '2025-04-10 13:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 13:53:18] Production.INFO: count ==4342 [2025-04-10 13:53:20] Production.ERROR: pbx CDR StartTime 2025-04-10 10:53:05 - End Time 2025-04-10 13:53:05 [2025-04-10 13:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 13:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877315', 'tblTempUsageDetail_20' ) start [2025-04-10 13:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877315', 'tblTempUsageDetail_20' ) end [2025-04-10 13:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877315', 'tblTempVendorCDR_20' ) start [2025-04-10 13:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877315', 'tblTempVendorCDR_20' ) end [2025-04-10 13:53:20] Production.INFO: ProcessCDR(1,14877315,1,1,2) [2025-04-10 13:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877315', 'tblTempUsageDetail_20' ) start [2025-04-10 13:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877315', 'tblTempUsageDetail_20' ) end [2025-04-10 13:53:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 13:53:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 13:53:26] Production.INFO: ==28675== Releasing lock... [2025-04-10 13:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 13:53:26] Production.INFO: 60.5 MB #Memory Used# [2025-04-10 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 10:54:05 [end_date_ymd] => 2025-04-10 13:54:05 [RateCDR] => 1 ) [2025-04-10 13:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 10:54:05' and `end` < '2025-04-10 13:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 13:54:19] Production.INFO: count ==4339 [2025-04-10 13:54:21] Production.ERROR: pbx CDR StartTime 2025-04-10 10:54:05 - End Time 2025-04-10 13:54:05 [2025-04-10 13:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877320', 'tblTempUsageDetail_20' ) start [2025-04-10 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877320', 'tblTempUsageDetail_20' ) end [2025-04-10 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877320', 'tblTempVendorCDR_20' ) start [2025-04-10 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877320', 'tblTempVendorCDR_20' ) end [2025-04-10 13:54:21] Production.INFO: ProcessCDR(1,14877320,1,1,2) [2025-04-10 13:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877320', 'tblTempUsageDetail_20' ) start [2025-04-10 13:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877320', 'tblTempUsageDetail_20' ) end [2025-04-10 13:54:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 13:54:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 13:54:26] Production.INFO: ==28754== Releasing lock... [2025-04-10 13:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 13:54:26] Production.INFO: 60.5 MB #Memory Used# [2025-04-10 13:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 10:55:04 [end_date_ymd] => 2025-04-10 13:55:04 [RateCDR] => 1 ) [2025-04-10 13:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 10:55:04' and `end` < '2025-04-10 13:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 13:55:18] Production.INFO: count ==4343 [2025-04-10 13:55:20] Production.ERROR: pbx CDR StartTime 2025-04-10 10:55:04 - End Time 2025-04-10 13:55:04 [2025-04-10 13:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 13:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877325', 'tblTempUsageDetail_20' ) start [2025-04-10 13:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877325', 'tblTempUsageDetail_20' ) end [2025-04-10 13:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877325', 'tblTempVendorCDR_20' ) start [2025-04-10 13:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877325', 'tblTempVendorCDR_20' ) end [2025-04-10 13:55:20] Production.INFO: ProcessCDR(1,14877325,1,1,2) [2025-04-10 13:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877325', 'tblTempUsageDetail_20' ) start [2025-04-10 13:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877325', 'tblTempUsageDetail_20' ) end [2025-04-10 13:55:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 13:55:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 13:55:25] Production.INFO: ==28824== Releasing lock... [2025-04-10 13:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 13:55:25] Production.INFO: 60.5 MB #Memory Used# [2025-04-10 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 10:56:05 [end_date_ymd] => 2025-04-10 13:56:05 [RateCDR] => 1 ) [2025-04-10 13:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 10:56:05' and `end` < '2025-04-10 13:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 13:56:19] Production.INFO: count ==4357 [2025-04-10 13:56:21] Production.ERROR: pbx CDR StartTime 2025-04-10 10:56:05 - End Time 2025-04-10 13:56:05 [2025-04-10 13:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877330', 'tblTempUsageDetail_20' ) start [2025-04-10 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877330', 'tblTempUsageDetail_20' ) end [2025-04-10 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877330', 'tblTempVendorCDR_20' ) start [2025-04-10 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877330', 'tblTempVendorCDR_20' ) end [2025-04-10 13:56:21] Production.INFO: ProcessCDR(1,14877330,1,1,2) [2025-04-10 13:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877330', 'tblTempUsageDetail_20' ) start [2025-04-10 13:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877330', 'tblTempUsageDetail_20' ) end [2025-04-10 13:56:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 13:56:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 13:56:26] Production.INFO: ==28895== Releasing lock... [2025-04-10 13:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 13:56:26] Production.INFO: 60.5 MB #Memory Used# [2025-04-10 13:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 10:57:05 [end_date_ymd] => 2025-04-10 13:57:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 10:57:05' and `end` < '2025-04-10 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-04-10 13:57:20] Production.INFO: count ==4354 [2025-04-10 13:57:21] Production.ERROR: pbx CDR StartTime 2025-04-10 10:57:05 - End Time 2025-04-10 13:57:05 [2025-04-10 13:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877335', 'tblTempUsageDetail_20' ) start [2025-04-10 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877335', 'tblTempUsageDetail_20' ) end [2025-04-10 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877335', 'tblTempVendorCDR_20' ) start [2025-04-10 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877335', 'tblTempVendorCDR_20' ) end [2025-04-10 13:57:21] Production.INFO: ProcessCDR(1,14877335,1,1,2) [2025-04-10 13:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877335', 'tblTempUsageDetail_20' ) start [2025-04-10 13:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877335', 'tblTempUsageDetail_20' ) end [2025-04-10 13:57:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 13:57:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 13:57:26] Production.INFO: ==28968== Releasing lock... [2025-04-10 13:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 13:57:26] Production.INFO: 60.5 MB #Memory Used# [2025-04-10 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 10:58:05 [end_date_ymd] => 2025-04-10 13:58:05 [RateCDR] => 1 ) [2025-04-10 13:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 10:58:05' and `end` < '2025-04-10 13:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 13:58:19] Production.INFO: count ==4332 [2025-04-10 13:58:20] Production.ERROR: pbx CDR StartTime 2025-04-10 10:58:05 - End Time 2025-04-10 13:58:05 [2025-04-10 13:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 13:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877340', 'tblTempUsageDetail_20' ) start [2025-04-10 13:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877340', 'tblTempUsageDetail_20' ) end [2025-04-10 13:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877340', 'tblTempVendorCDR_20' ) start [2025-04-10 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877340', 'tblTempVendorCDR_20' ) end [2025-04-10 13:58:21] Production.INFO: ProcessCDR(1,14877340,1,1,2) [2025-04-10 13:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877340', 'tblTempUsageDetail_20' ) start [2025-04-10 13:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877340', 'tblTempUsageDetail_20' ) end [2025-04-10 13:58:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 13:58:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 13:58:26] Production.INFO: ==29038== Releasing lock... [2025-04-10 13:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 13:58:26] Production.INFO: 60.5 MB #Memory Used# [2025-04-10 13:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 10:59:06 [end_date_ymd] => 2025-04-10 13:59:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 10:59:06' and `end` < '2025-04-10 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-04-10 13:59:20] Production.INFO: count ==4316 [2025-04-10 13:59:21] Production.ERROR: pbx CDR StartTime 2025-04-10 10:59:06 - End Time 2025-04-10 13:59:06 [2025-04-10 13:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 13:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877345', 'tblTempUsageDetail_20' ) start [2025-04-10 13:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877345', 'tblTempUsageDetail_20' ) end [2025-04-10 13:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877345', 'tblTempVendorCDR_20' ) start [2025-04-10 13:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877345', 'tblTempVendorCDR_20' ) end [2025-04-10 13:59:22] Production.INFO: ProcessCDR(1,14877345,1,1,2) [2025-04-10 13:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 13:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 13:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877345', 'tblTempUsageDetail_20' ) start [2025-04-10 13:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877345', 'tblTempUsageDetail_20' ) end [2025-04-10 13:59:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 13:59:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 13:59:26] Production.INFO: ==29115== Releasing lock... [2025-04-10 13:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 13:59:26] Production.INFO: 60.25 MB #Memory Used# [2025-04-10 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 11:00:06 [end_date_ymd] => 2025-04-10 14:00:06 [RateCDR] => 1 ) [2025-04-10 14:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 11:00:06' and `end` < '2025-04-10 14:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 14:00:19] Production.INFO: count ==4309 [2025-04-10 14:00:21] Production.ERROR: pbx CDR StartTime 2025-04-10 11:00:06 - End Time 2025-04-10 14:00:06 [2025-04-10 14:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 14:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877351', 'tblTempUsageDetail_20' ) start [2025-04-10 14:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877351', 'tblTempUsageDetail_20' ) end [2025-04-10 14:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877351', 'tblTempVendorCDR_20' ) start [2025-04-10 14:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877351', 'tblTempVendorCDR_20' ) end [2025-04-10 14:00:21] Production.INFO: ProcessCDR(1,14877351,1,1,2) [2025-04-10 14:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877351', 'tblTempUsageDetail_20' ) start [2025-04-10 14:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877351', 'tblTempUsageDetail_20' ) end [2025-04-10 14:00:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 14:00:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 14:00:26] Production.INFO: ==29189== Releasing lock... [2025-04-10 14:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 14:00:26] Production.INFO: 60.25 MB #Memory Used# [2025-04-10 14:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 11:01:06 [end_date_ymd] => 2025-04-10 14:01:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 11:01:06' and `end` < '2025-04-10 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-04-10 14:01:19] Production.INFO: count ==4311 [2025-04-10 14:01:21] Production.ERROR: pbx CDR StartTime 2025-04-10 11:01:06 - End Time 2025-04-10 14:01:06 [2025-04-10 14:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877356', 'tblTempUsageDetail_20' ) start [2025-04-10 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877356', 'tblTempUsageDetail_20' ) end [2025-04-10 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877356', 'tblTempVendorCDR_20' ) start [2025-04-10 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877356', 'tblTempVendorCDR_20' ) end [2025-04-10 14:01:21] Production.INFO: ProcessCDR(1,14877356,1,1,2) [2025-04-10 14:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877356', 'tblTempUsageDetail_20' ) start [2025-04-10 14:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877356', 'tblTempUsageDetail_20' ) end [2025-04-10 14:01:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 14:01:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 14:01:26] Production.INFO: ==29278== Releasing lock... [2025-04-10 14:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 14:01:26] Production.INFO: 60.25 MB #Memory Used# [2025-04-10 14:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 11:02:05 [end_date_ymd] => 2025-04-10 14:02:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 11:02:05' and `end` < '2025-04-10 14:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 14:02:19] Production.INFO: count ==4320 [2025-04-10 14:02:21] Production.ERROR: pbx CDR StartTime 2025-04-10 11:02:05 - End Time 2025-04-10 14:02:05 [2025-04-10 14:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877361', 'tblTempUsageDetail_20' ) start [2025-04-10 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877361', 'tblTempUsageDetail_20' ) end [2025-04-10 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877361', 'tblTempVendorCDR_20' ) start [2025-04-10 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877361', 'tblTempVendorCDR_20' ) end [2025-04-10 14:02:21] Production.INFO: ProcessCDR(1,14877361,1,1,2) [2025-04-10 14:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877361', 'tblTempUsageDetail_20' ) start [2025-04-10 14:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877361', 'tblTempUsageDetail_20' ) end [2025-04-10 14:02:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 14:02:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 14:02:26] Production.INFO: ==29348== Releasing lock... [2025-04-10 14:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 14:02:26] Production.INFO: 60.25 MB #Memory Used# [2025-04-10 14:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 11:03:06 [end_date_ymd] => 2025-04-10 14:03:06 [RateCDR] => 1 ) [2025-04-10 14:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 11:03:06' and `end` < '2025-04-10 14:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 14:03:19] Production.INFO: count ==4345 [2025-04-10 14:03:21] Production.ERROR: pbx CDR StartTime 2025-04-10 11:03:06 - End Time 2025-04-10 14:03:06 [2025-04-10 14:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 14:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877366', 'tblTempUsageDetail_20' ) start [2025-04-10 14:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877366', 'tblTempUsageDetail_20' ) end [2025-04-10 14:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877366', 'tblTempVendorCDR_20' ) start [2025-04-10 14:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877366', 'tblTempVendorCDR_20' ) end [2025-04-10 14:03:21] Production.INFO: ProcessCDR(1,14877366,1,1,2) [2025-04-10 14:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877366', 'tblTempUsageDetail_20' ) start [2025-04-10 14:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877366', 'tblTempUsageDetail_20' ) end [2025-04-10 14:03:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 14:03:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 14:03:26] Production.INFO: ==29422== Releasing lock... [2025-04-10 14:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 14:03:26] Production.INFO: 60.5 MB #Memory Used# [2025-04-10 14:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 11:04:05 [end_date_ymd] => 2025-04-10 14:04:05 [RateCDR] => 1 ) [2025-04-10 14:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 11:04:05' and `end` < '2025-04-10 14:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 14:04:19] Production.INFO: count ==4352 [2025-04-10 14:04:21] Production.ERROR: pbx CDR StartTime 2025-04-10 11:04:05 - End Time 2025-04-10 14:04:05 [2025-04-10 14:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877371', 'tblTempUsageDetail_20' ) start [2025-04-10 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877371', 'tblTempUsageDetail_20' ) end [2025-04-10 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877371', 'tblTempVendorCDR_20' ) start [2025-04-10 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877371', 'tblTempVendorCDR_20' ) end [2025-04-10 14:04:21] Production.INFO: ProcessCDR(1,14877371,1,1,2) [2025-04-10 14:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877371', 'tblTempUsageDetail_20' ) start [2025-04-10 14:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877371', 'tblTempUsageDetail_20' ) end [2025-04-10 14:04:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 14:04:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 14:04:26] Production.INFO: ==29499== Releasing lock... [2025-04-10 14:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 14:04:26] Production.INFO: 60.5 MB #Memory Used# [2025-04-10 14:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 11:05:05 [end_date_ymd] => 2025-04-10 14:05:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 11:05:05' and `end` < '2025-04-10 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-04-10 14:05:19] Production.INFO: count ==4352 [2025-04-10 14:05:21] Production.ERROR: pbx CDR StartTime 2025-04-10 11:05:05 - End Time 2025-04-10 14:05:05 [2025-04-10 14:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 14:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877376', 'tblTempUsageDetail_20' ) start [2025-04-10 14:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877376', 'tblTempUsageDetail_20' ) end [2025-04-10 14:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877376', 'tblTempVendorCDR_20' ) start [2025-04-10 14:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877376', 'tblTempVendorCDR_20' ) end [2025-04-10 14:05:21] Production.INFO: ProcessCDR(1,14877376,1,1,2) [2025-04-10 14:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877376', 'tblTempUsageDetail_20' ) start [2025-04-10 14:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877376', 'tblTempUsageDetail_20' ) end [2025-04-10 14:05:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 14:05:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 14:05:26] Production.INFO: ==29571== Releasing lock... [2025-04-10 14:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 14:05:26] Production.INFO: 60.5 MB #Memory Used# [2025-04-10 14:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 11:06:05 [end_date_ymd] => 2025-04-10 14:06:05 [RateCDR] => 1 ) [2025-04-10 14:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 11:06:05' and `end` < '2025-04-10 14:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 14:06:19] Production.INFO: count ==4353 [2025-04-10 14:06:21] Production.ERROR: pbx CDR StartTime 2025-04-10 11:06:05 - End Time 2025-04-10 14:06:05 [2025-04-10 14:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877381', 'tblTempUsageDetail_20' ) start [2025-04-10 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877381', 'tblTempUsageDetail_20' ) end [2025-04-10 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877381', 'tblTempVendorCDR_20' ) start [2025-04-10 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877381', 'tblTempVendorCDR_20' ) end [2025-04-10 14:06:21] Production.INFO: ProcessCDR(1,14877381,1,1,2) [2025-04-10 14:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877381', 'tblTempUsageDetail_20' ) start [2025-04-10 14:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877381', 'tblTempUsageDetail_20' ) end [2025-04-10 14:06:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 14:06:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 14:06:27] Production.INFO: ==29686== Releasing lock... [2025-04-10 14:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 14:06:27] Production.INFO: 60.5 MB #Memory Used# [2025-04-10 14:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 11:07:06 [end_date_ymd] => 2025-04-10 14:07:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 11:07:06' and `end` < '2025-04-10 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-04-10 14:07:20] Production.INFO: count ==4385 [2025-04-10 14:07:22] Production.ERROR: pbx CDR StartTime 2025-04-10 11:07:06 - End Time 2025-04-10 14:07:06 [2025-04-10 14:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 14:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877386', 'tblTempUsageDetail_20' ) start [2025-04-10 14:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877386', 'tblTempUsageDetail_20' ) end [2025-04-10 14:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877386', 'tblTempVendorCDR_20' ) start [2025-04-10 14:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877386', 'tblTempVendorCDR_20' ) end [2025-04-10 14:07:22] Production.INFO: ProcessCDR(1,14877386,1,1,2) [2025-04-10 14:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877386', 'tblTempUsageDetail_20' ) start [2025-04-10 14:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877386', 'tblTempUsageDetail_20' ) end [2025-04-10 14:07:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 14:07:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 14:07:27] Production.INFO: ==29762== Releasing lock... [2025-04-10 14:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 14:07:27] Production.INFO: 60.75 MB #Memory Used# [2025-04-10 14:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 11:08:05 [end_date_ymd] => 2025-04-10 14:08:05 [RateCDR] => 1 ) [2025-04-10 14:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 11:08:05' and `end` < '2025-04-10 14:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 14:08:19] Production.INFO: count ==4381 [2025-04-10 14:08:21] Production.ERROR: pbx CDR StartTime 2025-04-10 11:08:05 - End Time 2025-04-10 14:08:05 [2025-04-10 14:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877391', 'tblTempUsageDetail_20' ) start [2025-04-10 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877391', 'tblTempUsageDetail_20' ) end [2025-04-10 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877391', 'tblTempVendorCDR_20' ) start [2025-04-10 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877391', 'tblTempVendorCDR_20' ) end [2025-04-10 14:08:21] Production.INFO: ProcessCDR(1,14877391,1,1,2) [2025-04-10 14:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877391', 'tblTempUsageDetail_20' ) start [2025-04-10 14:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877391', 'tblTempUsageDetail_20' ) end [2025-04-10 14:08:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 14:08:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 14:08:26] Production.INFO: ==29835== Releasing lock... [2025-04-10 14:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 14:08:26] Production.INFO: 60.75 MB #Memory Used# [2025-04-10 14:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 11:09:06 [end_date_ymd] => 2025-04-10 14:09:06 [RateCDR] => 1 ) [2025-04-10 14:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 11:09:06' and `end` < '2025-04-10 14:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 14:09:20] Production.INFO: count ==4381 [2025-04-10 14:09:21] Production.ERROR: pbx CDR StartTime 2025-04-10 11:09:06 - End Time 2025-04-10 14:09:06 [2025-04-10 14:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877396', 'tblTempUsageDetail_20' ) start [2025-04-10 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877396', 'tblTempUsageDetail_20' ) end [2025-04-10 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877396', 'tblTempVendorCDR_20' ) start [2025-04-10 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877396', 'tblTempVendorCDR_20' ) end [2025-04-10 14:09:21] Production.INFO: ProcessCDR(1,14877396,1,1,2) [2025-04-10 14:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877396', 'tblTempUsageDetail_20' ) start [2025-04-10 14:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877396', 'tblTempUsageDetail_20' ) end [2025-04-10 14:09:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 14:09:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 14:09:27] Production.INFO: ==29911== Releasing lock... [2025-04-10 14:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 14:09:27] Production.INFO: 60.75 MB #Memory Used# [2025-04-10 14:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 11:10:06 [end_date_ymd] => 2025-04-10 14:10:06 [RateCDR] => 1 ) [2025-04-10 14:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 11:10:06' and `end` < '2025-04-10 14:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 14:10:20] Production.INFO: count ==4374 [2025-04-10 14:10:22] Production.ERROR: pbx CDR StartTime 2025-04-10 11:10:06 - End Time 2025-04-10 14:10:06 [2025-04-10 14:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 14:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877402', 'tblTempUsageDetail_20' ) start [2025-04-10 14:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877402', 'tblTempUsageDetail_20' ) end [2025-04-10 14:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877402', 'tblTempVendorCDR_20' ) start [2025-04-10 14:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877402', 'tblTempVendorCDR_20' ) end [2025-04-10 14:10:22] Production.INFO: ProcessCDR(1,14877402,1,1,2) [2025-04-10 14:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877402', 'tblTempUsageDetail_20' ) start [2025-04-10 14:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877402', 'tblTempUsageDetail_20' ) end [2025-04-10 14:10:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 14:10:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 14:10:27] Production.INFO: ==29989== Releasing lock... [2025-04-10 14:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 14:10:27] Production.INFO: 60.75 MB #Memory Used# [2025-04-10 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 11:11:05 [end_date_ymd] => 2025-04-10 14:11:05 [RateCDR] => 1 ) [2025-04-10 14:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 11:11:05' and `end` < '2025-04-10 14:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 14:11:19] Production.INFO: count ==4398 [2025-04-10 14:11:20] Production.ERROR: pbx CDR StartTime 2025-04-10 11:11:05 - End Time 2025-04-10 14:11:05 [2025-04-10 14:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 14:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877407', 'tblTempUsageDetail_20' ) start [2025-04-10 14:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877407', 'tblTempUsageDetail_20' ) end [2025-04-10 14:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877407', 'tblTempVendorCDR_20' ) start [2025-04-10 14:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877407', 'tblTempVendorCDR_20' ) end [2025-04-10 14:11:21] Production.INFO: ProcessCDR(1,14877407,1,1,2) [2025-04-10 14:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877407', 'tblTempUsageDetail_20' ) start [2025-04-10 14:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877407', 'tblTempUsageDetail_20' ) end [2025-04-10 14:11:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 14:11:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 14:11:26] Production.INFO: ==30062== Releasing lock... [2025-04-10 14:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 14:11:26] Production.INFO: 61 MB #Memory Used# [2025-04-10 14:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 11:12:05 [end_date_ymd] => 2025-04-10 14:12:05 [RateCDR] => 1 ) [2025-04-10 14:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 11:12:05' and `end` < '2025-04-10 14:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 14:12:19] Production.INFO: count ==4403 [2025-04-10 14:12:20] Production.ERROR: pbx CDR StartTime 2025-04-10 11:12:05 - End Time 2025-04-10 14:12:05 [2025-04-10 14:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 14:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877412', 'tblTempUsageDetail_20' ) start [2025-04-10 14:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877412', 'tblTempUsageDetail_20' ) end [2025-04-10 14:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877412', 'tblTempVendorCDR_20' ) start [2025-04-10 14:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877412', 'tblTempVendorCDR_20' ) end [2025-04-10 14:12:20] Production.INFO: ProcessCDR(1,14877412,1,1,2) [2025-04-10 14:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877412', 'tblTempUsageDetail_20' ) start [2025-04-10 14:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877412', 'tblTempUsageDetail_20' ) end [2025-04-10 14:12:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 14:12:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 14:12:26] Production.INFO: ==30136== Releasing lock... [2025-04-10 14:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 14:12:26] Production.INFO: 61 MB #Memory Used# [2025-04-10 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 11:13:05 [end_date_ymd] => 2025-04-10 14:13:05 [RateCDR] => 1 ) [2025-04-10 14:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 11:13:05' and `end` < '2025-04-10 14:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 14:13:19] Production.INFO: count ==4423 [2025-04-10 14:13:21] Production.ERROR: pbx CDR StartTime 2025-04-10 11:13:05 - End Time 2025-04-10 14:13:05 [2025-04-10 14:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877417', 'tblTempUsageDetail_20' ) start [2025-04-10 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877417', 'tblTempUsageDetail_20' ) end [2025-04-10 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877417', 'tblTempVendorCDR_20' ) start [2025-04-10 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877417', 'tblTempVendorCDR_20' ) end [2025-04-10 14:13:21] Production.INFO: ProcessCDR(1,14877417,1,1,2) [2025-04-10 14:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877417', 'tblTempUsageDetail_20' ) start [2025-04-10 14:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877417', 'tblTempUsageDetail_20' ) end [2025-04-10 14:13:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 14:13:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 14:13:26] Production.INFO: ==30213== Releasing lock... [2025-04-10 14:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 14:13:26] Production.INFO: 61 MB #Memory Used# [2025-04-10 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 11:14:05 [end_date_ymd] => 2025-04-10 14:14:05 [RateCDR] => 1 ) [2025-04-10 14:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 11:14:05' and `end` < '2025-04-10 14:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 14:14:19] Production.INFO: count ==4435 [2025-04-10 14:14:21] Production.ERROR: pbx CDR StartTime 2025-04-10 11:14:05 - End Time 2025-04-10 14:14:05 [2025-04-10 14:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877422', 'tblTempUsageDetail_20' ) start [2025-04-10 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877422', 'tblTempUsageDetail_20' ) end [2025-04-10 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877422', 'tblTempVendorCDR_20' ) start [2025-04-10 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877422', 'tblTempVendorCDR_20' ) end [2025-04-10 14:14:21] Production.INFO: ProcessCDR(1,14877422,1,1,2) [2025-04-10 14:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877422', 'tblTempUsageDetail_20' ) start [2025-04-10 14:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877422', 'tblTempUsageDetail_20' ) end [2025-04-10 14:14:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 14:14:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 14:14:26] Production.INFO: ==30284== Releasing lock... [2025-04-10 14:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 14:14:26] Production.INFO: 61.25 MB #Memory Used# [2025-04-10 14:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 11:15:05 [end_date_ymd] => 2025-04-10 14:15:05 [RateCDR] => 1 ) [2025-04-10 14:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 11:15:05' and `end` < '2025-04-10 14:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 14:15:19] Production.INFO: count ==4429 [2025-04-10 14:15:20] Production.ERROR: pbx CDR StartTime 2025-04-10 11:15:05 - End Time 2025-04-10 14:15:05 [2025-04-10 14:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 14:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877427', 'tblTempUsageDetail_20' ) start [2025-04-10 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877427', 'tblTempUsageDetail_20' ) end [2025-04-10 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877427', 'tblTempVendorCDR_20' ) start [2025-04-10 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877427', 'tblTempVendorCDR_20' ) end [2025-04-10 14:15:21] Production.INFO: ProcessCDR(1,14877427,1,1,2) [2025-04-10 14:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877427', 'tblTempUsageDetail_20' ) start [2025-04-10 14:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877427', 'tblTempUsageDetail_20' ) end [2025-04-10 14:15:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 14:15:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 14:15:26] Production.INFO: ==30354== Releasing lock... [2025-04-10 14:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 14:15:26] Production.INFO: 61.25 MB #Memory Used# [2025-04-10 14:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 11:16:05 [end_date_ymd] => 2025-04-10 14:16:05 [RateCDR] => 1 ) [2025-04-10 14:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 11:16:05' and `end` < '2025-04-10 14:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 14:16:18] Production.INFO: count ==4411 [2025-04-10 14:16:20] Production.ERROR: pbx CDR StartTime 2025-04-10 11:16:05 - End Time 2025-04-10 14:16:05 [2025-04-10 14:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 14:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877432', 'tblTempUsageDetail_20' ) start [2025-04-10 14:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877432', 'tblTempUsageDetail_20' ) end [2025-04-10 14:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877432', 'tblTempVendorCDR_20' ) start [2025-04-10 14:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877432', 'tblTempVendorCDR_20' ) end [2025-04-10 14:16:20] Production.INFO: ProcessCDR(1,14877432,1,1,2) [2025-04-10 14:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877432', 'tblTempUsageDetail_20' ) start [2025-04-10 14:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877432', 'tblTempUsageDetail_20' ) end [2025-04-10 14:16:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 14:16:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 14:16:25] Production.INFO: ==30429== Releasing lock... [2025-04-10 14:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 14:16:25] Production.INFO: 61 MB #Memory Used# [2025-04-10 14:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 11:17:05 [end_date_ymd] => 2025-04-10 14:17:05 [RateCDR] => 1 ) [2025-04-10 14:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 11:17:05' and `end` < '2025-04-10 14:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 14:17:19] Production.INFO: count ==4394 [2025-04-10 14:17:21] Production.ERROR: pbx CDR StartTime 2025-04-10 11:17:05 - End Time 2025-04-10 14:17:05 [2025-04-10 14:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877437', 'tblTempUsageDetail_20' ) start [2025-04-10 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877437', 'tblTempUsageDetail_20' ) end [2025-04-10 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877437', 'tblTempVendorCDR_20' ) start [2025-04-10 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877437', 'tblTempVendorCDR_20' ) end [2025-04-10 14:17:21] Production.INFO: ProcessCDR(1,14877437,1,1,2) [2025-04-10 14:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877437', 'tblTempUsageDetail_20' ) start [2025-04-10 14:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877437', 'tblTempUsageDetail_20' ) end [2025-04-10 14:17:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 14:17:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 14:17:26] Production.INFO: ==30503== Releasing lock... [2025-04-10 14:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 14:17:26] Production.INFO: 61 MB #Memory Used# [2025-04-10 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 11:18:05 [end_date_ymd] => 2025-04-10 14:18:05 [RateCDR] => 1 ) [2025-04-10 14:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 11:18:05' and `end` < '2025-04-10 14:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 14:18:19] Production.INFO: count ==4387 [2025-04-10 14:18:20] Production.ERROR: pbx CDR StartTime 2025-04-10 11:18:05 - End Time 2025-04-10 14:18:05 [2025-04-10 14:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 14:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877442', 'tblTempUsageDetail_20' ) start [2025-04-10 14:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877442', 'tblTempUsageDetail_20' ) end [2025-04-10 14:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877442', 'tblTempVendorCDR_20' ) start [2025-04-10 14:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877442', 'tblTempVendorCDR_20' ) end [2025-04-10 14:18:20] Production.INFO: ProcessCDR(1,14877442,1,1,2) [2025-04-10 14:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877442', 'tblTempUsageDetail_20' ) start [2025-04-10 14:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877442', 'tblTempUsageDetail_20' ) end [2025-04-10 14:18:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 14:18:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 14:18:26] Production.INFO: ==30579== Releasing lock... [2025-04-10 14:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 14:18:26] Production.INFO: 60.75 MB #Memory Used# [2025-04-10 14:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 11:19:05 [end_date_ymd] => 2025-04-10 14:19:05 [RateCDR] => 1 ) [2025-04-10 14:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 11:19:05' and `end` < '2025-04-10 14:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 14:19:19] Production.INFO: count ==4386 [2025-04-10 14:19:20] Production.ERROR: pbx CDR StartTime 2025-04-10 11:19:05 - End Time 2025-04-10 14:19:05 [2025-04-10 14:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 14:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877447', 'tblTempUsageDetail_20' ) start [2025-04-10 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877447', 'tblTempUsageDetail_20' ) end [2025-04-10 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877447', 'tblTempVendorCDR_20' ) start [2025-04-10 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877447', 'tblTempVendorCDR_20' ) end [2025-04-10 14:19:21] Production.INFO: ProcessCDR(1,14877447,1,1,2) [2025-04-10 14:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877447', 'tblTempUsageDetail_20' ) start [2025-04-10 14:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877447', 'tblTempUsageDetail_20' ) end [2025-04-10 14:19:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 14:19:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 14:19:26] Production.INFO: ==30655== Releasing lock... [2025-04-10 14:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 14:19:26] Production.INFO: 60.75 MB #Memory Used# [2025-04-10 14:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 11:20:06 [end_date_ymd] => 2025-04-10 14:20:06 [RateCDR] => 1 ) [2025-04-10 14:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 11:20:06' and `end` < '2025-04-10 14:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 14:20:20] Production.INFO: count ==4377 [2025-04-10 14:20:21] Production.ERROR: pbx CDR StartTime 2025-04-10 11:20:06 - End Time 2025-04-10 14:20:06 [2025-04-10 14:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 14:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877453', 'tblTempUsageDetail_20' ) start [2025-04-10 14:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877453', 'tblTempUsageDetail_20' ) end [2025-04-10 14:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877453', 'tblTempVendorCDR_20' ) start [2025-04-10 14:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877453', 'tblTempVendorCDR_20' ) end [2025-04-10 14:20:21] Production.INFO: ProcessCDR(1,14877453,1,1,2) [2025-04-10 14:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877453', 'tblTempUsageDetail_20' ) start [2025-04-10 14:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877453', 'tblTempUsageDetail_20' ) end [2025-04-10 14:20:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 14:20:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 14:20:27] Production.INFO: ==30730== Releasing lock... [2025-04-10 14:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 14:20:27] Production.INFO: 60.75 MB #Memory Used# [2025-04-10 14:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 11:21:05 [end_date_ymd] => 2025-04-10 14:21:05 [RateCDR] => 1 ) [2025-04-10 14:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 11:21:05' and `end` < '2025-04-10 14:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 14:21:19] Production.INFO: count ==4367 [2025-04-10 14:21:21] Production.ERROR: pbx CDR StartTime 2025-04-10 11:21:05 - End Time 2025-04-10 14:21:05 [2025-04-10 14:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877458', 'tblTempUsageDetail_20' ) start [2025-04-10 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877458', 'tblTempUsageDetail_20' ) end [2025-04-10 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877458', 'tblTempVendorCDR_20' ) start [2025-04-10 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877458', 'tblTempVendorCDR_20' ) end [2025-04-10 14:21:21] Production.INFO: ProcessCDR(1,14877458,1,1,2) [2025-04-10 14:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877458', 'tblTempUsageDetail_20' ) start [2025-04-10 14:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877458', 'tblTempUsageDetail_20' ) end [2025-04-10 14:21:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 14:21:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 14:21:26] Production.INFO: ==30804== Releasing lock... [2025-04-10 14:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 14:21:26] Production.INFO: 60.75 MB #Memory Used# [2025-04-10 14:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 11:22:06 [end_date_ymd] => 2025-04-10 14:22:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 11:22:06' and `end` < '2025-04-10 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-04-10 14:22:19] Production.INFO: count ==4381 [2025-04-10 14:22:21] Production.ERROR: pbx CDR StartTime 2025-04-10 11:22:06 - End Time 2025-04-10 14:22:06 [2025-04-10 14:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877463', 'tblTempUsageDetail_20' ) start [2025-04-10 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877463', 'tblTempUsageDetail_20' ) end [2025-04-10 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877463', 'tblTempVendorCDR_20' ) start [2025-04-10 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877463', 'tblTempVendorCDR_20' ) end [2025-04-10 14:22:21] Production.INFO: ProcessCDR(1,14877463,1,1,2) [2025-04-10 14:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877463', 'tblTempUsageDetail_20' ) start [2025-04-10 14:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877463', 'tblTempUsageDetail_20' ) end [2025-04-10 14:22:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 14:22:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 14:22:27] Production.INFO: ==30914== Releasing lock... [2025-04-10 14:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 14:22:27] Production.INFO: 60.75 MB #Memory Used# [2025-04-10 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 11:23:05 [end_date_ymd] => 2025-04-10 14:23:05 [RateCDR] => 1 ) [2025-04-10 14:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 11:23:05' and `end` < '2025-04-10 14:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 14:23:19] Production.INFO: count ==4410 [2025-04-10 14:23:21] Production.ERROR: pbx CDR StartTime 2025-04-10 11:23:05 - End Time 2025-04-10 14:23:05 [2025-04-10 14:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877468', 'tblTempUsageDetail_20' ) start [2025-04-10 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877468', 'tblTempUsageDetail_20' ) end [2025-04-10 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877468', 'tblTempVendorCDR_20' ) start [2025-04-10 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877468', 'tblTempVendorCDR_20' ) end [2025-04-10 14:23:21] Production.INFO: ProcessCDR(1,14877468,1,1,2) [2025-04-10 14:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877468', 'tblTempUsageDetail_20' ) start [2025-04-10 14:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877468', 'tblTempUsageDetail_20' ) end [2025-04-10 14:23:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 14:23:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 14:23:26] Production.INFO: ==30988== Releasing lock... [2025-04-10 14:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 14:23:26] Production.INFO: 61 MB #Memory Used# [2025-04-10 14:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 11:24:06 [end_date_ymd] => 2025-04-10 14:24:06 [RateCDR] => 1 ) [2025-04-10 14:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 11:24:06' and `end` < '2025-04-10 14:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 14:24:19] Production.INFO: count ==4415 [2025-04-10 14:24:21] Production.ERROR: pbx CDR StartTime 2025-04-10 11:24:06 - End Time 2025-04-10 14:24:06 [2025-04-10 14:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 14:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877473', 'tblTempUsageDetail_20' ) start [2025-04-10 14:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877473', 'tblTempUsageDetail_20' ) end [2025-04-10 14:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877473', 'tblTempVendorCDR_20' ) start [2025-04-10 14:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877473', 'tblTempVendorCDR_20' ) end [2025-04-10 14:24:21] Production.INFO: ProcessCDR(1,14877473,1,1,2) [2025-04-10 14:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877473', 'tblTempUsageDetail_20' ) start [2025-04-10 14:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877473', 'tblTempUsageDetail_20' ) end [2025-04-10 14:24:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 14:24:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 14:24:26] Production.INFO: ==31063== Releasing lock... [2025-04-10 14:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 14:24:26] Production.INFO: 61 MB #Memory Used# [2025-04-10 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 11:25:05 [end_date_ymd] => 2025-04-10 14:25:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 11:25:05' and `end` < '2025-04-10 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-04-10 14:25:19] Production.INFO: count ==4416 [2025-04-10 14:25:21] Production.ERROR: pbx CDR StartTime 2025-04-10 11:25:05 - End Time 2025-04-10 14:25:05 [2025-04-10 14:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877478', 'tblTempUsageDetail_20' ) start [2025-04-10 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877478', 'tblTempUsageDetail_20' ) end [2025-04-10 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877478', 'tblTempVendorCDR_20' ) start [2025-04-10 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877478', 'tblTempVendorCDR_20' ) end [2025-04-10 14:25:21] Production.INFO: ProcessCDR(1,14877478,1,1,2) [2025-04-10 14:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877478', 'tblTempUsageDetail_20' ) start [2025-04-10 14:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877478', 'tblTempUsageDetail_20' ) end [2025-04-10 14:25:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 14:25:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 14:25:26] Production.INFO: ==31142== Releasing lock... [2025-04-10 14:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 14:25:26] Production.INFO: 61 MB #Memory Used# [2025-04-10 14:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 11:26:06 [end_date_ymd] => 2025-04-10 14:26:06 [RateCDR] => 1 ) [2025-04-10 14:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 11:26:06' and `end` < '2025-04-10 14:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 14:26:19] Production.INFO: count ==4421 [2025-04-10 14:26:21] Production.ERROR: pbx CDR StartTime 2025-04-10 11:26:06 - End Time 2025-04-10 14:26:06 [2025-04-10 14:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877483', 'tblTempUsageDetail_20' ) start [2025-04-10 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877483', 'tblTempUsageDetail_20' ) end [2025-04-10 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877483', 'tblTempVendorCDR_20' ) start [2025-04-10 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877483', 'tblTempVendorCDR_20' ) end [2025-04-10 14:26:21] Production.INFO: ProcessCDR(1,14877483,1,1,2) [2025-04-10 14:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877483', 'tblTempUsageDetail_20' ) start [2025-04-10 14:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877483', 'tblTempUsageDetail_20' ) end [2025-04-10 14:26:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 14:26:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 14:26:26] Production.INFO: ==31218== Releasing lock... [2025-04-10 14:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 14:26:26] Production.INFO: 61 MB #Memory Used# [2025-04-10 14:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 11:27:06 [end_date_ymd] => 2025-04-10 14:27:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 11:27:06' and `end` < '2025-04-10 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-04-10 14:27:19] Production.INFO: count ==4419 [2025-04-10 14:27:21] Production.ERROR: pbx CDR StartTime 2025-04-10 11:27:06 - End Time 2025-04-10 14:27:06 [2025-04-10 14:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877488', 'tblTempUsageDetail_20' ) start [2025-04-10 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877488', 'tblTempUsageDetail_20' ) end [2025-04-10 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877488', 'tblTempVendorCDR_20' ) start [2025-04-10 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877488', 'tblTempVendorCDR_20' ) end [2025-04-10 14:27:21] Production.INFO: ProcessCDR(1,14877488,1,1,2) [2025-04-10 14:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877488', 'tblTempUsageDetail_20' ) start [2025-04-10 14:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877488', 'tblTempUsageDetail_20' ) end [2025-04-10 14:27:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 14:27:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 14:27:27] Production.INFO: ==31292== Releasing lock... [2025-04-10 14:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 14:27:27] Production.INFO: 61 MB #Memory Used# [2025-04-10 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 11:28:05 [end_date_ymd] => 2025-04-10 14:28:05 [RateCDR] => 1 ) [2025-04-10 14:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 11:28:05' and `end` < '2025-04-10 14:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 14:28:19] Production.INFO: count ==4415 [2025-04-10 14:28:21] Production.ERROR: pbx CDR StartTime 2025-04-10 11:28:05 - End Time 2025-04-10 14:28:05 [2025-04-10 14:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877493', 'tblTempUsageDetail_20' ) start [2025-04-10 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877493', 'tblTempUsageDetail_20' ) end [2025-04-10 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877493', 'tblTempVendorCDR_20' ) start [2025-04-10 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877493', 'tblTempVendorCDR_20' ) end [2025-04-10 14:28:21] Production.INFO: ProcessCDR(1,14877493,1,1,2) [2025-04-10 14:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877493', 'tblTempUsageDetail_20' ) start [2025-04-10 14:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877493', 'tblTempUsageDetail_20' ) end [2025-04-10 14:28:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 14:28:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 14:28:27] Production.INFO: ==31365== Releasing lock... [2025-04-10 14:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 14:28:27] Production.INFO: 61 MB #Memory Used# [2025-04-10 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 11:29:05 [end_date_ymd] => 2025-04-10 14:29:05 [RateCDR] => 1 ) [2025-04-10 14:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 11:29:05' and `end` < '2025-04-10 14:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 14:29:19] Production.INFO: count ==4404 [2025-04-10 14:29:21] Production.ERROR: pbx CDR StartTime 2025-04-10 11:29:05 - End Time 2025-04-10 14:29:05 [2025-04-10 14:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877498', 'tblTempUsageDetail_20' ) start [2025-04-10 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877498', 'tblTempUsageDetail_20' ) end [2025-04-10 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877498', 'tblTempVendorCDR_20' ) start [2025-04-10 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877498', 'tblTempVendorCDR_20' ) end [2025-04-10 14:29:21] Production.INFO: ProcessCDR(1,14877498,1,1,2) [2025-04-10 14:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877498', 'tblTempUsageDetail_20' ) start [2025-04-10 14:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877498', 'tblTempUsageDetail_20' ) end [2025-04-10 14:29:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 14:29:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 14:29:26] Production.INFO: ==31438== Releasing lock... [2025-04-10 14:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 14:29:26] Production.INFO: 61 MB #Memory Used# [2025-04-10 14:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 11:30:06 [end_date_ymd] => 2025-04-10 14:30:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 11:30:06' and `end` < '2025-04-10 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-04-10 14:30:20] Production.INFO: count ==4401 [2025-04-10 14:30:22] Production.ERROR: pbx CDR StartTime 2025-04-10 11:30:06 - End Time 2025-04-10 14:30:06 [2025-04-10 14:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877504', 'tblTempUsageDetail_20' ) start [2025-04-10 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877504', 'tblTempUsageDetail_20' ) end [2025-04-10 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877504', 'tblTempVendorCDR_20' ) start [2025-04-10 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877504', 'tblTempVendorCDR_20' ) end [2025-04-10 14:30:22] Production.INFO: ProcessCDR(1,14877504,1,1,2) [2025-04-10 14:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877504', 'tblTempUsageDetail_20' ) start [2025-04-10 14:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877504', 'tblTempUsageDetail_20' ) end [2025-04-10 14:30:28] Production.ERROR: pbx prc_insertCDR start [2025-04-10 14:30:28] Production.ERROR: pbx prc_insertCDR end [2025-04-10 14:30:28] Production.INFO: ==31511== Releasing lock... [2025-04-10 14:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 14:30:28] Production.INFO: 61 MB #Memory Used# [2025-04-10 14:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 11:31:06 [end_date_ymd] => 2025-04-10 14:31:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 11:31:06' and `end` < '2025-04-10 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-04-10 14:31:20] Production.INFO: count ==4389 [2025-04-10 14:31:21] Production.ERROR: pbx CDR StartTime 2025-04-10 11:31:06 - End Time 2025-04-10 14:31:06 [2025-04-10 14:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877509', 'tblTempUsageDetail_20' ) start [2025-04-10 14:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877509', 'tblTempUsageDetail_20' ) end [2025-04-10 14:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877509', 'tblTempVendorCDR_20' ) start [2025-04-10 14:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877509', 'tblTempVendorCDR_20' ) end [2025-04-10 14:31:22] Production.INFO: ProcessCDR(1,14877509,1,1,2) [2025-04-10 14:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877509', 'tblTempUsageDetail_20' ) start [2025-04-10 14:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877509', 'tblTempUsageDetail_20' ) end [2025-04-10 14:31:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 14:31:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 14:31:27] Production.INFO: ==31586== Releasing lock... [2025-04-10 14:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 14:31:27] Production.INFO: 60.75 MB #Memory Used# [2025-04-10 14:32:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 11:32:07 [end_date_ymd] => 2025-04-10 14:32:07 [RateCDR] => 1 ) [2025-04-10 14: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-04-10 11:32:07' and `end` < '2025-04-10 14: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-04-10 14:32:20] Production.INFO: count ==4452 [2025-04-10 14:32:22] Production.ERROR: pbx CDR StartTime 2025-04-10 11:32:07 - End Time 2025-04-10 14:32:07 [2025-04-10 14:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 14:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877514', 'tblTempUsageDetail_20' ) start [2025-04-10 14:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877514', 'tblTempUsageDetail_20' ) end [2025-04-10 14:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877514', 'tblTempVendorCDR_20' ) start [2025-04-10 14:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877514', 'tblTempVendorCDR_20' ) end [2025-04-10 14:32:22] Production.INFO: ProcessCDR(1,14877514,1,1,2) [2025-04-10 14:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877514', 'tblTempUsageDetail_20' ) start [2025-04-10 14:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877514', 'tblTempUsageDetail_20' ) end [2025-04-10 14:32:28] Production.ERROR: pbx prc_insertCDR start [2025-04-10 14:32:28] Production.ERROR: pbx prc_insertCDR end [2025-04-10 14:32:29] Production.INFO: ==31670== Releasing lock... [2025-04-10 14:32:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 14:32:29] Production.INFO: 61.25 MB #Memory Used# [2025-04-10 14:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 11:33:06 [end_date_ymd] => 2025-04-10 14:33:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 11:33:06' and `end` < '2025-04-10 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-04-10 14:33:19] Production.INFO: count ==4479 [2025-04-10 14:33:21] Production.ERROR: pbx CDR StartTime 2025-04-10 11:33:06 - End Time 2025-04-10 14:33:06 [2025-04-10 14:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877519', 'tblTempUsageDetail_20' ) start [2025-04-10 14:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877519', 'tblTempUsageDetail_20' ) end [2025-04-10 14:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877519', 'tblTempVendorCDR_20' ) start [2025-04-10 14:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877519', 'tblTempVendorCDR_20' ) end [2025-04-10 14:33:22] Production.INFO: ProcessCDR(1,14877519,1,1,2) [2025-04-10 14:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877519', 'tblTempUsageDetail_20' ) start [2025-04-10 14:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877519', 'tblTempUsageDetail_20' ) end [2025-04-10 14:33:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 14:33:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 14:33:26] Production.INFO: ==31742== Releasing lock... [2025-04-10 14:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 14:33:26] Production.INFO: 61.5 MB #Memory Used# [2025-04-10 14:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 11:34:05 [end_date_ymd] => 2025-04-10 14:34:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 11:34:05' and `end` < '2025-04-10 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-04-10 14:34:19] Production.INFO: count ==4473 [2025-04-10 14:34:21] Production.ERROR: pbx CDR StartTime 2025-04-10 11:34:05 - End Time 2025-04-10 14:34:05 [2025-04-10 14:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877524', 'tblTempUsageDetail_20' ) start [2025-04-10 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877524', 'tblTempUsageDetail_20' ) end [2025-04-10 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877524', 'tblTempVendorCDR_20' ) start [2025-04-10 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877524', 'tblTempVendorCDR_20' ) end [2025-04-10 14:34:21] Production.INFO: ProcessCDR(1,14877524,1,1,2) [2025-04-10 14:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877524', 'tblTempUsageDetail_20' ) start [2025-04-10 14:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877524', 'tblTempUsageDetail_20' ) end [2025-04-10 14:34:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 14:34:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 14:34:27] Production.INFO: ==31812== Releasing lock... [2025-04-10 14:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 14:34:27] Production.INFO: 61.5 MB #Memory Used# [2025-04-10 14:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 11:35:06 [end_date_ymd] => 2025-04-10 14:35:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 11:35:06' and `end` < '2025-04-10 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-04-10 14:35:20] Production.INFO: count ==4472 [2025-04-10 14:35:22] Production.ERROR: pbx CDR StartTime 2025-04-10 11:35:06 - End Time 2025-04-10 14:35:06 [2025-04-10 14:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 14:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877529', 'tblTempUsageDetail_20' ) start [2025-04-10 14:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877529', 'tblTempUsageDetail_20' ) end [2025-04-10 14:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877529', 'tblTempVendorCDR_20' ) start [2025-04-10 14:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877529', 'tblTempVendorCDR_20' ) end [2025-04-10 14:35:22] Production.INFO: ProcessCDR(1,14877529,1,1,2) [2025-04-10 14:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877529', 'tblTempUsageDetail_20' ) start [2025-04-10 14:35:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877529', 'tblTempUsageDetail_20' ) end [2025-04-10 14:35:28] Production.ERROR: pbx prc_insertCDR start [2025-04-10 14:35:28] Production.ERROR: pbx prc_insertCDR end [2025-04-10 14:35:28] Production.INFO: ==31887== Releasing lock... [2025-04-10 14:35:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 14:35:28] Production.INFO: 61.5 MB #Memory Used# [2025-04-10 14:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 11:36:06 [end_date_ymd] => 2025-04-10 14:36:06 [RateCDR] => 1 ) [2025-04-10 14:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 11:36:06' and `end` < '2025-04-10 14:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 14:36:19] Production.INFO: count ==4463 [2025-04-10 14:36:21] Production.ERROR: pbx CDR StartTime 2025-04-10 11:36:06 - End Time 2025-04-10 14:36:06 [2025-04-10 14:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877534', 'tblTempUsageDetail_20' ) start [2025-04-10 14:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877534', 'tblTempUsageDetail_20' ) end [2025-04-10 14:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877534', 'tblTempVendorCDR_20' ) start [2025-04-10 14:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877534', 'tblTempVendorCDR_20' ) end [2025-04-10 14:36:22] Production.INFO: ProcessCDR(1,14877534,1,1,2) [2025-04-10 14:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:36:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877534', 'tblTempUsageDetail_20' ) start [2025-04-10 14:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877534', 'tblTempUsageDetail_20' ) end [2025-04-10 14:36:28] Production.ERROR: pbx prc_insertCDR start [2025-04-10 14:36:28] Production.ERROR: pbx prc_insertCDR end [2025-04-10 14:36:28] Production.INFO: ==31960== Releasing lock... [2025-04-10 14:36:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 14:36:28] Production.INFO: 61.75 MB #Memory Used# [2025-04-10 14:37:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 11:37:07 [end_date_ymd] => 2025-04-10 14:37:07 [RateCDR] => 1 ) [2025-04-10 14:37: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-04-10 11:37:07' and `end` < '2025-04-10 14:37: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-04-10 14:37:21] Production.INFO: count ==4467 [2025-04-10 14:37:24] Production.ERROR: pbx CDR StartTime 2025-04-10 11:37:07 - End Time 2025-04-10 14:37:07 [2025-04-10 14:37:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 14:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877539', 'tblTempUsageDetail_20' ) start [2025-04-10 14:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877539', 'tblTempUsageDetail_20' ) end [2025-04-10 14:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877539', 'tblTempVendorCDR_20' ) start [2025-04-10 14:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877539', 'tblTempVendorCDR_20' ) end [2025-04-10 14:37:24] Production.INFO: ProcessCDR(1,14877539,1,1,2) [2025-04-10 14:37:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:37:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:37:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:37:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:37:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877539', 'tblTempUsageDetail_20' ) start [2025-04-10 14:37:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877539', 'tblTempUsageDetail_20' ) end [2025-04-10 14:37:30] Production.ERROR: pbx prc_insertCDR start [2025-04-10 14:37:30] Production.ERROR: pbx prc_insertCDR end [2025-04-10 14:37:30] Production.INFO: ==32075== Releasing lock... [2025-04-10 14:37:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 14:37:30] Production.INFO: 61.5 MB #Memory Used# [2025-04-10 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 11:38:05 [end_date_ymd] => 2025-04-10 14:38:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 11:38:05' and `end` < '2025-04-10 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-04-10 14:38:19] Production.INFO: count ==4469 [2025-04-10 14:38:21] Production.ERROR: pbx CDR StartTime 2025-04-10 11:38:05 - End Time 2025-04-10 14:38:05 [2025-04-10 14:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 14:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877544', 'tblTempUsageDetail_20' ) start [2025-04-10 14:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877544', 'tblTempUsageDetail_20' ) end [2025-04-10 14:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877544', 'tblTempVendorCDR_20' ) start [2025-04-10 14:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877544', 'tblTempVendorCDR_20' ) end [2025-04-10 14:38:21] Production.INFO: ProcessCDR(1,14877544,1,1,2) [2025-04-10 14:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877544', 'tblTempUsageDetail_20' ) start [2025-04-10 14:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877544', 'tblTempUsageDetail_20' ) end [2025-04-10 14:38:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 14:38:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 14:38:27] Production.INFO: ==32145== Releasing lock... [2025-04-10 14:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 14:38:27] Production.INFO: 61.5 MB #Memory Used# [2025-04-10 14:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 11:39:06 [end_date_ymd] => 2025-04-10 14:39:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 11:39:06' and `end` < '2025-04-10 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-04-10 14:39:20] Production.INFO: count ==4472 [2025-04-10 14:39:22] Production.ERROR: pbx CDR StartTime 2025-04-10 11:39:06 - End Time 2025-04-10 14:39:06 [2025-04-10 14:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 14:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877549', 'tblTempUsageDetail_20' ) start [2025-04-10 14:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877549', 'tblTempUsageDetail_20' ) end [2025-04-10 14:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877549', 'tblTempVendorCDR_20' ) start [2025-04-10 14:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877549', 'tblTempVendorCDR_20' ) end [2025-04-10 14:39:22] Production.INFO: ProcessCDR(1,14877549,1,1,2) [2025-04-10 14:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877549', 'tblTempUsageDetail_20' ) start [2025-04-10 14:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877549', 'tblTempUsageDetail_20' ) end [2025-04-10 14:39:28] Production.ERROR: pbx prc_insertCDR start [2025-04-10 14:39:28] Production.ERROR: pbx prc_insertCDR end [2025-04-10 14:39:28] Production.INFO: ==32218== Releasing lock... [2025-04-10 14:39:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 14:39:28] Production.INFO: 61.5 MB #Memory Used# [2025-04-10 14:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 11:40:06 [end_date_ymd] => 2025-04-10 14:40:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 11:40:06' and `end` < '2025-04-10 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-04-10 14:40:20] Production.INFO: count ==4457 [2025-04-10 14:40:22] Production.ERROR: pbx CDR StartTime 2025-04-10 11:40:06 - End Time 2025-04-10 14:40:06 [2025-04-10 14:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 14:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877554', 'tblTempUsageDetail_20' ) start [2025-04-10 14:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877554', 'tblTempUsageDetail_20' ) end [2025-04-10 14:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877554', 'tblTempVendorCDR_20' ) start [2025-04-10 14:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877554', 'tblTempVendorCDR_20' ) end [2025-04-10 14:40:23] Production.INFO: ProcessCDR(1,14877554,1,1,2) [2025-04-10 14:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:40:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:40:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877554', 'tblTempUsageDetail_20' ) start [2025-04-10 14:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877554', 'tblTempUsageDetail_20' ) end [2025-04-10 14:40:28] Production.ERROR: pbx prc_insertCDR start [2025-04-10 14:40:28] Production.ERROR: pbx prc_insertCDR end [2025-04-10 14:40:28] Production.INFO: ==32300== Releasing lock... [2025-04-10 14:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 14:40:28] Production.INFO: 61.25 MB #Memory Used# [2025-04-10 14:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 11:41:06 [end_date_ymd] => 2025-04-10 14:41:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 11:41:06' and `end` < '2025-04-10 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-04-10 14:41:19] Production.INFO: count ==4468 [2025-04-10 14:41:21] Production.ERROR: pbx CDR StartTime 2025-04-10 11:41:06 - End Time 2025-04-10 14:41:06 [2025-04-10 14:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877560', 'tblTempUsageDetail_20' ) start [2025-04-10 14:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877560', 'tblTempUsageDetail_20' ) end [2025-04-10 14:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877560', 'tblTempVendorCDR_20' ) start [2025-04-10 14:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877560', 'tblTempVendorCDR_20' ) end [2025-04-10 14:41:22] Production.INFO: ProcessCDR(1,14877560,1,1,2) [2025-04-10 14:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877560', 'tblTempUsageDetail_20' ) start [2025-04-10 14:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877560', 'tblTempUsageDetail_20' ) end [2025-04-10 14:41:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 14:41:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 14:41:27] Production.INFO: ==32382== Releasing lock... [2025-04-10 14:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 14:41:27] Production.INFO: 61.5 MB #Memory Used# [2025-04-10 14:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 11:42:06 [end_date_ymd] => 2025-04-10 14:42:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 11:42:06' and `end` < '2025-04-10 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-04-10 14:42:19] Production.INFO: count ==4468 [2025-04-10 14:42:21] Production.ERROR: pbx CDR StartTime 2025-04-10 11:42:06 - End Time 2025-04-10 14:42:06 [2025-04-10 14:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877565', 'tblTempUsageDetail_20' ) start [2025-04-10 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877565', 'tblTempUsageDetail_20' ) end [2025-04-10 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877565', 'tblTempVendorCDR_20' ) start [2025-04-10 14:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877565', 'tblTempVendorCDR_20' ) end [2025-04-10 14:42:22] Production.INFO: ProcessCDR(1,14877565,1,1,2) [2025-04-10 14:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877565', 'tblTempUsageDetail_20' ) start [2025-04-10 14:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877565', 'tblTempUsageDetail_20' ) end [2025-04-10 14:42:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 14:42:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 14:42:27] Production.INFO: ==32460== Releasing lock... [2025-04-10 14:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 14:42:27] Production.INFO: 61.5 MB #Memory Used# [2025-04-10 14:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 11:43:05 [end_date_ymd] => 2025-04-10 14:43:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 11:43:05' and `end` < '2025-04-10 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-04-10 14:43:19] Production.INFO: count ==4461 [2025-04-10 14:43:21] Production.ERROR: pbx CDR StartTime 2025-04-10 11:43:05 - End Time 2025-04-10 14:43:05 [2025-04-10 14:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877570', 'tblTempUsageDetail_20' ) start [2025-04-10 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877570', 'tblTempUsageDetail_20' ) end [2025-04-10 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877570', 'tblTempVendorCDR_20' ) start [2025-04-10 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877570', 'tblTempVendorCDR_20' ) end [2025-04-10 14:43:21] Production.INFO: ProcessCDR(1,14877570,1,1,2) [2025-04-10 14:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877570', 'tblTempUsageDetail_20' ) start [2025-04-10 14:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877570', 'tblTempUsageDetail_20' ) end [2025-04-10 14:43:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 14:43:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 14:43:27] Production.INFO: ==32531== Releasing lock... [2025-04-10 14:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 14:43:27] Production.INFO: 61.5 MB #Memory Used# [2025-04-10 14:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 11:44:06 [end_date_ymd] => 2025-04-10 14:44:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 11:44:06' and `end` < '2025-04-10 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-04-10 14:44:19] Production.INFO: count ==4431 [2025-04-10 14:44:21] Production.ERROR: pbx CDR StartTime 2025-04-10 11:44:06 - End Time 2025-04-10 14:44:06 [2025-04-10 14:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877575', 'tblTempUsageDetail_20' ) start [2025-04-10 14:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877575', 'tblTempUsageDetail_20' ) end [2025-04-10 14:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877575', 'tblTempVendorCDR_20' ) start [2025-04-10 14:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877575', 'tblTempVendorCDR_20' ) end [2025-04-10 14:44:22] Production.INFO: ProcessCDR(1,14877575,1,1,2) [2025-04-10 14:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877575', 'tblTempUsageDetail_20' ) start [2025-04-10 14:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877575', 'tblTempUsageDetail_20' ) end [2025-04-10 14:44:28] Production.ERROR: pbx prc_insertCDR start [2025-04-10 14:44:28] Production.ERROR: pbx prc_insertCDR end [2025-04-10 14:44:28] Production.INFO: ==32604== Releasing lock... [2025-04-10 14:44:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 14:44:28] Production.INFO: 61.25 MB #Memory Used# [2025-04-10 14:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 11:45:05 [end_date_ymd] => 2025-04-10 14:45:05 [RateCDR] => 1 ) [2025-04-10 14:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 11:45:05' and `end` < '2025-04-10 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-04-10 14:45:20] Production.INFO: count ==4440 [2025-04-10 14:45:22] Production.ERROR: pbx CDR StartTime 2025-04-10 11:45:05 - End Time 2025-04-10 14:45:05 [2025-04-10 14:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877580', 'tblTempUsageDetail_20' ) start [2025-04-10 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877580', 'tblTempUsageDetail_20' ) end [2025-04-10 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877580', 'tblTempVendorCDR_20' ) start [2025-04-10 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877580', 'tblTempVendorCDR_20' ) end [2025-04-10 14:45:22] Production.INFO: ProcessCDR(1,14877580,1,1,2) [2025-04-10 14:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:45:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877580', 'tblTempUsageDetail_20' ) start [2025-04-10 14:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877580', 'tblTempUsageDetail_20' ) end [2025-04-10 14:45:28] Production.ERROR: pbx prc_insertCDR start [2025-04-10 14:45:28] Production.ERROR: pbx prc_insertCDR end [2025-04-10 14:45:28] Production.INFO: ==32678== Releasing lock... [2025-04-10 14:45:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 14:45:28] Production.INFO: 61.25 MB #Memory Used# [2025-04-10 14:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 11:46:06 [end_date_ymd] => 2025-04-10 14:46:06 [RateCDR] => 1 ) [2025-04-10 14:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 11:46:06' and `end` < '2025-04-10 14:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 14:46:20] Production.INFO: count ==4402 [2025-04-10 14:46:22] Production.ERROR: pbx CDR StartTime 2025-04-10 11:46:06 - End Time 2025-04-10 14:46:06 [2025-04-10 14:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 14:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877585', 'tblTempUsageDetail_20' ) start [2025-04-10 14:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877585', 'tblTempUsageDetail_20' ) end [2025-04-10 14:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877585', 'tblTempVendorCDR_20' ) start [2025-04-10 14:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877585', 'tblTempVendorCDR_20' ) end [2025-04-10 14:46:22] Production.INFO: ProcessCDR(1,14877585,1,1,2) [2025-04-10 14:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:46:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877585', 'tblTempUsageDetail_20' ) start [2025-04-10 14:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877585', 'tblTempUsageDetail_20' ) end [2025-04-10 14:46:28] Production.ERROR: pbx prc_insertCDR start [2025-04-10 14:46:28] Production.ERROR: pbx prc_insertCDR end [2025-04-10 14:46:28] Production.INFO: ==32751== Releasing lock... [2025-04-10 14:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 14:46:28] Production.INFO: 61 MB #Memory Used# [2025-04-10 14:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 11:47:05 [end_date_ymd] => 2025-04-10 14:47:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 11:47:05' and `end` < '2025-04-10 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-04-10 14:47:19] Production.INFO: count ==4396 [2025-04-10 14:47:22] Production.ERROR: pbx CDR StartTime 2025-04-10 11:47:05 - End Time 2025-04-10 14:47:05 [2025-04-10 14:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 14:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877590', 'tblTempUsageDetail_20' ) start [2025-04-10 14:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877590', 'tblTempUsageDetail_20' ) end [2025-04-10 14:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877590', 'tblTempVendorCDR_20' ) start [2025-04-10 14:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877590', 'tblTempVendorCDR_20' ) end [2025-04-10 14:47:22] Production.INFO: ProcessCDR(1,14877590,1,1,2) [2025-04-10 14:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:47:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:47:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:47:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877590', 'tblTempUsageDetail_20' ) start [2025-04-10 14:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877590', 'tblTempUsageDetail_20' ) end [2025-04-10 14:47:29] Production.ERROR: pbx prc_insertCDR start [2025-04-10 14:47:29] Production.ERROR: pbx prc_insertCDR end [2025-04-10 14:47:29] Production.INFO: ==442== Releasing lock... [2025-04-10 14:47:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 14:47:29] Production.INFO: 61 MB #Memory Used# [2025-04-10 14:48:08] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 11:48:08 [end_date_ymd] => 2025-04-10 14:48:08 [RateCDR] => 1 ) [2025-04-10 14:48:08] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 11:48:08' and `end` < '2025-04-10 14:48:08' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 14:48:21] Production.INFO: count ==4383 [2025-04-10 14:48:23] Production.ERROR: pbx CDR StartTime 2025-04-10 11:48:08 - End Time 2025-04-10 14:48:08 [2025-04-10 14:48:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 14:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877595', 'tblTempUsageDetail_20' ) start [2025-04-10 14:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877595', 'tblTempUsageDetail_20' ) end [2025-04-10 14:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877595', 'tblTempVendorCDR_20' ) start [2025-04-10 14:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877595', 'tblTempVendorCDR_20' ) end [2025-04-10 14:48:24] Production.INFO: ProcessCDR(1,14877595,1,1,2) [2025-04-10 14:48:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:48:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:48:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:48:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877595', 'tblTempUsageDetail_20' ) start [2025-04-10 14:48:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877595', 'tblTempUsageDetail_20' ) end [2025-04-10 14:48:30] Production.ERROR: pbx prc_insertCDR start [2025-04-10 14:48:30] Production.ERROR: pbx prc_insertCDR end [2025-04-10 14:48:30] Production.INFO: ==521== Releasing lock... [2025-04-10 14:48:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 14:48:30] Production.INFO: 60.75 MB #Memory Used# [2025-04-10 14:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 11:49:05 [end_date_ymd] => 2025-04-10 14:49:05 [RateCDR] => 1 ) [2025-04-10 14:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 11:49:05' and `end` < '2025-04-10 14:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 14:49:18] Production.INFO: count ==4387 [2025-04-10 14:49:20] Production.ERROR: pbx CDR StartTime 2025-04-10 11:49:05 - End Time 2025-04-10 14:49:05 [2025-04-10 14:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 14:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877600', 'tblTempUsageDetail_20' ) start [2025-04-10 14:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877600', 'tblTempUsageDetail_20' ) end [2025-04-10 14:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877600', 'tblTempVendorCDR_20' ) start [2025-04-10 14:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877600', 'tblTempVendorCDR_20' ) end [2025-04-10 14:49:20] Production.INFO: ProcessCDR(1,14877600,1,1,2) [2025-04-10 14:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877600', 'tblTempUsageDetail_20' ) start [2025-04-10 14:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877600', 'tblTempUsageDetail_20' ) end [2025-04-10 14:49:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 14:49:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 14:49:26] Production.INFO: ==592== Releasing lock... [2025-04-10 14:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 14:49:26] Production.INFO: 60.75 MB #Memory Used# [2025-04-10 14:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 11:50:06 [end_date_ymd] => 2025-04-10 14:50:06 [RateCDR] => 1 ) [2025-04-10 14:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 11:50:06' and `end` < '2025-04-10 14:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 14:50:20] Production.INFO: count ==4407 [2025-04-10 14:50:22] Production.ERROR: pbx CDR StartTime 2025-04-10 11:50:06 - End Time 2025-04-10 14:50:06 [2025-04-10 14:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877605', 'tblTempUsageDetail_20' ) start [2025-04-10 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877605', 'tblTempUsageDetail_20' ) end [2025-04-10 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877605', 'tblTempVendorCDR_20' ) start [2025-04-10 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877605', 'tblTempVendorCDR_20' ) end [2025-04-10 14:50:22] Production.INFO: ProcessCDR(1,14877605,1,1,2) [2025-04-10 14:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877605', 'tblTempUsageDetail_20' ) start [2025-04-10 14:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877605', 'tblTempUsageDetail_20' ) end [2025-04-10 14:50:28] Production.ERROR: pbx prc_insertCDR start [2025-04-10 14:50:28] Production.ERROR: pbx prc_insertCDR end [2025-04-10 14:50:28] Production.INFO: ==691== Releasing lock... [2025-04-10 14:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 14:50:28] Production.INFO: 61 MB #Memory Used# [2025-04-10 14:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 11:51:06 [end_date_ymd] => 2025-04-10 14:51:06 [RateCDR] => 1 ) [2025-04-10 14: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-04-10 11:51:06' and `end` < '2025-04-10 14: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-04-10 14:51:20] Production.INFO: count ==4447 [2025-04-10 14:51:21] Production.ERROR: pbx CDR StartTime 2025-04-10 11:51:06 - End Time 2025-04-10 14:51:06 [2025-04-10 14:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877611', 'tblTempUsageDetail_20' ) start [2025-04-10 14:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877611', 'tblTempUsageDetail_20' ) end [2025-04-10 14:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877611', 'tblTempVendorCDR_20' ) start [2025-04-10 14:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877611', 'tblTempVendorCDR_20' ) end [2025-04-10 14:51:22] Production.INFO: ProcessCDR(1,14877611,1,1,2) [2025-04-10 14:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877611', 'tblTempUsageDetail_20' ) start [2025-04-10 14:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877611', 'tblTempUsageDetail_20' ) end [2025-04-10 14:51:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 14:51:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 14:51:27] Production.INFO: ==774== Releasing lock... [2025-04-10 14:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 14:51:27] Production.INFO: 61.25 MB #Memory Used# [2025-04-10 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 11:52:05 [end_date_ymd] => 2025-04-10 14:52:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 11:52:05' and `end` < '2025-04-10 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-04-10 14:52:19] Production.INFO: count ==4471 [2025-04-10 14:52:21] Production.ERROR: pbx CDR StartTime 2025-04-10 11:52:05 - End Time 2025-04-10 14:52:05 [2025-04-10 14:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877616', 'tblTempUsageDetail_20' ) start [2025-04-10 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877616', 'tblTempUsageDetail_20' ) end [2025-04-10 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877616', 'tblTempVendorCDR_20' ) start [2025-04-10 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877616', 'tblTempVendorCDR_20' ) end [2025-04-10 14:52:21] Production.INFO: ProcessCDR(1,14877616,1,1,2) [2025-04-10 14:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877616', 'tblTempUsageDetail_20' ) start [2025-04-10 14:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877616', 'tblTempUsageDetail_20' ) end [2025-04-10 14:52:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 14:52:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 14:52:26] Production.INFO: ==849== Releasing lock... [2025-04-10 14:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 14:52:26] Production.INFO: 61.5 MB #Memory Used# [2025-04-10 14:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 11:53:06 [end_date_ymd] => 2025-04-10 14:53:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 11:53:06' and `end` < '2025-04-10 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-04-10 14:53:20] Production.INFO: count ==4481 [2025-04-10 14:53:22] Production.ERROR: pbx CDR StartTime 2025-04-10 11:53:06 - End Time 2025-04-10 14:53:06 [2025-04-10 14:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 14:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877621', 'tblTempUsageDetail_20' ) start [2025-04-10 14:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877621', 'tblTempUsageDetail_20' ) end [2025-04-10 14:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877621', 'tblTempVendorCDR_20' ) start [2025-04-10 14:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877621', 'tblTempVendorCDR_20' ) end [2025-04-10 14:53:22] Production.INFO: ProcessCDR(1,14877621,1,1,2) [2025-04-10 14:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:53:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:53:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877621', 'tblTempUsageDetail_20' ) start [2025-04-10 14:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877621', 'tblTempUsageDetail_20' ) end [2025-04-10 14:53:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 14:53:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 14:53:27] Production.INFO: ==959== Releasing lock... [2025-04-10 14:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 14:53:27] Production.INFO: 61.5 MB #Memory Used# [2025-04-10 14:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 11:54:06 [end_date_ymd] => 2025-04-10 14:54:06 [RateCDR] => 1 ) [2025-04-10 14:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 11:54:06' and `end` < '2025-04-10 14:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 14:54:19] Production.INFO: count ==4490 [2025-04-10 14:54:21] Production.ERROR: pbx CDR StartTime 2025-04-10 11:54:06 - End Time 2025-04-10 14:54:06 [2025-04-10 14:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877626', 'tblTempUsageDetail_20' ) start [2025-04-10 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877626', 'tblTempUsageDetail_20' ) end [2025-04-10 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877626', 'tblTempVendorCDR_20' ) start [2025-04-10 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877626', 'tblTempVendorCDR_20' ) end [2025-04-10 14:54:21] Production.INFO: ProcessCDR(1,14877626,1,1,2) [2025-04-10 14:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877626', 'tblTempUsageDetail_20' ) start [2025-04-10 14:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877626', 'tblTempUsageDetail_20' ) end [2025-04-10 14:54:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 14:54:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 14:54:27] Production.INFO: ==1036== Releasing lock... [2025-04-10 14:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 14:54:27] Production.INFO: 61.5 MB #Memory Used# [2025-04-10 14:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 11:55:05 [end_date_ymd] => 2025-04-10 14:55:05 [RateCDR] => 1 ) [2025-04-10 14:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 11:55:05' and `end` < '2025-04-10 14:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 14:55:19] Production.INFO: count ==4490 [2025-04-10 14:55:21] Production.ERROR: pbx CDR StartTime 2025-04-10 11:55:05 - End Time 2025-04-10 14:55:05 [2025-04-10 14:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877631', 'tblTempUsageDetail_20' ) start [2025-04-10 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877631', 'tblTempUsageDetail_20' ) end [2025-04-10 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877631', 'tblTempVendorCDR_20' ) start [2025-04-10 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877631', 'tblTempVendorCDR_20' ) end [2025-04-10 14:55:21] Production.INFO: ProcessCDR(1,14877631,1,1,2) [2025-04-10 14:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877631', 'tblTempUsageDetail_20' ) start [2025-04-10 14:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877631', 'tblTempUsageDetail_20' ) end [2025-04-10 14:55:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 14:55:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 14:55:26] Production.INFO: ==1111== Releasing lock... [2025-04-10 14:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 14:55:26] Production.INFO: 61.5 MB #Memory Used# [2025-04-10 14:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 11:56:05 [end_date_ymd] => 2025-04-10 14:56:05 [RateCDR] => 1 ) [2025-04-10 14:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 11:56:05' and `end` < '2025-04-10 14:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 14:56:19] Production.INFO: count ==4478 [2025-04-10 14:56:21] Production.ERROR: pbx CDR StartTime 2025-04-10 11:56:05 - End Time 2025-04-10 14:56:05 [2025-04-10 14:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 14:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877636', 'tblTempUsageDetail_20' ) start [2025-04-10 14:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877636', 'tblTempUsageDetail_20' ) end [2025-04-10 14:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877636', 'tblTempVendorCDR_20' ) start [2025-04-10 14:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877636', 'tblTempVendorCDR_20' ) end [2025-04-10 14:56:21] Production.INFO: ProcessCDR(1,14877636,1,1,2) [2025-04-10 14:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877636', 'tblTempUsageDetail_20' ) start [2025-04-10 14:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877636', 'tblTempUsageDetail_20' ) end [2025-04-10 14:56:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 14:56:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 14:56:26] Production.INFO: ==1191== Releasing lock... [2025-04-10 14:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 14:56:26] Production.INFO: 61.5 MB #Memory Used# [2025-04-10 14:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 11:57:06 [end_date_ymd] => 2025-04-10 14:57:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 11:57:06' and `end` < '2025-04-10 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-04-10 14:57:19] Production.INFO: count ==4489 [2025-04-10 14:57:21] Production.ERROR: pbx CDR StartTime 2025-04-10 11:57:06 - End Time 2025-04-10 14:57:06 [2025-04-10 14:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877641', 'tblTempUsageDetail_20' ) start [2025-04-10 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877641', 'tblTempUsageDetail_20' ) end [2025-04-10 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877641', 'tblTempVendorCDR_20' ) start [2025-04-10 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877641', 'tblTempVendorCDR_20' ) end [2025-04-10 14:57:21] Production.INFO: ProcessCDR(1,14877641,1,1,2) [2025-04-10 14:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877641', 'tblTempUsageDetail_20' ) start [2025-04-10 14:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877641', 'tblTempUsageDetail_20' ) end [2025-04-10 14:57:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 14:57:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 14:57:27] Production.INFO: ==1283== Releasing lock... [2025-04-10 14:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 14:57:27] Production.INFO: 61.5 MB #Memory Used# [2025-04-10 14:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 11:58:05 [end_date_ymd] => 2025-04-10 14:58:05 [RateCDR] => 1 ) [2025-04-10 14:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 11:58:05' and `end` < '2025-04-10 14:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 14:58:19] Production.INFO: count ==4470 [2025-04-10 14:58:21] Production.ERROR: pbx CDR StartTime 2025-04-10 11:58:05 - End Time 2025-04-10 14:58:05 [2025-04-10 14:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877646', 'tblTempUsageDetail_20' ) start [2025-04-10 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877646', 'tblTempUsageDetail_20' ) end [2025-04-10 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877646', 'tblTempVendorCDR_20' ) start [2025-04-10 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877646', 'tblTempVendorCDR_20' ) end [2025-04-10 14:58:21] Production.INFO: ProcessCDR(1,14877646,1,1,2) [2025-04-10 14:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877646', 'tblTempUsageDetail_20' ) start [2025-04-10 14:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877646', 'tblTempUsageDetail_20' ) end [2025-04-10 14:58:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 14:58:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 14:58:26] Production.INFO: ==1356== Releasing lock... [2025-04-10 14:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 14:58:26] Production.INFO: 61.5 MB #Memory Used# [2025-04-10 14:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 11:59:06 [end_date_ymd] => 2025-04-10 14:59:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 11:59:06' and `end` < '2025-04-10 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-04-10 14:59:20] Production.INFO: count ==4444 [2025-04-10 14:59:21] Production.ERROR: pbx CDR StartTime 2025-04-10 11:59:06 - End Time 2025-04-10 14:59:06 [2025-04-10 14:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877651', 'tblTempUsageDetail_20' ) start [2025-04-10 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877651', 'tblTempUsageDetail_20' ) end [2025-04-10 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877651', 'tblTempVendorCDR_20' ) start [2025-04-10 14:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877651', 'tblTempVendorCDR_20' ) end [2025-04-10 14:59:22] Production.INFO: ProcessCDR(1,14877651,1,1,2) [2025-04-10 14:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 14:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 14:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877651', 'tblTempUsageDetail_20' ) start [2025-04-10 14:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877651', 'tblTempUsageDetail_20' ) end [2025-04-10 14:59:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 14:59:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 14:59:27] Production.INFO: ==1434== Releasing lock... [2025-04-10 14:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 14:59:27] Production.INFO: 61.25 MB #Memory Used# [2025-04-10 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 12:00:06 [end_date_ymd] => 2025-04-10 15:00:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 12:00:06' and `end` < '2025-04-10 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-04-10 15:00:20] Production.INFO: count ==4421 [2025-04-10 15:00:22] Production.ERROR: pbx CDR StartTime 2025-04-10 12:00:06 - End Time 2025-04-10 15:00:06 [2025-04-10 15:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877656', 'tblTempUsageDetail_20' ) start [2025-04-10 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877656', 'tblTempUsageDetail_20' ) end [2025-04-10 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877656', 'tblTempVendorCDR_20' ) start [2025-04-10 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877656', 'tblTempVendorCDR_20' ) end [2025-04-10 15:00:22] Production.INFO: ProcessCDR(1,14877656,1,1,2) [2025-04-10 15:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877656', 'tblTempUsageDetail_20' ) start [2025-04-10 15:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877656', 'tblTempUsageDetail_20' ) end [2025-04-10 15:00:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 15:00:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 15:00:27] Production.INFO: ==1542== Releasing lock... [2025-04-10 15:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 15:00:27] Production.INFO: 61 MB #Memory Used# [2025-04-10 15:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 12:01:06 [end_date_ymd] => 2025-04-10 15:01:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 12:01:06' and `end` < '2025-04-10 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-04-10 15:01:20] Production.INFO: count ==4413 [2025-04-10 15:01:21] Production.ERROR: pbx CDR StartTime 2025-04-10 12:01:06 - End Time 2025-04-10 15:01:06 [2025-04-10 15:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877662', 'tblTempUsageDetail_20' ) start [2025-04-10 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877662', 'tblTempUsageDetail_20' ) end [2025-04-10 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877662', 'tblTempVendorCDR_20' ) start [2025-04-10 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877662', 'tblTempVendorCDR_20' ) end [2025-04-10 15:01:21] Production.INFO: ProcessCDR(1,14877662,1,1,2) [2025-04-10 15:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877662', 'tblTempUsageDetail_20' ) start [2025-04-10 15:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877662', 'tblTempUsageDetail_20' ) end [2025-04-10 15:01:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 15:01:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 15:01:27] Production.INFO: ==1675== Releasing lock... [2025-04-10 15:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 15:01:27] Production.INFO: 61 MB #Memory Used# [2025-04-10 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 12:02:05 [end_date_ymd] => 2025-04-10 15:02:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 12:02:05' and `end` < '2025-04-10 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-04-10 15:02:19] Production.INFO: count ==4405 [2025-04-10 15:02:21] Production.ERROR: pbx CDR StartTime 2025-04-10 12:02:05 - End Time 2025-04-10 15:02:05 [2025-04-10 15:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 15:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877667', 'tblTempUsageDetail_20' ) start [2025-04-10 15:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877667', 'tblTempUsageDetail_20' ) end [2025-04-10 15:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877667', 'tblTempVendorCDR_20' ) start [2025-04-10 15:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877667', 'tblTempVendorCDR_20' ) end [2025-04-10 15:02:21] Production.INFO: ProcessCDR(1,14877667,1,1,2) [2025-04-10 15:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877667', 'tblTempUsageDetail_20' ) start [2025-04-10 15:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877667', 'tblTempUsageDetail_20' ) end [2025-04-10 15:02:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 15:02:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 15:02:26] Production.INFO: ==1791== Releasing lock... [2025-04-10 15:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 15:02:26] Production.INFO: 61 MB #Memory Used# [2025-04-10 15:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 12:03:05 [end_date_ymd] => 2025-04-10 15:03:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 12:03:05' and `end` < '2025-04-10 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-04-10 15:03:19] Production.INFO: count ==4401 [2025-04-10 15:03:21] Production.ERROR: pbx CDR StartTime 2025-04-10 12:03:05 - End Time 2025-04-10 15:03:05 [2025-04-10 15:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 15:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877672', 'tblTempUsageDetail_20' ) start [2025-04-10 15:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877672', 'tblTempUsageDetail_20' ) end [2025-04-10 15:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877672', 'tblTempVendorCDR_20' ) start [2025-04-10 15:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877672', 'tblTempVendorCDR_20' ) end [2025-04-10 15:03:21] Production.INFO: ProcessCDR(1,14877672,1,1,2) [2025-04-10 15:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877672', 'tblTempUsageDetail_20' ) start [2025-04-10 15:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877672', 'tblTempUsageDetail_20' ) end [2025-04-10 15:03:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 15:03:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 15:03:26] Production.INFO: ==1870== Releasing lock... [2025-04-10 15:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 15:03:26] Production.INFO: 61 MB #Memory Used# [2025-04-10 15:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 12:04:05 [end_date_ymd] => 2025-04-10 15:04:05 [RateCDR] => 1 ) [2025-04-10 15:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 12:04:05' and `end` < '2025-04-10 15:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 15:04:19] Production.INFO: count ==4395 [2025-04-10 15:04:21] Production.ERROR: pbx CDR StartTime 2025-04-10 12:04:05 - End Time 2025-04-10 15:04:05 [2025-04-10 15:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 15:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877677', 'tblTempUsageDetail_20' ) start [2025-04-10 15:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877677', 'tblTempUsageDetail_20' ) end [2025-04-10 15:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877677', 'tblTempVendorCDR_20' ) start [2025-04-10 15:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877677', 'tblTempVendorCDR_20' ) end [2025-04-10 15:04:21] Production.INFO: ProcessCDR(1,14877677,1,1,2) [2025-04-10 15:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877677', 'tblTempUsageDetail_20' ) start [2025-04-10 15:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877677', 'tblTempUsageDetail_20' ) end [2025-04-10 15:04:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 15:04:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 15:04:27] Production.INFO: ==1943== Releasing lock... [2025-04-10 15:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 15:04:27] Production.INFO: 61 MB #Memory Used# [2025-04-10 15:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 12:05:06 [end_date_ymd] => 2025-04-10 15:05:06 [RateCDR] => 1 ) [2025-04-10 15:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 12:05:06' and `end` < '2025-04-10 15:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 15:05:19] Production.INFO: count ==4382 [2025-04-10 15:05:21] Production.ERROR: pbx CDR StartTime 2025-04-10 12:05:06 - End Time 2025-04-10 15:05:06 [2025-04-10 15:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 15:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877682', 'tblTempUsageDetail_20' ) start [2025-04-10 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877682', 'tblTempUsageDetail_20' ) end [2025-04-10 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877682', 'tblTempVendorCDR_20' ) start [2025-04-10 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877682', 'tblTempVendorCDR_20' ) end [2025-04-10 15:05:22] Production.INFO: ProcessCDR(1,14877682,1,1,2) [2025-04-10 15:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877682', 'tblTempUsageDetail_20' ) start [2025-04-10 15:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877682', 'tblTempUsageDetail_20' ) end [2025-04-10 15:05:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 15:05:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 15:05:27] Production.INFO: ==2095== Releasing lock... [2025-04-10 15:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 15:05:27] Production.INFO: 60.75 MB #Memory Used# [2025-04-10 15:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 12:06:05 [end_date_ymd] => 2025-04-10 15:06:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 12:06:05' and `end` < '2025-04-10 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-04-10 15:06:19] Production.INFO: count ==4365 [2025-04-10 15:06:21] Production.ERROR: pbx CDR StartTime 2025-04-10 12:06:05 - End Time 2025-04-10 15:06:05 [2025-04-10 15:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877687', 'tblTempUsageDetail_20' ) start [2025-04-10 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877687', 'tblTempUsageDetail_20' ) end [2025-04-10 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877687', 'tblTempVendorCDR_20' ) start [2025-04-10 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877687', 'tblTempVendorCDR_20' ) end [2025-04-10 15:06:21] Production.INFO: ProcessCDR(1,14877687,1,1,2) [2025-04-10 15:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877687', 'tblTempUsageDetail_20' ) start [2025-04-10 15:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877687', 'tblTempUsageDetail_20' ) end [2025-04-10 15:06:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 15:06:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 15:06:27] Production.INFO: ==2165== Releasing lock... [2025-04-10 15:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 15:06:27] Production.INFO: 60.75 MB #Memory Used# [2025-04-10 15:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 12:07:06 [end_date_ymd] => 2025-04-10 15:07:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 12:07:06' and `end` < '2025-04-10 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-04-10 15:07:20] Production.INFO: count ==4364 [2025-04-10 15:07:22] Production.ERROR: pbx CDR StartTime 2025-04-10 12:07:06 - End Time 2025-04-10 15:07:06 [2025-04-10 15:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877692', 'tblTempUsageDetail_20' ) start [2025-04-10 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877692', 'tblTempUsageDetail_20' ) end [2025-04-10 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877692', 'tblTempVendorCDR_20' ) start [2025-04-10 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877692', 'tblTempVendorCDR_20' ) end [2025-04-10 15:07:22] Production.INFO: ProcessCDR(1,14877692,1,1,2) [2025-04-10 15:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877692', 'tblTempUsageDetail_20' ) start [2025-04-10 15:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877692', 'tblTempUsageDetail_20' ) end [2025-04-10 15:07:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 15:07:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 15:07:27] Production.INFO: ==2243== Releasing lock... [2025-04-10 15:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 15:07:27] Production.INFO: 60.75 MB #Memory Used# [2025-04-10 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 12:08:05 [end_date_ymd] => 2025-04-10 15:08:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 12:08:05' and `end` < '2025-04-10 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-04-10 15:08:19] Production.INFO: count ==4371 [2025-04-10 15:08:21] Production.ERROR: pbx CDR StartTime 2025-04-10 12:08:05 - End Time 2025-04-10 15:08:05 [2025-04-10 15:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877697', 'tblTempUsageDetail_20' ) start [2025-04-10 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877697', 'tblTempUsageDetail_20' ) end [2025-04-10 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877697', 'tblTempVendorCDR_20' ) start [2025-04-10 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877697', 'tblTempVendorCDR_20' ) end [2025-04-10 15:08:21] Production.INFO: ProcessCDR(1,14877697,1,1,2) [2025-04-10 15:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877697', 'tblTempUsageDetail_20' ) start [2025-04-10 15:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877697', 'tblTempUsageDetail_20' ) end [2025-04-10 15:08:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 15:08:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 15:08:26] Production.INFO: ==2433== Releasing lock... [2025-04-10 15:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 15:08:26] Production.INFO: 60.75 MB #Memory Used# [2025-04-10 15:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 12:09:06 [end_date_ymd] => 2025-04-10 15:09:06 [RateCDR] => 1 ) [2025-04-10 15:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 12:09:06' and `end` < '2025-04-10 15:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 15:09:20] Production.INFO: count ==4384 [2025-04-10 15:09:22] Production.ERROR: pbx CDR StartTime 2025-04-10 12:09:06 - End Time 2025-04-10 15:09:06 [2025-04-10 15:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 15:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877702', 'tblTempUsageDetail_20' ) start [2025-04-10 15:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877702', 'tblTempUsageDetail_20' ) end [2025-04-10 15:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877702', 'tblTempVendorCDR_20' ) start [2025-04-10 15:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877702', 'tblTempVendorCDR_20' ) end [2025-04-10 15:09:22] Production.INFO: ProcessCDR(1,14877702,1,1,2) [2025-04-10 15:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877702', 'tblTempUsageDetail_20' ) start [2025-04-10 15:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877702', 'tblTempUsageDetail_20' ) end [2025-04-10 15:09:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 15:09:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 15:09:27] Production.INFO: ==2509== Releasing lock... [2025-04-10 15:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 15:09:27] Production.INFO: 60.75 MB #Memory Used# [2025-04-10 15:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 12:10:06 [end_date_ymd] => 2025-04-10 15:10:06 [RateCDR] => 1 ) [2025-04-10 15:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 12:10:06' and `end` < '2025-04-10 15:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 15:10:20] Production.INFO: count ==4376 [2025-04-10 15:10:22] Production.ERROR: pbx CDR StartTime 2025-04-10 12:10:06 - End Time 2025-04-10 15:10:06 [2025-04-10 15:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 15:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877708', 'tblTempUsageDetail_20' ) start [2025-04-10 15:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877708', 'tblTempUsageDetail_20' ) end [2025-04-10 15:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877708', 'tblTempVendorCDR_20' ) start [2025-04-10 15:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877708', 'tblTempVendorCDR_20' ) end [2025-04-10 15:10:22] Production.INFO: ProcessCDR(1,14877708,1,1,2) [2025-04-10 15:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877708', 'tblTempUsageDetail_20' ) start [2025-04-10 15:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877708', 'tblTempUsageDetail_20' ) end [2025-04-10 15:10:28] Production.ERROR: pbx prc_insertCDR start [2025-04-10 15:10:28] Production.ERROR: pbx prc_insertCDR end [2025-04-10 15:10:28] Production.INFO: ==2584== Releasing lock... [2025-04-10 15:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 15:10:28] Production.INFO: 60.75 MB #Memory Used# [2025-04-10 15:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 12:11:06 [end_date_ymd] => 2025-04-10 15:11:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 12:11:06' and `end` < '2025-04-10 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-04-10 15:11:19] Production.INFO: count ==4368 [2025-04-10 15:11:21] Production.ERROR: pbx CDR StartTime 2025-04-10 12:11:06 - End Time 2025-04-10 15:11:06 [2025-04-10 15:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877713', 'tblTempUsageDetail_20' ) start [2025-04-10 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877713', 'tblTempUsageDetail_20' ) end [2025-04-10 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877713', 'tblTempVendorCDR_20' ) start [2025-04-10 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877713', 'tblTempVendorCDR_20' ) end [2025-04-10 15:11:21] Production.INFO: ProcessCDR(1,14877713,1,1,2) [2025-04-10 15:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877713', 'tblTempUsageDetail_20' ) start [2025-04-10 15:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877713', 'tblTempUsageDetail_20' ) end [2025-04-10 15:11:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 15:11:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 15:11:27] Production.INFO: ==2663== Releasing lock... [2025-04-10 15:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 15:11:27] Production.INFO: 60.75 MB #Memory Used# [2025-04-10 15:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 12:12:05 [end_date_ymd] => 2025-04-10 15:12:05 [RateCDR] => 1 ) [2025-04-10 15:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 12:12:05' and `end` < '2025-04-10 15:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 15:12:19] Production.INFO: count ==4385 [2025-04-10 15:12:21] Production.ERROR: pbx CDR StartTime 2025-04-10 12:12:05 - End Time 2025-04-10 15:12:05 [2025-04-10 15:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877718', 'tblTempUsageDetail_20' ) start [2025-04-10 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877718', 'tblTempUsageDetail_20' ) end [2025-04-10 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877718', 'tblTempVendorCDR_20' ) start [2025-04-10 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877718', 'tblTempVendorCDR_20' ) end [2025-04-10 15:12:21] Production.INFO: ProcessCDR(1,14877718,1,1,2) [2025-04-10 15:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877718', 'tblTempUsageDetail_20' ) start [2025-04-10 15:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877718', 'tblTempUsageDetail_20' ) end [2025-04-10 15:12:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 15:12:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 15:12:27] Production.INFO: ==2819== Releasing lock... [2025-04-10 15:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 15:12:27] Production.INFO: 60.75 MB #Memory Used# [2025-04-10 15:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 12:13:06 [end_date_ymd] => 2025-04-10 15:13:06 [RateCDR] => 1 ) [2025-04-10 15:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 12:13:06' and `end` < '2025-04-10 15:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 15:13:20] Production.INFO: count ==4393 [2025-04-10 15:13:21] Production.ERROR: pbx CDR StartTime 2025-04-10 12:13:06 - End Time 2025-04-10 15:13:06 [2025-04-10 15:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877723', 'tblTempUsageDetail_20' ) start [2025-04-10 15:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877723', 'tblTempUsageDetail_20' ) end [2025-04-10 15:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877723', 'tblTempVendorCDR_20' ) start [2025-04-10 15:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877723', 'tblTempVendorCDR_20' ) end [2025-04-10 15:13:22] Production.INFO: ProcessCDR(1,14877723,1,1,2) [2025-04-10 15:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877723', 'tblTempUsageDetail_20' ) start [2025-04-10 15:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877723', 'tblTempUsageDetail_20' ) end [2025-04-10 15:13:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 15:13:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 15:13:27] Production.INFO: ==2897== Releasing lock... [2025-04-10 15:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 15:13:27] Production.INFO: 61 MB #Memory Used# [2025-04-10 15:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 12:14:06 [end_date_ymd] => 2025-04-10 15:14:06 [RateCDR] => 1 ) [2025-04-10 15: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-04-10 12:14:06' and `end` < '2025-04-10 15: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-04-10 15:14:20] Production.INFO: count ==4389 [2025-04-10 15:14:21] Production.ERROR: pbx CDR StartTime 2025-04-10 12:14:06 - End Time 2025-04-10 15:14:06 [2025-04-10 15:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877728', 'tblTempUsageDetail_20' ) start [2025-04-10 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877728', 'tblTempUsageDetail_20' ) end [2025-04-10 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877728', 'tblTempVendorCDR_20' ) start [2025-04-10 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877728', 'tblTempVendorCDR_20' ) end [2025-04-10 15:14:21] Production.INFO: ProcessCDR(1,14877728,1,1,2) [2025-04-10 15:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877728', 'tblTempUsageDetail_20' ) start [2025-04-10 15:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877728', 'tblTempUsageDetail_20' ) end [2025-04-10 15:14:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 15:14:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 15:14:27] Production.INFO: ==2983== Releasing lock... [2025-04-10 15:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 15:14:27] Production.INFO: 60.75 MB #Memory Used# [2025-04-10 15:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 12:15:05 [end_date_ymd] => 2025-04-10 15:15:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 12:15:05' and `end` < '2025-04-10 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-04-10 15:15:19] Production.INFO: count ==4381 [2025-04-10 15:15:21] Production.ERROR: pbx CDR StartTime 2025-04-10 12:15:05 - End Time 2025-04-10 15:15:05 [2025-04-10 15:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877733', 'tblTempUsageDetail_20' ) start [2025-04-10 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877733', 'tblTempUsageDetail_20' ) end [2025-04-10 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877733', 'tblTempVendorCDR_20' ) start [2025-04-10 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877733', 'tblTempVendorCDR_20' ) end [2025-04-10 15:15:21] Production.INFO: ProcessCDR(1,14877733,1,1,2) [2025-04-10 15:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877733', 'tblTempUsageDetail_20' ) start [2025-04-10 15:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877733', 'tblTempUsageDetail_20' ) end [2025-04-10 15:15:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 15:15:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 15:15:26] Production.INFO: ==3134== Releasing lock... [2025-04-10 15:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 15:15:26] Production.INFO: 60.75 MB #Memory Used# [2025-04-10 15:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 12:16:05 [end_date_ymd] => 2025-04-10 15:16:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 12:16:05' and `end` < '2025-04-10 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-04-10 15:16:19] Production.INFO: count ==4393 [2025-04-10 15:16:21] Production.ERROR: pbx CDR StartTime 2025-04-10 12:16:05 - End Time 2025-04-10 15:16:05 [2025-04-10 15:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 15:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877738', 'tblTempUsageDetail_20' ) start [2025-04-10 15:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877738', 'tblTempUsageDetail_20' ) end [2025-04-10 15:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877738', 'tblTempVendorCDR_20' ) start [2025-04-10 15:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877738', 'tblTempVendorCDR_20' ) end [2025-04-10 15:16:21] Production.INFO: ProcessCDR(1,14877738,1,1,2) [2025-04-10 15:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877738', 'tblTempUsageDetail_20' ) start [2025-04-10 15:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877738', 'tblTempUsageDetail_20' ) end [2025-04-10 15:16:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 15:16:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 15:16:26] Production.INFO: ==3210== Releasing lock... [2025-04-10 15:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 15:16:26] Production.INFO: 61 MB #Memory Used# [2025-04-10 15:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 12:17:06 [end_date_ymd] => 2025-04-10 15:17:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 12:17:06' and `end` < '2025-04-10 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-04-10 15:17:19] Production.INFO: count ==4390 [2025-04-10 15:17:21] Production.ERROR: pbx CDR StartTime 2025-04-10 12:17:06 - End Time 2025-04-10 15:17:06 [2025-04-10 15:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877743', 'tblTempUsageDetail_20' ) start [2025-04-10 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877743', 'tblTempUsageDetail_20' ) end [2025-04-10 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877743', 'tblTempVendorCDR_20' ) start [2025-04-10 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877743', 'tblTempVendorCDR_20' ) end [2025-04-10 15:17:21] Production.INFO: ProcessCDR(1,14877743,1,1,2) [2025-04-10 15:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877743', 'tblTempUsageDetail_20' ) start [2025-04-10 15:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877743', 'tblTempUsageDetail_20' ) end [2025-04-10 15:17:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 15:17:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 15:17:26] Production.INFO: ==3282== Releasing lock... [2025-04-10 15:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 15:17:26] Production.INFO: 60.75 MB #Memory Used# [2025-04-10 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 12:18:05 [end_date_ymd] => 2025-04-10 15:18:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 12:18:05' and `end` < '2025-04-10 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-04-10 15:18:19] Production.INFO: count ==4376 [2025-04-10 15:18:20] Production.ERROR: pbx CDR StartTime 2025-04-10 12:18:05 - End Time 2025-04-10 15:18:05 [2025-04-10 15:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 15:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877748', 'tblTempUsageDetail_20' ) start [2025-04-10 15:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877748', 'tblTempUsageDetail_20' ) end [2025-04-10 15:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877748', 'tblTempVendorCDR_20' ) start [2025-04-10 15:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877748', 'tblTempVendorCDR_20' ) end [2025-04-10 15:18:20] Production.INFO: ProcessCDR(1,14877748,1,1,2) [2025-04-10 15:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877748', 'tblTempUsageDetail_20' ) start [2025-04-10 15:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877748', 'tblTempUsageDetail_20' ) end [2025-04-10 15:18:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 15:18:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 15:18:25] Production.INFO: ==3357== Releasing lock... [2025-04-10 15:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 15:18:25] Production.INFO: 60.75 MB #Memory Used# [2025-04-10 15:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 12:19:05 [end_date_ymd] => 2025-04-10 15:19:05 [RateCDR] => 1 ) [2025-04-10 15: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-04-10 12:19:05' and `end` < '2025-04-10 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-04-10 15:19:19] Production.INFO: count ==4383 [2025-04-10 15:19:21] Production.ERROR: pbx CDR StartTime 2025-04-10 12:19:05 - End Time 2025-04-10 15:19:05 [2025-04-10 15:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877753', 'tblTempUsageDetail_20' ) start [2025-04-10 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877753', 'tblTempUsageDetail_20' ) end [2025-04-10 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877753', 'tblTempVendorCDR_20' ) start [2025-04-10 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877753', 'tblTempVendorCDR_20' ) end [2025-04-10 15:19:21] Production.INFO: ProcessCDR(1,14877753,1,1,2) [2025-04-10 15:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877753', 'tblTempUsageDetail_20' ) start [2025-04-10 15:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877753', 'tblTempUsageDetail_20' ) end [2025-04-10 15:19:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 15:19:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 15:19:26] Production.INFO: ==3430== Releasing lock... [2025-04-10 15:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 15:19:26] Production.INFO: 60.75 MB #Memory Used# [2025-04-10 15:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 12:20:06 [end_date_ymd] => 2025-04-10 15:20:06 [RateCDR] => 1 ) [2025-04-10 15:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 12:20:06' and `end` < '2025-04-10 15:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 15:20:20] Production.INFO: count ==4398 [2025-04-10 15:20:21] Production.ERROR: pbx CDR StartTime 2025-04-10 12:20:06 - End Time 2025-04-10 15:20:06 [2025-04-10 15:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 15:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877759', 'tblTempUsageDetail_20' ) start [2025-04-10 15:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877759', 'tblTempUsageDetail_20' ) end [2025-04-10 15:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877759', 'tblTempVendorCDR_20' ) start [2025-04-10 15:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877759', 'tblTempVendorCDR_20' ) end [2025-04-10 15:20:21] Production.INFO: ProcessCDR(1,14877759,1,1,2) [2025-04-10 15:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877759', 'tblTempUsageDetail_20' ) start [2025-04-10 15:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877759', 'tblTempUsageDetail_20' ) end [2025-04-10 15:20:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 15:20:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 15:20:27] Production.INFO: ==3509== Releasing lock... [2025-04-10 15:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 15:20:27] Production.INFO: 61 MB #Memory Used# [2025-04-10 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 12:21:05 [end_date_ymd] => 2025-04-10 15:21:05 [RateCDR] => 1 ) [2025-04-10 15:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 12:21:05' and `end` < '2025-04-10 15:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 15:21:19] Production.INFO: count ==4393 [2025-04-10 15:21:21] Production.ERROR: pbx CDR StartTime 2025-04-10 12:21:05 - End Time 2025-04-10 15:21:05 [2025-04-10 15:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877764', 'tblTempUsageDetail_20' ) start [2025-04-10 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877764', 'tblTempUsageDetail_20' ) end [2025-04-10 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877764', 'tblTempVendorCDR_20' ) start [2025-04-10 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877764', 'tblTempVendorCDR_20' ) end [2025-04-10 15:21:21] Production.INFO: ProcessCDR(1,14877764,1,1,2) [2025-04-10 15:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877764', 'tblTempUsageDetail_20' ) start [2025-04-10 15:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877764', 'tblTempUsageDetail_20' ) end [2025-04-10 15:21:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 15:21:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 15:21:26] Production.INFO: ==3586== Releasing lock... [2025-04-10 15:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 15:21:26] Production.INFO: 61 MB #Memory Used# [2025-04-10 15:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 12:22:05 [end_date_ymd] => 2025-04-10 15:22:05 [RateCDR] => 1 ) [2025-04-10 15:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 12:22:05' and `end` < '2025-04-10 15:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 15:22:18] Production.INFO: count ==4408 [2025-04-10 15:22:20] Production.ERROR: pbx CDR StartTime 2025-04-10 12:22:05 - End Time 2025-04-10 15:22:05 [2025-04-10 15:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 15:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877769', 'tblTempUsageDetail_20' ) start [2025-04-10 15:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877769', 'tblTempUsageDetail_20' ) end [2025-04-10 15:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877769', 'tblTempVendorCDR_20' ) start [2025-04-10 15:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877769', 'tblTempVendorCDR_20' ) end [2025-04-10 15:22:20] Production.INFO: ProcessCDR(1,14877769,1,1,2) [2025-04-10 15:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877769', 'tblTempUsageDetail_20' ) start [2025-04-10 15:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877769', 'tblTempUsageDetail_20' ) end [2025-04-10 15:22:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 15:22:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 15:22:26] Production.INFO: ==3656== Releasing lock... [2025-04-10 15:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 15:22:26] Production.INFO: 61 MB #Memory Used# [2025-04-10 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 12:23:05 [end_date_ymd] => 2025-04-10 15:23:05 [RateCDR] => 1 ) [2025-04-10 15:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 12:23:05' and `end` < '2025-04-10 15:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 15:23:19] Production.INFO: count ==4417 [2025-04-10 15:23:21] Production.ERROR: pbx CDR StartTime 2025-04-10 12:23:05 - End Time 2025-04-10 15:23:05 [2025-04-10 15:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877774', 'tblTempUsageDetail_20' ) start [2025-04-10 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877774', 'tblTempUsageDetail_20' ) end [2025-04-10 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877774', 'tblTempVendorCDR_20' ) start [2025-04-10 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877774', 'tblTempVendorCDR_20' ) end [2025-04-10 15:23:21] Production.INFO: ProcessCDR(1,14877774,1,1,2) [2025-04-10 15:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877774', 'tblTempUsageDetail_20' ) start [2025-04-10 15:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877774', 'tblTempUsageDetail_20' ) end [2025-04-10 15:23:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 15:23:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 15:23:27] Production.INFO: ==3772== Releasing lock... [2025-04-10 15:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 15:23:27] Production.INFO: 61 MB #Memory Used# [2025-04-10 15:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 12:24:05 [end_date_ymd] => 2025-04-10 15:24:05 [RateCDR] => 1 ) [2025-04-10 15:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 12:24:05' and `end` < '2025-04-10 15:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 15:24:19] Production.INFO: count ==4429 [2025-04-10 15:24:20] Production.ERROR: pbx CDR StartTime 2025-04-10 12:24:05 - End Time 2025-04-10 15:24:05 [2025-04-10 15:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 15:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877779', 'tblTempUsageDetail_20' ) start [2025-04-10 15:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877779', 'tblTempUsageDetail_20' ) end [2025-04-10 15:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877779', 'tblTempVendorCDR_20' ) start [2025-04-10 15:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877779', 'tblTempVendorCDR_20' ) end [2025-04-10 15:24:20] Production.INFO: ProcessCDR(1,14877779,1,1,2) [2025-04-10 15:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877779', 'tblTempUsageDetail_20' ) start [2025-04-10 15:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877779', 'tblTempUsageDetail_20' ) end [2025-04-10 15:24:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 15:24:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 15:24:26] Production.INFO: ==3843== Releasing lock... [2025-04-10 15:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 15:24:26] Production.INFO: 61.25 MB #Memory Used# [2025-04-10 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 12:25:05 [end_date_ymd] => 2025-04-10 15:25:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 12:25:05' and `end` < '2025-04-10 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-04-10 15:25:19] Production.INFO: count ==4424 [2025-04-10 15:25:20] Production.ERROR: pbx CDR StartTime 2025-04-10 12:25:05 - End Time 2025-04-10 15:25:05 [2025-04-10 15:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 15:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877784', 'tblTempUsageDetail_20' ) start [2025-04-10 15:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877784', 'tblTempUsageDetail_20' ) end [2025-04-10 15:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877784', 'tblTempVendorCDR_20' ) start [2025-04-10 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877784', 'tblTempVendorCDR_20' ) end [2025-04-10 15:25:21] Production.INFO: ProcessCDR(1,14877784,1,1,2) [2025-04-10 15:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877784', 'tblTempUsageDetail_20' ) start [2025-04-10 15:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877784', 'tblTempUsageDetail_20' ) end [2025-04-10 15:25:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 15:25:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 15:25:26] Production.INFO: ==3917== Releasing lock... [2025-04-10 15:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 15:25:26] Production.INFO: 61 MB #Memory Used# [2025-04-10 15:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 12:26:05 [end_date_ymd] => 2025-04-10 15:26:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 12:26:05' and `end` < '2025-04-10 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-04-10 15:26:19] Production.INFO: count ==4419 [2025-04-10 15:26:21] Production.ERROR: pbx CDR StartTime 2025-04-10 12:26:05 - End Time 2025-04-10 15:26:05 [2025-04-10 15:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877789', 'tblTempUsageDetail_20' ) start [2025-04-10 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877789', 'tblTempUsageDetail_20' ) end [2025-04-10 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877789', 'tblTempVendorCDR_20' ) start [2025-04-10 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877789', 'tblTempVendorCDR_20' ) end [2025-04-10 15:26:21] Production.INFO: ProcessCDR(1,14877789,1,1,2) [2025-04-10 15:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877789', 'tblTempUsageDetail_20' ) start [2025-04-10 15:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877789', 'tblTempUsageDetail_20' ) end [2025-04-10 15:26:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 15:26:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 15:26:26] Production.INFO: ==4001== Releasing lock... [2025-04-10 15:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 15:26:26] Production.INFO: 61 MB #Memory Used# [2025-04-10 15:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 12:27:05 [end_date_ymd] => 2025-04-10 15:27:05 [RateCDR] => 1 ) [2025-04-10 15:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 12:27:05' and `end` < '2025-04-10 15:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 15:27:19] Production.INFO: count ==4414 [2025-04-10 15:27:21] Production.ERROR: pbx CDR StartTime 2025-04-10 12:27:05 - End Time 2025-04-10 15:27:05 [2025-04-10 15:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877794', 'tblTempUsageDetail_20' ) start [2025-04-10 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877794', 'tblTempUsageDetail_20' ) end [2025-04-10 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877794', 'tblTempVendorCDR_20' ) start [2025-04-10 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877794', 'tblTempVendorCDR_20' ) end [2025-04-10 15:27:21] Production.INFO: ProcessCDR(1,14877794,1,1,2) [2025-04-10 15:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877794', 'tblTempUsageDetail_20' ) start [2025-04-10 15:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877794', 'tblTempUsageDetail_20' ) end [2025-04-10 15:27:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 15:27:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 15:27:27] Production.INFO: ==4075== Releasing lock... [2025-04-10 15:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 15:27:27] Production.INFO: 61 MB #Memory Used# [2025-04-10 15:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 12:28:06 [end_date_ymd] => 2025-04-10 15:28:06 [RateCDR] => 1 ) [2025-04-10 15:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 12:28:06' and `end` < '2025-04-10 15: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-04-10 15:28:20] Production.INFO: count ==4411 [2025-04-10 15:28:21] Production.ERROR: pbx CDR StartTime 2025-04-10 12:28:06 - End Time 2025-04-10 15:28:06 [2025-04-10 15:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877799', 'tblTempUsageDetail_20' ) start [2025-04-10 15:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877799', 'tblTempUsageDetail_20' ) end [2025-04-10 15:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877799', 'tblTempVendorCDR_20' ) start [2025-04-10 15:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877799', 'tblTempVendorCDR_20' ) end [2025-04-10 15:28:22] Production.INFO: ProcessCDR(1,14877799,1,1,2) [2025-04-10 15:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877799', 'tblTempUsageDetail_20' ) start [2025-04-10 15:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877799', 'tblTempUsageDetail_20' ) end [2025-04-10 15:28:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 15:28:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 15:28:27] Production.INFO: ==4151== Releasing lock... [2025-04-10 15:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 15:28:27] Production.INFO: 61 MB #Memory Used# [2025-04-10 15:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 12:29:05 [end_date_ymd] => 2025-04-10 15:29:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 12:29:05' and `end` < '2025-04-10 15:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 15:29:19] Production.INFO: count ==4429 [2025-04-10 15:29:21] Production.ERROR: pbx CDR StartTime 2025-04-10 12:29:05 - End Time 2025-04-10 15:29:05 [2025-04-10 15:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877804', 'tblTempUsageDetail_20' ) start [2025-04-10 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877804', 'tblTempUsageDetail_20' ) end [2025-04-10 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877804', 'tblTempVendorCDR_20' ) start [2025-04-10 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877804', 'tblTempVendorCDR_20' ) end [2025-04-10 15:29:21] Production.INFO: ProcessCDR(1,14877804,1,1,2) [2025-04-10 15:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877804', 'tblTempUsageDetail_20' ) start [2025-04-10 15:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877804', 'tblTempUsageDetail_20' ) end [2025-04-10 15:29:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 15:29:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 15:29:26] Production.INFO: ==4228== Releasing lock... [2025-04-10 15:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 15:29:26] Production.INFO: 61.25 MB #Memory Used# [2025-04-10 15:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 12:30:06 [end_date_ymd] => 2025-04-10 15:30:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 12:30:06' and `end` < '2025-04-10 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-04-10 15:30:20] Production.INFO: count ==4417 [2025-04-10 15:30:22] Production.ERROR: pbx CDR StartTime 2025-04-10 12:30:06 - End Time 2025-04-10 15:30:06 [2025-04-10 15:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 15:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877810', 'tblTempUsageDetail_20' ) start [2025-04-10 15:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877810', 'tblTempUsageDetail_20' ) end [2025-04-10 15:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877810', 'tblTempVendorCDR_20' ) start [2025-04-10 15:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877810', 'tblTempVendorCDR_20' ) end [2025-04-10 15:30:22] Production.INFO: ProcessCDR(1,14877810,1,1,2) [2025-04-10 15:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877810', 'tblTempUsageDetail_20' ) start [2025-04-10 15:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877810', 'tblTempUsageDetail_20' ) end [2025-04-10 15:30:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 15:30:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 15:30:27] Production.INFO: ==4308== Releasing lock... [2025-04-10 15:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 15:30:27] Production.INFO: 61 MB #Memory Used# [2025-04-10 15:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 12:31:05 [end_date_ymd] => 2025-04-10 15:31:05 [RateCDR] => 1 ) [2025-04-10 15:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 12:31:05' and `end` < '2025-04-10 15:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 15:31:19] Production.INFO: count ==4458 [2025-04-10 15:31:21] Production.ERROR: pbx CDR StartTime 2025-04-10 12:31:05 - End Time 2025-04-10 15:31:05 [2025-04-10 15:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877815', 'tblTempUsageDetail_20' ) start [2025-04-10 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877815', 'tblTempUsageDetail_20' ) end [2025-04-10 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877815', 'tblTempVendorCDR_20' ) start [2025-04-10 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877815', 'tblTempVendorCDR_20' ) end [2025-04-10 15:31:21] Production.INFO: ProcessCDR(1,14877815,1,1,2) [2025-04-10 15:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877815', 'tblTempUsageDetail_20' ) start [2025-04-10 15:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877815', 'tblTempUsageDetail_20' ) end [2025-04-10 15:31:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 15:31:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 15:31:26] Production.INFO: ==4389== Releasing lock... [2025-04-10 15:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 15:31:26] Production.INFO: 61.25 MB #Memory Used# [2025-04-10 15:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 12:32:06 [end_date_ymd] => 2025-04-10 15:32:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 12:32:06' and `end` < '2025-04-10 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-04-10 15:32:20] Production.INFO: count ==4445 [2025-04-10 15:32:22] Production.ERROR: pbx CDR StartTime 2025-04-10 12:32:06 - End Time 2025-04-10 15:32:06 [2025-04-10 15:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877820', 'tblTempUsageDetail_20' ) start [2025-04-10 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877820', 'tblTempUsageDetail_20' ) end [2025-04-10 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877820', 'tblTempVendorCDR_20' ) start [2025-04-10 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877820', 'tblTempVendorCDR_20' ) end [2025-04-10 15:32:22] Production.INFO: ProcessCDR(1,14877820,1,1,2) [2025-04-10 15:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877820', 'tblTempUsageDetail_20' ) start [2025-04-10 15:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877820', 'tblTempUsageDetail_20' ) end [2025-04-10 15:32:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 15:32:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 15:32:27] Production.INFO: ==4460== Releasing lock... [2025-04-10 15:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 15:32:27] Production.INFO: 61.25 MB #Memory Used# [2025-04-10 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 12:33:05 [end_date_ymd] => 2025-04-10 15:33:05 [RateCDR] => 1 ) [2025-04-10 15:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 12:33:05' and `end` < '2025-04-10 15:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 15:33:19] Production.INFO: count ==4447 [2025-04-10 15:33:20] Production.ERROR: pbx CDR StartTime 2025-04-10 12:33:05 - End Time 2025-04-10 15:33:05 [2025-04-10 15:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 15:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877825', 'tblTempUsageDetail_20' ) start [2025-04-10 15:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877825', 'tblTempUsageDetail_20' ) end [2025-04-10 15:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877825', 'tblTempVendorCDR_20' ) start [2025-04-10 15:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877825', 'tblTempVendorCDR_20' ) end [2025-04-10 15:33:20] Production.INFO: ProcessCDR(1,14877825,1,1,2) [2025-04-10 15:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877825', 'tblTempUsageDetail_20' ) start [2025-04-10 15:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877825', 'tblTempUsageDetail_20' ) end [2025-04-10 15:33:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 15:33:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 15:33:25] Production.INFO: ==4537== Releasing lock... [2025-04-10 15:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 15:33:25] Production.INFO: 61.25 MB #Memory Used# [2025-04-10 15:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 12:34:05 [end_date_ymd] => 2025-04-10 15:34:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 12:34:05' and `end` < '2025-04-10 15:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 15:34:19] Production.INFO: count ==4474 [2025-04-10 15:34:21] Production.ERROR: pbx CDR StartTime 2025-04-10 12:34:05 - End Time 2025-04-10 15:34:05 [2025-04-10 15:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 15:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877830', 'tblTempUsageDetail_20' ) start [2025-04-10 15:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877830', 'tblTempUsageDetail_20' ) end [2025-04-10 15:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877830', 'tblTempVendorCDR_20' ) start [2025-04-10 15:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877830', 'tblTempVendorCDR_20' ) end [2025-04-10 15:34:21] Production.INFO: ProcessCDR(1,14877830,1,1,2) [2025-04-10 15:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877830', 'tblTempUsageDetail_20' ) start [2025-04-10 15:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877830', 'tblTempUsageDetail_20' ) end [2025-04-10 15:34:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 15:34:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 15:34:26] Production.INFO: ==4620== Releasing lock... [2025-04-10 15:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 15:34:26] Production.INFO: 61.5 MB #Memory Used# [2025-04-10 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 12:35:05 [end_date_ymd] => 2025-04-10 15:35:05 [RateCDR] => 1 ) [2025-04-10 15:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 12:35:05' and `end` < '2025-04-10 15:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 15:35:19] Production.INFO: count ==4464 [2025-04-10 15:35:21] Production.ERROR: pbx CDR StartTime 2025-04-10 12:35:05 - End Time 2025-04-10 15:35:05 [2025-04-10 15:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 15:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877835', 'tblTempUsageDetail_20' ) start [2025-04-10 15:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877835', 'tblTempUsageDetail_20' ) end [2025-04-10 15:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877835', 'tblTempVendorCDR_20' ) start [2025-04-10 15:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877835', 'tblTempVendorCDR_20' ) end [2025-04-10 15:35:21] Production.INFO: ProcessCDR(1,14877835,1,1,2) [2025-04-10 15:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877835', 'tblTempUsageDetail_20' ) start [2025-04-10 15:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877835', 'tblTempUsageDetail_20' ) end [2025-04-10 15:35:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 15:35:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 15:35:26] Production.INFO: ==4706== Releasing lock... [2025-04-10 15:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 15:35:26] Production.INFO: 61.5 MB #Memory Used# [2025-04-10 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 12:36:05 [end_date_ymd] => 2025-04-10 15:36:05 [RateCDR] => 1 ) [2025-04-10 15:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 12:36:05' and `end` < '2025-04-10 15:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 15:36:19] Production.INFO: count ==4441 [2025-04-10 15:36:21] Production.ERROR: pbx CDR StartTime 2025-04-10 12:36:05 - End Time 2025-04-10 15:36:05 [2025-04-10 15:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877840', 'tblTempUsageDetail_20' ) start [2025-04-10 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877840', 'tblTempUsageDetail_20' ) end [2025-04-10 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877840', 'tblTempVendorCDR_20' ) start [2025-04-10 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877840', 'tblTempVendorCDR_20' ) end [2025-04-10 15:36:21] Production.INFO: ProcessCDR(1,14877840,1,1,2) [2025-04-10 15:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877840', 'tblTempUsageDetail_20' ) start [2025-04-10 15:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877840', 'tblTempUsageDetail_20' ) end [2025-04-10 15:36:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 15:36:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 15:36:26] Production.INFO: ==4778== Releasing lock... [2025-04-10 15:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 15:36:26] Production.INFO: 61.25 MB #Memory Used# [2025-04-10 15:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 12:37:05 [end_date_ymd] => 2025-04-10 15:37:05 [RateCDR] => 1 ) [2025-04-10 15:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 12:37:05' and `end` < '2025-04-10 15:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 15:37:19] Production.INFO: count ==4443 [2025-04-10 15:37:21] Production.ERROR: pbx CDR StartTime 2025-04-10 12:37:05 - End Time 2025-04-10 15:37:05 [2025-04-10 15:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877845', 'tblTempUsageDetail_20' ) start [2025-04-10 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877845', 'tblTempUsageDetail_20' ) end [2025-04-10 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877845', 'tblTempVendorCDR_20' ) start [2025-04-10 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877845', 'tblTempVendorCDR_20' ) end [2025-04-10 15:37:21] Production.INFO: ProcessCDR(1,14877845,1,1,2) [2025-04-10 15:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877845', 'tblTempUsageDetail_20' ) start [2025-04-10 15:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877845', 'tblTempUsageDetail_20' ) end [2025-04-10 15:37:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 15:37:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 15:37:26] Production.INFO: ==4857== Releasing lock... [2025-04-10 15:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 15:37:26] Production.INFO: 61.25 MB #Memory Used# [2025-04-10 15:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 12:38:05 [end_date_ymd] => 2025-04-10 15:38:05 [RateCDR] => 1 ) [2025-04-10 15: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-04-10 12:38:05' and `end` < '2025-04-10 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-04-10 15:38:19] Production.INFO: count ==4437 [2025-04-10 15:38:21] Production.ERROR: pbx CDR StartTime 2025-04-10 12:38:05 - End Time 2025-04-10 15:38:05 [2025-04-10 15:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877850', 'tblTempUsageDetail_20' ) start [2025-04-10 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877850', 'tblTempUsageDetail_20' ) end [2025-04-10 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877850', 'tblTempVendorCDR_20' ) start [2025-04-10 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877850', 'tblTempVendorCDR_20' ) end [2025-04-10 15:38:21] Production.INFO: ProcessCDR(1,14877850,1,1,2) [2025-04-10 15:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877850', 'tblTempUsageDetail_20' ) start [2025-04-10 15:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877850', 'tblTempUsageDetail_20' ) end [2025-04-10 15:38:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 15:38:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 15:38:26] Production.INFO: ==4931== Releasing lock... [2025-04-10 15:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 15:38:26] Production.INFO: 61.25 MB #Memory Used# [2025-04-10 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 12:39:05 [end_date_ymd] => 2025-04-10 15:39:05 [RateCDR] => 1 ) [2025-04-10 15:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 12:39:05' and `end` < '2025-04-10 15:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 15:39:19] Production.INFO: count ==4443 [2025-04-10 15:39:21] Production.ERROR: pbx CDR StartTime 2025-04-10 12:39:05 - End Time 2025-04-10 15:39:05 [2025-04-10 15:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877855', 'tblTempUsageDetail_20' ) start [2025-04-10 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877855', 'tblTempUsageDetail_20' ) end [2025-04-10 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877855', 'tblTempVendorCDR_20' ) start [2025-04-10 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877855', 'tblTempVendorCDR_20' ) end [2025-04-10 15:39:21] Production.INFO: ProcessCDR(1,14877855,1,1,2) [2025-04-10 15:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877855', 'tblTempUsageDetail_20' ) start [2025-04-10 15:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877855', 'tblTempUsageDetail_20' ) end [2025-04-10 15:39:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 15:39:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 15:39:26] Production.INFO: ==5046== Releasing lock... [2025-04-10 15:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 15:39:26] Production.INFO: 61.25 MB #Memory Used# [2025-04-10 15:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 12:40:07 [end_date_ymd] => 2025-04-10 15:40:07 [RateCDR] => 1 ) [2025-04-10 15: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-04-10 12:40:07' and `end` < '2025-04-10 15: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-04-10 15:40:20] Production.INFO: count ==4438 [2025-04-10 15:40:22] Production.ERROR: pbx CDR StartTime 2025-04-10 12:40:07 - End Time 2025-04-10 15:40:07 [2025-04-10 15:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877861', 'tblTempUsageDetail_20' ) start [2025-04-10 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877861', 'tblTempUsageDetail_20' ) end [2025-04-10 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877861', 'tblTempVendorCDR_20' ) start [2025-04-10 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877861', 'tblTempVendorCDR_20' ) end [2025-04-10 15:40:22] Production.INFO: ProcessCDR(1,14877861,1,1,2) [2025-04-10 15:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877861', 'tblTempUsageDetail_20' ) start [2025-04-10 15:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877861', 'tblTempUsageDetail_20' ) end [2025-04-10 15:40:28] Production.ERROR: pbx prc_insertCDR start [2025-04-10 15:40:28] Production.ERROR: pbx prc_insertCDR end [2025-04-10 15:40:28] Production.INFO: ==5129== Releasing lock... [2025-04-10 15:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 15:40:28] Production.INFO: 61.25 MB #Memory Used# [2025-04-10 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 12:41:05 [end_date_ymd] => 2025-04-10 15:41:05 [RateCDR] => 1 ) [2025-04-10 15:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 12:41:05' and `end` < '2025-04-10 15:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 15:41:19] Production.INFO: count ==4429 [2025-04-10 15:41:21] Production.ERROR: pbx CDR StartTime 2025-04-10 12:41:05 - End Time 2025-04-10 15:41:05 [2025-04-10 15:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877866', 'tblTempUsageDetail_20' ) start [2025-04-10 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877866', 'tblTempUsageDetail_20' ) end [2025-04-10 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877866', 'tblTempVendorCDR_20' ) start [2025-04-10 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877866', 'tblTempVendorCDR_20' ) end [2025-04-10 15:41:21] Production.INFO: ProcessCDR(1,14877866,1,1,2) [2025-04-10 15:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877866', 'tblTempUsageDetail_20' ) start [2025-04-10 15:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877866', 'tblTempUsageDetail_20' ) end [2025-04-10 15:41:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 15:41:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 15:41:26] Production.INFO: ==5207== Releasing lock... [2025-04-10 15:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 15:41:26] Production.INFO: 61.25 MB #Memory Used# [2025-04-10 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 12:42:05 [end_date_ymd] => 2025-04-10 15:42:05 [RateCDR] => 1 ) [2025-04-10 15:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 12:42:05' and `end` < '2025-04-10 15:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 15:42:19] Production.INFO: count ==4434 [2025-04-10 15:42:20] Production.ERROR: pbx CDR StartTime 2025-04-10 12:42:05 - End Time 2025-04-10 15:42:05 [2025-04-10 15:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 15:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877871', 'tblTempUsageDetail_20' ) start [2025-04-10 15:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877871', 'tblTempUsageDetail_20' ) end [2025-04-10 15:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877871', 'tblTempVendorCDR_20' ) start [2025-04-10 15:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877871', 'tblTempVendorCDR_20' ) end [2025-04-10 15:42:20] Production.INFO: ProcessCDR(1,14877871,1,1,2) [2025-04-10 15:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877871', 'tblTempUsageDetail_20' ) start [2025-04-10 15:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877871', 'tblTempUsageDetail_20' ) end [2025-04-10 15:42:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 15:42:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 15:42:26] Production.INFO: ==5287== Releasing lock... [2025-04-10 15:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 15:42:26] Production.INFO: 61.25 MB #Memory Used# [2025-04-10 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 12:43:05 [end_date_ymd] => 2025-04-10 15:43:05 [RateCDR] => 1 ) [2025-04-10 15:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 12:43:05' and `end` < '2025-04-10 15:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 15:43:19] Production.INFO: count ==4439 [2025-04-10 15:43:21] Production.ERROR: pbx CDR StartTime 2025-04-10 12:43:05 - End Time 2025-04-10 15:43:05 [2025-04-10 15:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877876', 'tblTempUsageDetail_20' ) start [2025-04-10 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877876', 'tblTempUsageDetail_20' ) end [2025-04-10 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877876', 'tblTempVendorCDR_20' ) start [2025-04-10 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877876', 'tblTempVendorCDR_20' ) end [2025-04-10 15:43:21] Production.INFO: ProcessCDR(1,14877876,1,1,2) [2025-04-10 15:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877876', 'tblTempUsageDetail_20' ) start [2025-04-10 15:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877876', 'tblTempUsageDetail_20' ) end [2025-04-10 15:43:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 15:43:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 15:43:27] Production.INFO: ==5358== Releasing lock... [2025-04-10 15:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 15:43:27] Production.INFO: 61.25 MB #Memory Used# [2025-04-10 15:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 12:44:06 [end_date_ymd] => 2025-04-10 15:44:06 [RateCDR] => 1 ) [2025-04-10 15:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 12:44:06' and `end` < '2025-04-10 15:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 15:44:19] Production.INFO: count ==4452 [2025-04-10 15:44:21] Production.ERROR: pbx CDR StartTime 2025-04-10 12:44:06 - End Time 2025-04-10 15:44:06 [2025-04-10 15:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877881', 'tblTempUsageDetail_20' ) start [2025-04-10 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877881', 'tblTempUsageDetail_20' ) end [2025-04-10 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877881', 'tblTempVendorCDR_20' ) start [2025-04-10 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877881', 'tblTempVendorCDR_20' ) end [2025-04-10 15:44:21] Production.INFO: ProcessCDR(1,14877881,1,1,2) [2025-04-10 15:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877881', 'tblTempUsageDetail_20' ) start [2025-04-10 15:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877881', 'tblTempUsageDetail_20' ) end [2025-04-10 15:44:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 15:44:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 15:44:27] Production.INFO: ==5434== Releasing lock... [2025-04-10 15:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 15:44:27] Production.INFO: 61.25 MB #Memory Used# [2025-04-10 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 12:45:05 [end_date_ymd] => 2025-04-10 15:45:05 [RateCDR] => 1 ) [2025-04-10 15:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 12:45:05' and `end` < '2025-04-10 15:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 15:45:19] Production.INFO: count ==4463 [2025-04-10 15:45:21] Production.ERROR: pbx CDR StartTime 2025-04-10 12:45:05 - End Time 2025-04-10 15:45:05 [2025-04-10 15:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877886', 'tblTempUsageDetail_20' ) start [2025-04-10 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877886', 'tblTempUsageDetail_20' ) end [2025-04-10 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877886', 'tblTempVendorCDR_20' ) start [2025-04-10 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877886', 'tblTempVendorCDR_20' ) end [2025-04-10 15:45:21] Production.INFO: ProcessCDR(1,14877886,1,1,2) [2025-04-10 15:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877886', 'tblTempUsageDetail_20' ) start [2025-04-10 15:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877886', 'tblTempUsageDetail_20' ) end [2025-04-10 15:45:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 15:45:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 15:45:27] Production.INFO: ==5509== Releasing lock... [2025-04-10 15:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 15:45:27] Production.INFO: 61.5 MB #Memory Used# [2025-04-10 15:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 12:46:06 [end_date_ymd] => 2025-04-10 15:46:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 12:46:06' and `end` < '2025-04-10 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-04-10 15:46:20] Production.INFO: count ==4468 [2025-04-10 15:46:22] Production.ERROR: pbx CDR StartTime 2025-04-10 12:46:06 - End Time 2025-04-10 15:46:06 [2025-04-10 15:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877891', 'tblTempUsageDetail_20' ) start [2025-04-10 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877891', 'tblTempUsageDetail_20' ) end [2025-04-10 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877891', 'tblTempVendorCDR_20' ) start [2025-04-10 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877891', 'tblTempVendorCDR_20' ) end [2025-04-10 15:46:22] Production.INFO: ProcessCDR(1,14877891,1,1,2) [2025-04-10 15:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:46:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877891', 'tblTempUsageDetail_20' ) start [2025-04-10 15:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877891', 'tblTempUsageDetail_20' ) end [2025-04-10 15:46:28] Production.ERROR: pbx prc_insertCDR start [2025-04-10 15:46:28] Production.ERROR: pbx prc_insertCDR end [2025-04-10 15:46:28] Production.INFO: ==5591== Releasing lock... [2025-04-10 15:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 15:46:28] Production.INFO: 61.5 MB #Memory Used# [2025-04-10 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 12:47:05 [end_date_ymd] => 2025-04-10 15:47:05 [RateCDR] => 1 ) [2025-04-10 15:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 12:47:05' and `end` < '2025-04-10 15:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 15:47:19] Production.INFO: count ==4472 [2025-04-10 15:47:21] Production.ERROR: pbx CDR StartTime 2025-04-10 12:47:05 - End Time 2025-04-10 15:47:05 [2025-04-10 15:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877896', 'tblTempUsageDetail_20' ) start [2025-04-10 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877896', 'tblTempUsageDetail_20' ) end [2025-04-10 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877896', 'tblTempVendorCDR_20' ) start [2025-04-10 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877896', 'tblTempVendorCDR_20' ) end [2025-04-10 15:47:21] Production.INFO: ProcessCDR(1,14877896,1,1,2) [2025-04-10 15:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877896', 'tblTempUsageDetail_20' ) start [2025-04-10 15:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877896', 'tblTempUsageDetail_20' ) end [2025-04-10 15:47:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 15:47:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 15:47:27] Production.INFO: ==5665== Releasing lock... [2025-04-10 15:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 15:47:27] Production.INFO: 61.5 MB #Memory Used# [2025-04-10 15:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 12:48:06 [end_date_ymd] => 2025-04-10 15:48:06 [RateCDR] => 1 ) [2025-04-10 15: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-04-10 12:48:06' and `end` < '2025-04-10 15: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-04-10 15:48:20] Production.INFO: count ==4474 [2025-04-10 15:48:22] Production.ERROR: pbx CDR StartTime 2025-04-10 12:48:06 - End Time 2025-04-10 15:48:06 [2025-04-10 15:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 15:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877901', 'tblTempUsageDetail_20' ) start [2025-04-10 15:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877901', 'tblTempUsageDetail_20' ) end [2025-04-10 15:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877901', 'tblTempVendorCDR_20' ) start [2025-04-10 15:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877901', 'tblTempVendorCDR_20' ) end [2025-04-10 15:48:22] Production.INFO: ProcessCDR(1,14877901,1,1,2) [2025-04-10 15:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877901', 'tblTempUsageDetail_20' ) start [2025-04-10 15:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877901', 'tblTempUsageDetail_20' ) end [2025-04-10 15:48:28] Production.ERROR: pbx prc_insertCDR start [2025-04-10 15:48:28] Production.ERROR: pbx prc_insertCDR end [2025-04-10 15:48:28] Production.INFO: ==5744== Releasing lock... [2025-04-10 15:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 15:48:28] Production.INFO: 61.5 MB #Memory Used# [2025-04-10 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 12:49:05 [end_date_ymd] => 2025-04-10 15:49:05 [RateCDR] => 1 ) [2025-04-10 15:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 12:49:05' and `end` < '2025-04-10 15:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 15:49:19] Production.INFO: count ==4473 [2025-04-10 15:49:21] Production.ERROR: pbx CDR StartTime 2025-04-10 12:49:05 - End Time 2025-04-10 15:49:05 [2025-04-10 15:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877906', 'tblTempUsageDetail_20' ) start [2025-04-10 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877906', 'tblTempUsageDetail_20' ) end [2025-04-10 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877906', 'tblTempVendorCDR_20' ) start [2025-04-10 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877906', 'tblTempVendorCDR_20' ) end [2025-04-10 15:49:21] Production.INFO: ProcessCDR(1,14877906,1,1,2) [2025-04-10 15:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877906', 'tblTempUsageDetail_20' ) start [2025-04-10 15:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877906', 'tblTempUsageDetail_20' ) end [2025-04-10 15:49:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 15:49:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 15:49:27] Production.INFO: ==5819== Releasing lock... [2025-04-10 15:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 15:49:27] Production.INFO: 61.5 MB #Memory Used# [2025-04-10 15:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 12:50:07 [end_date_ymd] => 2025-04-10 15:50:07 [RateCDR] => 1 ) [2025-04-10 15:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 12:50:07' and `end` < '2025-04-10 15:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 15:50:21] Production.INFO: count ==4474 [2025-04-10 15:50:22] Production.ERROR: pbx CDR StartTime 2025-04-10 12:50:07 - End Time 2025-04-10 15:50:07 [2025-04-10 15:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877912', 'tblTempUsageDetail_20' ) start [2025-04-10 15:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877912', 'tblTempUsageDetail_20' ) end [2025-04-10 15:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877912', 'tblTempVendorCDR_20' ) start [2025-04-10 15:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877912', 'tblTempVendorCDR_20' ) end [2025-04-10 15:50:23] Production.INFO: ProcessCDR(1,14877912,1,1,2) [2025-04-10 15:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:50:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:50:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877912', 'tblTempUsageDetail_20' ) start [2025-04-10 15:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877912', 'tblTempUsageDetail_20' ) end [2025-04-10 15:50:28] Production.ERROR: pbx prc_insertCDR start [2025-04-10 15:50:28] Production.ERROR: pbx prc_insertCDR end [2025-04-10 15:50:28] Production.INFO: ==5898== Releasing lock... [2025-04-10 15:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 15:50:28] Production.INFO: 61.5 MB #Memory Used# [2025-04-10 15:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 12:51:05 [end_date_ymd] => 2025-04-10 15:51:05 [RateCDR] => 1 ) [2025-04-10 15:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 12:51:05' and `end` < '2025-04-10 15:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 15:51:19] Production.INFO: count ==4495 [2025-04-10 15:51:21] Production.ERROR: pbx CDR StartTime 2025-04-10 12:51:05 - End Time 2025-04-10 15:51:05 [2025-04-10 15:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877917', 'tblTempUsageDetail_20' ) start [2025-04-10 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877917', 'tblTempUsageDetail_20' ) end [2025-04-10 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877917', 'tblTempVendorCDR_20' ) start [2025-04-10 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877917', 'tblTempVendorCDR_20' ) end [2025-04-10 15:51:21] Production.INFO: ProcessCDR(1,14877917,1,1,2) [2025-04-10 15:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877917', 'tblTempUsageDetail_20' ) start [2025-04-10 15:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877917', 'tblTempUsageDetail_20' ) end [2025-04-10 15:51:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 15:51:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 15:51:27] Production.INFO: ==5970== Releasing lock... [2025-04-10 15:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 15:51:27] Production.INFO: 61.75 MB #Memory Used# [2025-04-10 15:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 12:52:06 [end_date_ymd] => 2025-04-10 15:52:06 [RateCDR] => 1 ) [2025-04-10 15:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 12:52:06' and `end` < '2025-04-10 15:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 15:52:20] Production.INFO: count ==4504 [2025-04-10 15:52:22] Production.ERROR: pbx CDR StartTime 2025-04-10 12:52:06 - End Time 2025-04-10 15:52:06 [2025-04-10 15:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877922', 'tblTempUsageDetail_20' ) start [2025-04-10 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877922', 'tblTempUsageDetail_20' ) end [2025-04-10 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877922', 'tblTempVendorCDR_20' ) start [2025-04-10 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877922', 'tblTempVendorCDR_20' ) end [2025-04-10 15:52:22] Production.INFO: ProcessCDR(1,14877922,1,1,2) [2025-04-10 15:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877922', 'tblTempUsageDetail_20' ) start [2025-04-10 15:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877922', 'tblTempUsageDetail_20' ) end [2025-04-10 15:52:28] Production.ERROR: pbx prc_insertCDR start [2025-04-10 15:52:28] Production.ERROR: pbx prc_insertCDR end [2025-04-10 15:52:28] Production.INFO: ==6046== Releasing lock... [2025-04-10 15:52:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 15:52:28] Production.INFO: 61.75 MB #Memory Used# [2025-04-10 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 12:53:05 [end_date_ymd] => 2025-04-10 15:53:05 [RateCDR] => 1 ) [2025-04-10 15:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 12:53:05' and `end` < '2025-04-10 15:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 15:53:19] Production.INFO: count ==4503 [2025-04-10 15:53:21] Production.ERROR: pbx CDR StartTime 2025-04-10 12:53:05 - End Time 2025-04-10 15:53:05 [2025-04-10 15:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877927', 'tblTempUsageDetail_20' ) start [2025-04-10 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877927', 'tblTempUsageDetail_20' ) end [2025-04-10 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877927', 'tblTempVendorCDR_20' ) start [2025-04-10 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877927', 'tblTempVendorCDR_20' ) end [2025-04-10 15:53:21] Production.INFO: ProcessCDR(1,14877927,1,1,2) [2025-04-10 15:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877927', 'tblTempUsageDetail_20' ) start [2025-04-10 15:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877927', 'tblTempUsageDetail_20' ) end [2025-04-10 15:53:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 15:53:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 15:53:27] Production.INFO: ==6127== Releasing lock... [2025-04-10 15:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 15:53:27] Production.INFO: 61.75 MB #Memory Used# [2025-04-10 15:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 12:54:06 [end_date_ymd] => 2025-04-10 15:54:06 [RateCDR] => 1 ) [2025-04-10 15:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 12:54:06' and `end` < '2025-04-10 15:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 15:54:20] Production.INFO: count ==4510 [2025-04-10 15:54:22] Production.ERROR: pbx CDR StartTime 2025-04-10 12:54:06 - End Time 2025-04-10 15:54:06 [2025-04-10 15:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877932', 'tblTempUsageDetail_20' ) start [2025-04-10 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877932', 'tblTempUsageDetail_20' ) end [2025-04-10 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877932', 'tblTempVendorCDR_20' ) start [2025-04-10 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877932', 'tblTempVendorCDR_20' ) end [2025-04-10 15:54:22] Production.INFO: ProcessCDR(1,14877932,1,1,2) [2025-04-10 15:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:54:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877932', 'tblTempUsageDetail_20' ) start [2025-04-10 15:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877932', 'tblTempUsageDetail_20' ) end [2025-04-10 15:54:28] Production.ERROR: pbx prc_insertCDR start [2025-04-10 15:54:28] Production.ERROR: pbx prc_insertCDR end [2025-04-10 15:54:28] Production.INFO: ==6243== Releasing lock... [2025-04-10 15:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 15:54:28] Production.INFO: 61.75 MB #Memory Used# [2025-04-10 15:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 12:55:05 [end_date_ymd] => 2025-04-10 15:55:05 [RateCDR] => 1 ) [2025-04-10 15:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 12:55:05' and `end` < '2025-04-10 15:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 15:55:19] Production.INFO: count ==4504 [2025-04-10 15:55:21] Production.ERROR: pbx CDR StartTime 2025-04-10 12:55:05 - End Time 2025-04-10 15:55:05 [2025-04-10 15:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877937', 'tblTempUsageDetail_20' ) start [2025-04-10 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877937', 'tblTempUsageDetail_20' ) end [2025-04-10 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877937', 'tblTempVendorCDR_20' ) start [2025-04-10 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877937', 'tblTempVendorCDR_20' ) end [2025-04-10 15:55:21] Production.INFO: ProcessCDR(1,14877937,1,1,2) [2025-04-10 15:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877937', 'tblTempUsageDetail_20' ) start [2025-04-10 15:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877937', 'tblTempUsageDetail_20' ) end [2025-04-10 15:55:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 15:55:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 15:55:27] Production.INFO: ==6320== Releasing lock... [2025-04-10 15:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 15:55:27] Production.INFO: 61.75 MB #Memory Used# [2025-04-10 15:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 12:56:06 [end_date_ymd] => 2025-04-10 15:56:06 [RateCDR] => 1 ) [2025-04-10 15:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 12:56:06' and `end` < '2025-04-10 15:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 15:56:20] Production.INFO: count ==4492 [2025-04-10 15:56:22] Production.ERROR: pbx CDR StartTime 2025-04-10 12:56:06 - End Time 2025-04-10 15:56:06 [2025-04-10 15:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877942', 'tblTempUsageDetail_20' ) start [2025-04-10 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877942', 'tblTempUsageDetail_20' ) end [2025-04-10 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877942', 'tblTempVendorCDR_20' ) start [2025-04-10 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877942', 'tblTempVendorCDR_20' ) end [2025-04-10 15:56:22] Production.INFO: ProcessCDR(1,14877942,1,1,2) [2025-04-10 15:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:56:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877942', 'tblTempUsageDetail_20' ) start [2025-04-10 15:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877942', 'tblTempUsageDetail_20' ) end [2025-04-10 15:56:28] Production.ERROR: pbx prc_insertCDR start [2025-04-10 15:56:28] Production.ERROR: pbx prc_insertCDR end [2025-04-10 15:56:28] Production.INFO: ==6394== Releasing lock... [2025-04-10 15:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 15:56:28] Production.INFO: 61.75 MB #Memory Used# [2025-04-10 15:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 12:57:05 [end_date_ymd] => 2025-04-10 15:57:05 [RateCDR] => 1 ) [2025-04-10 15:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 12:57:05' and `end` < '2025-04-10 15:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 15:57:19] Production.INFO: count ==4500 [2025-04-10 15:57:21] Production.ERROR: pbx CDR StartTime 2025-04-10 12:57:05 - End Time 2025-04-10 15:57:05 [2025-04-10 15:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877947', 'tblTempUsageDetail_20' ) start [2025-04-10 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877947', 'tblTempUsageDetail_20' ) end [2025-04-10 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877947', 'tblTempVendorCDR_20' ) start [2025-04-10 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877947', 'tblTempVendorCDR_20' ) end [2025-04-10 15:57:21] Production.INFO: ProcessCDR(1,14877947,1,1,2) [2025-04-10 15:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877947', 'tblTempUsageDetail_20' ) start [2025-04-10 15:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877947', 'tblTempUsageDetail_20' ) end [2025-04-10 15:57:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 15:57:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 15:57:27] Production.INFO: ==6469== Releasing lock... [2025-04-10 15:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 15:57:27] Production.INFO: 61.75 MB #Memory Used# [2025-04-10 15:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 12:58:06 [end_date_ymd] => 2025-04-10 15:58:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 12:58:06' and `end` < '2025-04-10 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-04-10 15:58:20] Production.INFO: count ==4531 [2025-04-10 15:58:22] Production.ERROR: pbx CDR StartTime 2025-04-10 12:58:06 - End Time 2025-04-10 15:58:06 [2025-04-10 15:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877952', 'tblTempUsageDetail_20' ) start [2025-04-10 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877952', 'tblTempUsageDetail_20' ) end [2025-04-10 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877952', 'tblTempVendorCDR_20' ) start [2025-04-10 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877952', 'tblTempVendorCDR_20' ) end [2025-04-10 15:58:22] Production.INFO: ProcessCDR(1,14877952,1,1,2) [2025-04-10 15:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:58:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877952', 'tblTempUsageDetail_20' ) start [2025-04-10 15:58:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877952', 'tblTempUsageDetail_20' ) end [2025-04-10 15:58:28] Production.ERROR: pbx prc_insertCDR start [2025-04-10 15:58:28] Production.ERROR: pbx prc_insertCDR end [2025-04-10 15:58:28] Production.INFO: ==6543== Releasing lock... [2025-04-10 15:58:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 15:58:28] Production.INFO: 62 MB #Memory Used# [2025-04-10 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 12:59:05 [end_date_ymd] => 2025-04-10 15:59:05 [RateCDR] => 1 ) [2025-04-10 15:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 12:59:05' and `end` < '2025-04-10 15:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 15:59:19] Production.INFO: count ==4514 [2025-04-10 15:59:21] Production.ERROR: pbx CDR StartTime 2025-04-10 12:59:05 - End Time 2025-04-10 15:59:05 [2025-04-10 15:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 15:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877957', 'tblTempUsageDetail_20' ) start [2025-04-10 15:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877957', 'tblTempUsageDetail_20' ) end [2025-04-10 15:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877957', 'tblTempVendorCDR_20' ) start [2025-04-10 15:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877957', 'tblTempVendorCDR_20' ) end [2025-04-10 15:59:22] Production.INFO: ProcessCDR(1,14877957,1,1,2) [2025-04-10 15:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 15:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 15:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877957', 'tblTempUsageDetail_20' ) start [2025-04-10 15:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877957', 'tblTempUsageDetail_20' ) end [2025-04-10 15:59:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 15:59:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 15:59:27] Production.INFO: ==6614== Releasing lock... [2025-04-10 15:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 15:59:27] Production.INFO: 61.75 MB #Memory Used# [2025-04-10 16:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 13:00:07 [end_date_ymd] => 2025-04-10 16:00:07 [RateCDR] => 1 ) [2025-04-10 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-04-10 13:00:07' and `end` < '2025-04-10 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-04-10 16:00:21] Production.INFO: count ==4526 [2025-04-10 16:00:23] Production.ERROR: pbx CDR StartTime 2025-04-10 13:00:07 - End Time 2025-04-10 16:00:07 [2025-04-10 16:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 16:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877963', 'tblTempUsageDetail_20' ) start [2025-04-10 16:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877963', 'tblTempUsageDetail_20' ) end [2025-04-10 16:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877963', 'tblTempVendorCDR_20' ) start [2025-04-10 16:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877963', 'tblTempVendorCDR_20' ) end [2025-04-10 16:00:23] Production.INFO: ProcessCDR(1,14877963,1,1,2) [2025-04-10 16:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877963', 'tblTempUsageDetail_20' ) start [2025-04-10 16:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877963', 'tblTempUsageDetail_20' ) end [2025-04-10 16:00:29] Production.ERROR: pbx prc_insertCDR start [2025-04-10 16:00:29] Production.ERROR: pbx prc_insertCDR end [2025-04-10 16:00:29] Production.INFO: ==6695== Releasing lock... [2025-04-10 16:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 16:00:29] Production.INFO: 62 MB #Memory Used# [2025-04-10 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 13:01:05 [end_date_ymd] => 2025-04-10 16:01:05 [RateCDR] => 1 ) [2025-04-10 16:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 13:01:05' and `end` < '2025-04-10 16:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 16:01:20] Production.INFO: count ==4559 [2025-04-10 16:01:22] Production.ERROR: pbx CDR StartTime 2025-04-10 13:01:05 - End Time 2025-04-10 16:01:05 [2025-04-10 16:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 16:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877968', 'tblTempUsageDetail_20' ) start [2025-04-10 16:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877968', 'tblTempUsageDetail_20' ) end [2025-04-10 16:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877968', 'tblTempVendorCDR_20' ) start [2025-04-10 16:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877968', 'tblTempVendorCDR_20' ) end [2025-04-10 16:01:22] Production.INFO: ProcessCDR(1,14877968,1,1,2) [2025-04-10 16:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:01:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877968', 'tblTempUsageDetail_20' ) start [2025-04-10 16:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877968', 'tblTempUsageDetail_20' ) end [2025-04-10 16:01:28] Production.ERROR: pbx prc_insertCDR start [2025-04-10 16:01:28] Production.ERROR: pbx prc_insertCDR end [2025-04-10 16:01:28] Production.INFO: ==6792== Releasing lock... [2025-04-10 16:01:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 16:01:28] Production.INFO: 62.25 MB #Memory Used# [2025-04-10 16:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 13:02:06 [end_date_ymd] => 2025-04-10 16:02:06 [RateCDR] => 1 ) [2025-04-10 16:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 13:02:06' and `end` < '2025-04-10 16:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 16:02:19] Production.INFO: count ==4549 [2025-04-10 16:02:21] Production.ERROR: pbx CDR StartTime 2025-04-10 13:02:06 - End Time 2025-04-10 16:02:06 [2025-04-10 16:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877973', 'tblTempUsageDetail_20' ) start [2025-04-10 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877973', 'tblTempUsageDetail_20' ) end [2025-04-10 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877973', 'tblTempVendorCDR_20' ) start [2025-04-10 16:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877973', 'tblTempVendorCDR_20' ) end [2025-04-10 16:02:22] Production.INFO: ProcessCDR(1,14877973,1,1,2) [2025-04-10 16:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877973', 'tblTempUsageDetail_20' ) start [2025-04-10 16:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877973', 'tblTempUsageDetail_20' ) end [2025-04-10 16:02:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 16:02:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 16:02:27] Production.INFO: ==6865== Releasing lock... [2025-04-10 16:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 16:02:27] Production.INFO: 62 MB #Memory Used# [2025-04-10 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 13:03:05 [end_date_ymd] => 2025-04-10 16:03:05 [RateCDR] => 1 ) [2025-04-10 16:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 13:03:05' and `end` < '2025-04-10 16:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 16:03:19] Production.INFO: count ==4535 [2025-04-10 16:03:21] Production.ERROR: pbx CDR StartTime 2025-04-10 13:03:05 - End Time 2025-04-10 16:03:05 [2025-04-10 16:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877978', 'tblTempUsageDetail_20' ) start [2025-04-10 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877978', 'tblTempUsageDetail_20' ) end [2025-04-10 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877978', 'tblTempVendorCDR_20' ) start [2025-04-10 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877978', 'tblTempVendorCDR_20' ) end [2025-04-10 16:03:21] Production.INFO: ProcessCDR(1,14877978,1,1,2) [2025-04-10 16:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877978', 'tblTempUsageDetail_20' ) start [2025-04-10 16:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877978', 'tblTempUsageDetail_20' ) end [2025-04-10 16:03:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 16:03:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 16:03:26] Production.INFO: ==6942== Releasing lock... [2025-04-10 16:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 16:03:26] Production.INFO: 62 MB #Memory Used# [2025-04-10 16:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 13:04:06 [end_date_ymd] => 2025-04-10 16:04:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 13:04:06' and `end` < '2025-04-10 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-04-10 16:04:19] Production.INFO: count ==4591 [2025-04-10 16:04:21] Production.ERROR: pbx CDR StartTime 2025-04-10 13:04:06 - End Time 2025-04-10 16:04:06 [2025-04-10 16:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 16:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877983', 'tblTempUsageDetail_20' ) start [2025-04-10 16:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877983', 'tblTempUsageDetail_20' ) end [2025-04-10 16:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877983', 'tblTempVendorCDR_20' ) start [2025-04-10 16:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877983', 'tblTempVendorCDR_20' ) end [2025-04-10 16:04:21] Production.INFO: ProcessCDR(1,14877983,1,1,2) [2025-04-10 16:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877983', 'tblTempUsageDetail_20' ) start [2025-04-10 16:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877983', 'tblTempUsageDetail_20' ) end [2025-04-10 16:04:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 16:04:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 16:04:27] Production.INFO: ==7011== Releasing lock... [2025-04-10 16:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 16:04:27] Production.INFO: 62.25 MB #Memory Used# [2025-04-10 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 13:05:05 [end_date_ymd] => 2025-04-10 16:05:05 [RateCDR] => 1 ) [2025-04-10 16:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 13:05:05' and `end` < '2025-04-10 16:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 16:05:19] Production.INFO: count ==4604 [2025-04-10 16:05:21] Production.ERROR: pbx CDR StartTime 2025-04-10 13:05:05 - End Time 2025-04-10 16:05:05 [2025-04-10 16:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 16:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877988', 'tblTempUsageDetail_20' ) start [2025-04-10 16:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877988', 'tblTempUsageDetail_20' ) end [2025-04-10 16:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877988', 'tblTempVendorCDR_20' ) start [2025-04-10 16:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877988', 'tblTempVendorCDR_20' ) end [2025-04-10 16:05:21] Production.INFO: ProcessCDR(1,14877988,1,1,2) [2025-04-10 16:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877988', 'tblTempUsageDetail_20' ) start [2025-04-10 16:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877988', 'tblTempUsageDetail_20' ) end [2025-04-10 16:05:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 16:05:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 16:05:26] Production.INFO: ==7089== Releasing lock... [2025-04-10 16:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 16:05:26] Production.INFO: 62.5 MB #Memory Used# [2025-04-10 16:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 13:06:05 [end_date_ymd] => 2025-04-10 16:06:05 [RateCDR] => 1 ) [2025-04-10 16:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 13:06:05' and `end` < '2025-04-10 16:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 16:06:19] Production.INFO: count ==4594 [2025-04-10 16:06:21] Production.ERROR: pbx CDR StartTime 2025-04-10 13:06:05 - End Time 2025-04-10 16:06:05 [2025-04-10 16:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877993', 'tblTempUsageDetail_20' ) start [2025-04-10 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877993', 'tblTempUsageDetail_20' ) end [2025-04-10 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877993', 'tblTempVendorCDR_20' ) start [2025-04-10 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877993', 'tblTempVendorCDR_20' ) end [2025-04-10 16:06:21] Production.INFO: ProcessCDR(1,14877993,1,1,2) [2025-04-10 16:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877993', 'tblTempUsageDetail_20' ) start [2025-04-10 16:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877993', 'tblTempUsageDetail_20' ) end [2025-04-10 16:06:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 16:06:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 16:06:27] Production.INFO: ==7162== Releasing lock... [2025-04-10 16:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 16:06:27] Production.INFO: 62.5 MB #Memory Used# [2025-04-10 16:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 13:07:05 [end_date_ymd] => 2025-04-10 16:07:05 [RateCDR] => 1 ) [2025-04-10 16:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 13:07:05' and `end` < '2025-04-10 16:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 16:07:19] Production.INFO: count ==4594 [2025-04-10 16:07:21] Production.ERROR: pbx CDR StartTime 2025-04-10 13:07:05 - End Time 2025-04-10 16:07:05 [2025-04-10 16:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 16:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877998', 'tblTempUsageDetail_20' ) start [2025-04-10 16:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14877998', 'tblTempUsageDetail_20' ) end [2025-04-10 16:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877998', 'tblTempVendorCDR_20' ) start [2025-04-10 16:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14877998', 'tblTempVendorCDR_20' ) end [2025-04-10 16:07:21] Production.INFO: ProcessCDR(1,14877998,1,1,2) [2025-04-10 16:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14877998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14877998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14877998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14877998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877998', 'tblTempUsageDetail_20' ) start [2025-04-10 16:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14877998', 'tblTempUsageDetail_20' ) end [2025-04-10 16:07:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 16:07:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 16:07:26] Production.INFO: ==7251== Releasing lock... [2025-04-10 16:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 16:07:26] Production.INFO: 62.5 MB #Memory Used# [2025-04-10 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 13:08:05 [end_date_ymd] => 2025-04-10 16:08:05 [RateCDR] => 1 ) [2025-04-10 16:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 13:08:05' and `end` < '2025-04-10 16:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 16:08:19] Production.INFO: count ==4578 [2025-04-10 16:08:21] Production.ERROR: pbx CDR StartTime 2025-04-10 13:08:05 - End Time 2025-04-10 16:08:05 [2025-04-10 16:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 16:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878003', 'tblTempUsageDetail_20' ) start [2025-04-10 16:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878003', 'tblTempUsageDetail_20' ) end [2025-04-10 16:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878003', 'tblTempVendorCDR_20' ) start [2025-04-10 16:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878003', 'tblTempVendorCDR_20' ) end [2025-04-10 16:08:21] Production.INFO: ProcessCDR(1,14878003,1,1,2) [2025-04-10 16:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878003', 'tblTempUsageDetail_20' ) start [2025-04-10 16:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878003', 'tblTempUsageDetail_20' ) end [2025-04-10 16:08:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 16:08:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 16:08:27] Production.INFO: ==7334== Releasing lock... [2025-04-10 16:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 16:08:27] Production.INFO: 62.25 MB #Memory Used# [2025-04-10 16:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 13:09:05 [end_date_ymd] => 2025-04-10 16:09:05 [RateCDR] => 1 ) [2025-04-10 16:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 13:09:05' and `end` < '2025-04-10 16:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 16:09:19] Production.INFO: count ==4582 [2025-04-10 16:09:21] Production.ERROR: pbx CDR StartTime 2025-04-10 13:09:05 - End Time 2025-04-10 16:09:05 [2025-04-10 16:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878008', 'tblTempUsageDetail_20' ) start [2025-04-10 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878008', 'tblTempUsageDetail_20' ) end [2025-04-10 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878008', 'tblTempVendorCDR_20' ) start [2025-04-10 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878008', 'tblTempVendorCDR_20' ) end [2025-04-10 16:09:21] Production.INFO: ProcessCDR(1,14878008,1,1,2) [2025-04-10 16:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878008', 'tblTempUsageDetail_20' ) start [2025-04-10 16:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878008', 'tblTempUsageDetail_20' ) end [2025-04-10 16:09:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 16:09:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 16:09:27] Production.INFO: ==7418== Releasing lock... [2025-04-10 16:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 16:09:27] Production.INFO: 62.25 MB #Memory Used# [2025-04-10 16:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 13:10:06 [end_date_ymd] => 2025-04-10 16:10:06 [RateCDR] => 1 ) [2025-04-10 16:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 13:10:06' and `end` < '2025-04-10 16:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 16:10:21] Production.INFO: count ==4592 [2025-04-10 16:10:23] Production.ERROR: pbx CDR StartTime 2025-04-10 13:10:06 - End Time 2025-04-10 16:10:06 [2025-04-10 16:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878014', 'tblTempUsageDetail_20' ) start [2025-04-10 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878014', 'tblTempUsageDetail_20' ) end [2025-04-10 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878014', 'tblTempVendorCDR_20' ) start [2025-04-10 16:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878014', 'tblTempVendorCDR_20' ) end [2025-04-10 16:10:23] Production.INFO: ProcessCDR(1,14878014,1,1,2) [2025-04-10 16:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878014', 'tblTempUsageDetail_20' ) start [2025-04-10 16:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878014', 'tblTempUsageDetail_20' ) end [2025-04-10 16:10:28] Production.ERROR: pbx prc_insertCDR start [2025-04-10 16:10:28] Production.ERROR: pbx prc_insertCDR end [2025-04-10 16:10:28] Production.INFO: ==7544== Releasing lock... [2025-04-10 16:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 16:10:28] Production.INFO: 62.25 MB #Memory Used# [2025-04-10 16:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 13:11:05 [end_date_ymd] => 2025-04-10 16:11:05 [RateCDR] => 1 ) [2025-04-10 16:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 13:11:05' and `end` < '2025-04-10 16:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 16:11:19] Production.INFO: count ==4641 [2025-04-10 16:11:21] Production.ERROR: pbx CDR StartTime 2025-04-10 13:11:05 - End Time 2025-04-10 16:11:05 [2025-04-10 16:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878019', 'tblTempUsageDetail_20' ) start [2025-04-10 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878019', 'tblTempUsageDetail_20' ) end [2025-04-10 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878019', 'tblTempVendorCDR_20' ) start [2025-04-10 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878019', 'tblTempVendorCDR_20' ) end [2025-04-10 16:11:21] Production.INFO: ProcessCDR(1,14878019,1,1,2) [2025-04-10 16:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878019', 'tblTempUsageDetail_20' ) start [2025-04-10 16:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878019', 'tblTempUsageDetail_20' ) end [2025-04-10 16:11:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 16:11:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 16:11:26] Production.INFO: ==7631== Releasing lock... [2025-04-10 16:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 16:11:26] Production.INFO: 62.75 MB #Memory Used# [2025-04-10 16:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 13:12:06 [end_date_ymd] => 2025-04-10 16:12:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 13:12:06' and `end` < '2025-04-10 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-04-10 16:12:19] Production.INFO: count ==4641 [2025-04-10 16:12:21] Production.ERROR: pbx CDR StartTime 2025-04-10 13:12:06 - End Time 2025-04-10 16:12:06 [2025-04-10 16:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878024', 'tblTempUsageDetail_20' ) start [2025-04-10 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878024', 'tblTempUsageDetail_20' ) end [2025-04-10 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878024', 'tblTempVendorCDR_20' ) start [2025-04-10 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878024', 'tblTempVendorCDR_20' ) end [2025-04-10 16:12:21] Production.INFO: ProcessCDR(1,14878024,1,1,2) [2025-04-10 16:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878024', 'tblTempUsageDetail_20' ) start [2025-04-10 16:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878024', 'tblTempUsageDetail_20' ) end [2025-04-10 16:12:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 16:12:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 16:12:26] Production.INFO: ==7720== Releasing lock... [2025-04-10 16:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 16:12:26] Production.INFO: 62.75 MB #Memory Used# [2025-04-10 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 13:13:05 [end_date_ymd] => 2025-04-10 16:13:05 [RateCDR] => 1 ) [2025-04-10 16:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 13:13:05' and `end` < '2025-04-10 16:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 16:13:19] Production.INFO: count ==4637 [2025-04-10 16:13:21] Production.ERROR: pbx CDR StartTime 2025-04-10 13:13:05 - End Time 2025-04-10 16:13:05 [2025-04-10 16:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878029', 'tblTempUsageDetail_20' ) start [2025-04-10 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878029', 'tblTempUsageDetail_20' ) end [2025-04-10 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878029', 'tblTempVendorCDR_20' ) start [2025-04-10 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878029', 'tblTempVendorCDR_20' ) end [2025-04-10 16:13:21] Production.INFO: ProcessCDR(1,14878029,1,1,2) [2025-04-10 16:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878029', 'tblTempUsageDetail_20' ) start [2025-04-10 16:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878029', 'tblTempUsageDetail_20' ) end [2025-04-10 16:13:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 16:13:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 16:13:26] Production.INFO: ==7810== Releasing lock... [2025-04-10 16:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 16:13:26] Production.INFO: 62.75 MB #Memory Used# [2025-04-10 16:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 13:14:06 [end_date_ymd] => 2025-04-10 16:14:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 13:14:06' and `end` < '2025-04-10 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-04-10 16:14:20] Production.INFO: count ==4634 [2025-04-10 16:14:21] Production.ERROR: pbx CDR StartTime 2025-04-10 13:14:06 - End Time 2025-04-10 16:14:06 [2025-04-10 16:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878034', 'tblTempUsageDetail_20' ) start [2025-04-10 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878034', 'tblTempUsageDetail_20' ) end [2025-04-10 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878034', 'tblTempVendorCDR_20' ) start [2025-04-10 16:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878034', 'tblTempVendorCDR_20' ) end [2025-04-10 16:14:22] Production.INFO: ProcessCDR(1,14878034,1,1,2) [2025-04-10 16:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878034', 'tblTempUsageDetail_20' ) start [2025-04-10 16:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878034', 'tblTempUsageDetail_20' ) end [2025-04-10 16:14:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 16:14:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 16:14:27] Production.INFO: ==7883== Releasing lock... [2025-04-10 16:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 16:14:27] Production.INFO: 62.75 MB #Memory Used# [2025-04-10 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 13:15:05 [end_date_ymd] => 2025-04-10 16:15:05 [RateCDR] => 1 ) [2025-04-10 16:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 13:15:05' and `end` < '2025-04-10 16:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 16:15:19] Production.INFO: count ==4639 [2025-04-10 16:15:21] Production.ERROR: pbx CDR StartTime 2025-04-10 13:15:05 - End Time 2025-04-10 16:15:05 [2025-04-10 16:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878039', 'tblTempUsageDetail_20' ) start [2025-04-10 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878039', 'tblTempUsageDetail_20' ) end [2025-04-10 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878039', 'tblTempVendorCDR_20' ) start [2025-04-10 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878039', 'tblTempVendorCDR_20' ) end [2025-04-10 16:15:21] Production.INFO: ProcessCDR(1,14878039,1,1,2) [2025-04-10 16:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878039', 'tblTempUsageDetail_20' ) start [2025-04-10 16:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878039', 'tblTempUsageDetail_20' ) end [2025-04-10 16:15:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 16:15:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 16:15:26] Production.INFO: ==7972== Releasing lock... [2025-04-10 16:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 16:15:26] Production.INFO: 62.75 MB #Memory Used# [2025-04-10 16:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 13:16:06 [end_date_ymd] => 2025-04-10 16:16:06 [RateCDR] => 1 ) [2025-04-10 16:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 13:16:06' and `end` < '2025-04-10 16:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 16:16:19] Production.INFO: count ==4652 [2025-04-10 16:16:21] Production.ERROR: pbx CDR StartTime 2025-04-10 13:16:06 - End Time 2025-04-10 16:16:06 [2025-04-10 16:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878044', 'tblTempUsageDetail_20' ) start [2025-04-10 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878044', 'tblTempUsageDetail_20' ) end [2025-04-10 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878044', 'tblTempVendorCDR_20' ) start [2025-04-10 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878044', 'tblTempVendorCDR_20' ) end [2025-04-10 16:16:21] Production.INFO: ProcessCDR(1,14878044,1,1,2) [2025-04-10 16:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878044', 'tblTempUsageDetail_20' ) start [2025-04-10 16:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878044', 'tblTempUsageDetail_20' ) end [2025-04-10 16:16:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 16:16:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 16:16:27] Production.INFO: ==8045== Releasing lock... [2025-04-10 16:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 16:16:27] Production.INFO: 62.75 MB #Memory Used# [2025-04-10 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 13:17:05 [end_date_ymd] => 2025-04-10 16:17:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 13:17:05' and `end` < '2025-04-10 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-04-10 16:17:19] Production.INFO: count ==4665 [2025-04-10 16:17:21] Production.ERROR: pbx CDR StartTime 2025-04-10 13:17:05 - End Time 2025-04-10 16:17:05 [2025-04-10 16:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878049', 'tblTempUsageDetail_20' ) start [2025-04-10 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878049', 'tblTempUsageDetail_20' ) end [2025-04-10 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878049', 'tblTempVendorCDR_20' ) start [2025-04-10 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878049', 'tblTempVendorCDR_20' ) end [2025-04-10 16:17:21] Production.INFO: ProcessCDR(1,14878049,1,1,2) [2025-04-10 16:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878049', 'tblTempUsageDetail_20' ) start [2025-04-10 16:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878049', 'tblTempUsageDetail_20' ) end [2025-04-10 16:17:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 16:17:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 16:17:27] Production.INFO: ==8121== Releasing lock... [2025-04-10 16:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 16:17:27] Production.INFO: 63 MB #Memory Used# [2025-04-10 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 13:18:05 [end_date_ymd] => 2025-04-10 16:18:05 [RateCDR] => 1 ) [2025-04-10 16:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 13:18:05' and `end` < '2025-04-10 16:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 16:18:19] Production.INFO: count ==4665 [2025-04-10 16:18:21] Production.ERROR: pbx CDR StartTime 2025-04-10 13:18:05 - End Time 2025-04-10 16:18:05 [2025-04-10 16:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878054', 'tblTempUsageDetail_20' ) start [2025-04-10 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878054', 'tblTempUsageDetail_20' ) end [2025-04-10 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878054', 'tblTempVendorCDR_20' ) start [2025-04-10 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878054', 'tblTempVendorCDR_20' ) end [2025-04-10 16:18:21] Production.INFO: ProcessCDR(1,14878054,1,1,2) [2025-04-10 16:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878054', 'tblTempUsageDetail_20' ) start [2025-04-10 16:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878054', 'tblTempUsageDetail_20' ) end [2025-04-10 16:18:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 16:18:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 16:18:26] Production.INFO: ==8195== Releasing lock... [2025-04-10 16:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 16:18:26] Production.INFO: 63 MB #Memory Used# [2025-04-10 16:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 13:19:05 [end_date_ymd] => 2025-04-10 16:19:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 13:19:05' and `end` < '2025-04-10 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-04-10 16:19:19] Production.INFO: count ==4658 [2025-04-10 16:19:21] Production.ERROR: pbx CDR StartTime 2025-04-10 13:19:05 - End Time 2025-04-10 16:19:05 [2025-04-10 16:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878059', 'tblTempUsageDetail_20' ) start [2025-04-10 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878059', 'tblTempUsageDetail_20' ) end [2025-04-10 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878059', 'tblTempVendorCDR_20' ) start [2025-04-10 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878059', 'tblTempVendorCDR_20' ) end [2025-04-10 16:19:21] Production.INFO: ProcessCDR(1,14878059,1,1,2) [2025-04-10 16:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878059', 'tblTempUsageDetail_20' ) start [2025-04-10 16:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878059', 'tblTempUsageDetail_20' ) end [2025-04-10 16:19:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 16:19:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 16:19:26] Production.INFO: ==8278== Releasing lock... [2025-04-10 16:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 16:19:26] Production.INFO: 62.75 MB #Memory Used# [2025-04-10 16:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 13:20:07 [end_date_ymd] => 2025-04-10 16:20:07 [RateCDR] => 1 ) [2025-04-10 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-04-10 13:20:07' and `end` < '2025-04-10 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-04-10 16:20:21] Production.INFO: count ==4659 [2025-04-10 16:20:22] Production.ERROR: pbx CDR StartTime 2025-04-10 13:20:07 - End Time 2025-04-10 16:20:07 [2025-04-10 16:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 16:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878064', 'tblTempUsageDetail_20' ) start [2025-04-10 16:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878064', 'tblTempUsageDetail_20' ) end [2025-04-10 16:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878064', 'tblTempVendorCDR_20' ) start [2025-04-10 16:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878064', 'tblTempVendorCDR_20' ) end [2025-04-10 16:20:23] Production.INFO: ProcessCDR(1,14878064,1,1,2) [2025-04-10 16:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878064', 'tblTempUsageDetail_20' ) start [2025-04-10 16:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878064', 'tblTempUsageDetail_20' ) end [2025-04-10 16:20:28] Production.ERROR: pbx prc_insertCDR start [2025-04-10 16:20:28] Production.ERROR: pbx prc_insertCDR end [2025-04-10 16:20:28] Production.INFO: ==8357== Releasing lock... [2025-04-10 16:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 16:20:28] Production.INFO: 62.75 MB #Memory Used# [2025-04-10 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 13:21:05 [end_date_ymd] => 2025-04-10 16:21:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 13:21:05' and `end` < '2025-04-10 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-04-10 16:21:19] Production.INFO: count ==4693 [2025-04-10 16:21:20] Production.ERROR: pbx CDR StartTime 2025-04-10 13:21:05 - End Time 2025-04-10 16:21:05 [2025-04-10 16:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 16:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878070', 'tblTempUsageDetail_20' ) start [2025-04-10 16:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878070', 'tblTempUsageDetail_20' ) end [2025-04-10 16:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878070', 'tblTempVendorCDR_20' ) start [2025-04-10 16:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878070', 'tblTempVendorCDR_20' ) end [2025-04-10 16:21:21] Production.INFO: ProcessCDR(1,14878070,1,1,2) [2025-04-10 16:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878070', 'tblTempUsageDetail_20' ) start [2025-04-10 16:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878070', 'tblTempUsageDetail_20' ) end [2025-04-10 16:21:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 16:21:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 16:21:26] Production.INFO: ==8443== Releasing lock... [2025-04-10 16:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 16:21:26] Production.INFO: 63 MB #Memory Used# [2025-04-10 16:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 13:22:06 [end_date_ymd] => 2025-04-10 16:22:06 [RateCDR] => 1 ) [2025-04-10 16:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 13:22:06' and `end` < '2025-04-10 16:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 16:22:20] Production.INFO: count ==4696 [2025-04-10 16:22:22] Production.ERROR: pbx CDR StartTime 2025-04-10 13:22:06 - End Time 2025-04-10 16:22:06 [2025-04-10 16:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 16:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878075', 'tblTempUsageDetail_20' ) start [2025-04-10 16:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878075', 'tblTempUsageDetail_20' ) end [2025-04-10 16:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878075', 'tblTempVendorCDR_20' ) start [2025-04-10 16:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878075', 'tblTempVendorCDR_20' ) end [2025-04-10 16:22:22] Production.INFO: ProcessCDR(1,14878075,1,1,2) [2025-04-10 16:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878075', 'tblTempUsageDetail_20' ) start [2025-04-10 16:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878075', 'tblTempUsageDetail_20' ) end [2025-04-10 16:22:28] Production.ERROR: pbx prc_insertCDR start [2025-04-10 16:22:28] Production.ERROR: pbx prc_insertCDR end [2025-04-10 16:22:28] Production.INFO: ==8514== Releasing lock... [2025-04-10 16:22:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 16:22:28] Production.INFO: 63.25 MB #Memory Used# [2025-04-10 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 13:23:05 [end_date_ymd] => 2025-04-10 16:23:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 13:23:05' and `end` < '2025-04-10 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-04-10 16:23:19] Production.INFO: count ==4687 [2025-04-10 16:23:21] Production.ERROR: pbx CDR StartTime 2025-04-10 13:23:05 - End Time 2025-04-10 16:23:05 [2025-04-10 16:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878080', 'tblTempUsageDetail_20' ) start [2025-04-10 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878080', 'tblTempUsageDetail_20' ) end [2025-04-10 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878080', 'tblTempVendorCDR_20' ) start [2025-04-10 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878080', 'tblTempVendorCDR_20' ) end [2025-04-10 16:23:21] Production.INFO: ProcessCDR(1,14878080,1,1,2) [2025-04-10 16:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878080', 'tblTempUsageDetail_20' ) start [2025-04-10 16:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878080', 'tblTempUsageDetail_20' ) end [2025-04-10 16:23:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 16:23:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 16:23:26] Production.INFO: ==8587== Releasing lock... [2025-04-10 16:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 16:23:26] Production.INFO: 63 MB #Memory Used# [2025-04-10 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 13:24:05 [end_date_ymd] => 2025-04-10 16:24:05 [RateCDR] => 1 ) [2025-04-10 16:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 13:24:05' and `end` < '2025-04-10 16:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 16:24:19] Production.INFO: count ==4684 [2025-04-10 16:24:21] Production.ERROR: pbx CDR StartTime 2025-04-10 13:24:05 - End Time 2025-04-10 16:24:05 [2025-04-10 16:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 16:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878085', 'tblTempUsageDetail_20' ) start [2025-04-10 16:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878085', 'tblTempUsageDetail_20' ) end [2025-04-10 16:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878085', 'tblTempVendorCDR_20' ) start [2025-04-10 16:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878085', 'tblTempVendorCDR_20' ) end [2025-04-10 16:24:21] Production.INFO: ProcessCDR(1,14878085,1,1,2) [2025-04-10 16:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878085', 'tblTempUsageDetail_20' ) start [2025-04-10 16:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878085', 'tblTempUsageDetail_20' ) end [2025-04-10 16:24:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 16:24:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 16:24:27] Production.INFO: ==8657== Releasing lock... [2025-04-10 16:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 16:24:27] Production.INFO: 63 MB #Memory Used# [2025-04-10 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 13:25:05 [end_date_ymd] => 2025-04-10 16:25:05 [RateCDR] => 1 ) [2025-04-10 16:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 13:25:05' and `end` < '2025-04-10 16:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 16:25:19] Production.INFO: count ==4697 [2025-04-10 16:25:22] Production.ERROR: pbx CDR StartTime 2025-04-10 13:25:05 - End Time 2025-04-10 16:25:05 [2025-04-10 16:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878090', 'tblTempUsageDetail_20' ) start [2025-04-10 16:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878090', 'tblTempUsageDetail_20' ) end [2025-04-10 16:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878090', 'tblTempVendorCDR_20' ) start [2025-04-10 16:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878090', 'tblTempVendorCDR_20' ) end [2025-04-10 16:25:23] Production.INFO: ProcessCDR(1,14878090,1,1,2) [2025-04-10 16:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878090', 'tblTempUsageDetail_20' ) start [2025-04-10 16:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878090', 'tblTempUsageDetail_20' ) end [2025-04-10 16:25:28] Production.ERROR: pbx prc_insertCDR start [2025-04-10 16:25:28] Production.ERROR: pbx prc_insertCDR end [2025-04-10 16:25:28] Production.INFO: ==8776== Releasing lock... [2025-04-10 16:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 16:25:28] Production.INFO: 63.25 MB #Memory Used# [2025-04-10 16:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 13:26:06 [end_date_ymd] => 2025-04-10 16:26:06 [RateCDR] => 1 ) [2025-04-10 16:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 13:26:06' and `end` < '2025-04-10 16:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 16:26:20] Production.INFO: count ==4696 [2025-04-10 16:26:22] Production.ERROR: pbx CDR StartTime 2025-04-10 13:26:06 - End Time 2025-04-10 16:26:06 [2025-04-10 16:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878095', 'tblTempUsageDetail_20' ) start [2025-04-10 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878095', 'tblTempUsageDetail_20' ) end [2025-04-10 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878095', 'tblTempVendorCDR_20' ) start [2025-04-10 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878095', 'tblTempVendorCDR_20' ) end [2025-04-10 16:26:22] Production.INFO: ProcessCDR(1,14878095,1,1,2) [2025-04-10 16:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:26:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878095', 'tblTempUsageDetail_20' ) start [2025-04-10 16:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878095', 'tblTempUsageDetail_20' ) end [2025-04-10 16:26:28] Production.ERROR: pbx prc_insertCDR start [2025-04-10 16:26:28] Production.ERROR: pbx prc_insertCDR end [2025-04-10 16:26:28] Production.INFO: ==8850== Releasing lock... [2025-04-10 16:26:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 16:26:28] Production.INFO: 63.25 MB #Memory Used# [2025-04-10 16:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 13:27:06 [end_date_ymd] => 2025-04-10 16:27:06 [RateCDR] => 1 ) [2025-04-10 16:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 13:27:06' and `end` < '2025-04-10 16:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 16:27:20] Production.INFO: count ==4744 [2025-04-10 16:27:21] Production.ERROR: pbx CDR StartTime 2025-04-10 13:27:06 - End Time 2025-04-10 16:27:06 [2025-04-10 16:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 16:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878100', 'tblTempUsageDetail_20' ) start [2025-04-10 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878100', 'tblTempUsageDetail_20' ) end [2025-04-10 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878100', 'tblTempVendorCDR_20' ) start [2025-04-10 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878100', 'tblTempVendorCDR_20' ) end [2025-04-10 16:27:22] Production.INFO: ProcessCDR(1,14878100,1,1,2) [2025-04-10 16:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878100', 'tblTempUsageDetail_20' ) start [2025-04-10 16:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878100', 'tblTempUsageDetail_20' ) end [2025-04-10 16:27:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 16:27:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 16:27:27] Production.INFO: ==8925== Releasing lock... [2025-04-10 16:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 16:27:27] Production.INFO: 63.5 MB #Memory Used# [2025-04-10 16:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 13:28:06 [end_date_ymd] => 2025-04-10 16:28:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 13:28:06' and `end` < '2025-04-10 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-04-10 16:28:20] Production.INFO: count ==4747 [2025-04-10 16:28:22] Production.ERROR: pbx CDR StartTime 2025-04-10 13:28:06 - End Time 2025-04-10 16:28:06 [2025-04-10 16:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878105', 'tblTempUsageDetail_20' ) start [2025-04-10 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878105', 'tblTempUsageDetail_20' ) end [2025-04-10 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878105', 'tblTempVendorCDR_20' ) start [2025-04-10 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878105', 'tblTempVendorCDR_20' ) end [2025-04-10 16:28:22] Production.INFO: ProcessCDR(1,14878105,1,1,2) [2025-04-10 16:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878105', 'tblTempUsageDetail_20' ) start [2025-04-10 16:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878105', 'tblTempUsageDetail_20' ) end [2025-04-10 16:28:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 16:28:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 16:28:27] Production.INFO: ==9001== Releasing lock... [2025-04-10 16:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 16:28:27] Production.INFO: 63.5 MB #Memory Used# [2025-04-10 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 13:29:05 [end_date_ymd] => 2025-04-10 16:29:05 [RateCDR] => 1 ) [2025-04-10 16:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 13:29:05' and `end` < '2025-04-10 16:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 16:29:19] Production.INFO: count ==4750 [2025-04-10 16:29:21] Production.ERROR: pbx CDR StartTime 2025-04-10 13:29:05 - End Time 2025-04-10 16:29:05 [2025-04-10 16:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878110', 'tblTempUsageDetail_20' ) start [2025-04-10 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878110', 'tblTempUsageDetail_20' ) end [2025-04-10 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878110', 'tblTempVendorCDR_20' ) start [2025-04-10 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878110', 'tblTempVendorCDR_20' ) end [2025-04-10 16:29:21] Production.INFO: ProcessCDR(1,14878110,1,1,2) [2025-04-10 16:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878110', 'tblTempUsageDetail_20' ) start [2025-04-10 16:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878110', 'tblTempUsageDetail_20' ) end [2025-04-10 16:29:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 16:29:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 16:29:26] Production.INFO: ==9078== Releasing lock... [2025-04-10 16:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 16:29:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-10 16:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 13:30:06 [end_date_ymd] => 2025-04-10 16:30:06 [RateCDR] => 1 ) [2025-04-10 16:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 13:30:06' and `end` < '2025-04-10 16:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 16:30:20] Production.INFO: count ==4744 [2025-04-10 16:30:22] Production.ERROR: pbx CDR StartTime 2025-04-10 13:30:06 - End Time 2025-04-10 16:30:06 [2025-04-10 16:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878116', 'tblTempUsageDetail_20' ) start [2025-04-10 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878116', 'tblTempUsageDetail_20' ) end [2025-04-10 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878116', 'tblTempVendorCDR_20' ) start [2025-04-10 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878116', 'tblTempVendorCDR_20' ) end [2025-04-10 16:30:22] Production.INFO: ProcessCDR(1,14878116,1,1,2) [2025-04-10 16:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878116', 'tblTempUsageDetail_20' ) start [2025-04-10 16:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878116', 'tblTempUsageDetail_20' ) end [2025-04-10 16:30:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 16:30:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 16:30:27] Production.INFO: ==9152== Releasing lock... [2025-04-10 16:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 16:30:27] Production.INFO: 63.5 MB #Memory Used# [2025-04-10 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 13:31:05 [end_date_ymd] => 2025-04-10 16:31:05 [RateCDR] => 1 ) [2025-04-10 16:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 13:31:05' and `end` < '2025-04-10 16:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 16:31:19] Production.INFO: count ==4782 [2025-04-10 16:31:21] Production.ERROR: pbx CDR StartTime 2025-04-10 13:31:05 - End Time 2025-04-10 16:31:05 [2025-04-10 16:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878121', 'tblTempUsageDetail_20' ) start [2025-04-10 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878121', 'tblTempUsageDetail_20' ) end [2025-04-10 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878121', 'tblTempVendorCDR_20' ) start [2025-04-10 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878121', 'tblTempVendorCDR_20' ) end [2025-04-10 16:31:21] Production.INFO: ProcessCDR(1,14878121,1,1,2) [2025-04-10 16:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878121', 'tblTempUsageDetail_20' ) start [2025-04-10 16:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878121', 'tblTempUsageDetail_20' ) end [2025-04-10 16:31:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 16:31:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 16:31:26] Production.INFO: ==9232== Releasing lock... [2025-04-10 16:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 16:31:26] Production.INFO: 63.75 MB #Memory Used# [2025-04-10 16:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 13:32:06 [end_date_ymd] => 2025-04-10 16:32:06 [RateCDR] => 1 ) [2025-04-10 16:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 13:32:06' and `end` < '2025-04-10 16:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 16:32:19] Production.INFO: count ==4779 [2025-04-10 16:32:21] Production.ERROR: pbx CDR StartTime 2025-04-10 13:32:06 - End Time 2025-04-10 16:32:06 [2025-04-10 16:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 16:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878126', 'tblTempUsageDetail_20' ) start [2025-04-10 16:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878126', 'tblTempUsageDetail_20' ) end [2025-04-10 16:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878126', 'tblTempVendorCDR_20' ) start [2025-04-10 16:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878126', 'tblTempVendorCDR_20' ) end [2025-04-10 16:32:21] Production.INFO: ProcessCDR(1,14878126,1,1,2) [2025-04-10 16:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878126', 'tblTempUsageDetail_20' ) start [2025-04-10 16:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878126', 'tblTempUsageDetail_20' ) end [2025-04-10 16:32:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 16:32:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 16:32:26] Production.INFO: ==9306== Releasing lock... [2025-04-10 16:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 16:32:26] Production.INFO: 63.75 MB #Memory Used# [2025-04-10 16:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 13:33:05 [end_date_ymd] => 2025-04-10 16:33:05 [RateCDR] => 1 ) [2025-04-10 16:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 13:33:05' and `end` < '2025-04-10 16:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 16:33:19] Production.INFO: count ==4780 [2025-04-10 16:33:21] Production.ERROR: pbx CDR StartTime 2025-04-10 13:33:05 - End Time 2025-04-10 16:33:05 [2025-04-10 16:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878131', 'tblTempUsageDetail_20' ) start [2025-04-10 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878131', 'tblTempUsageDetail_20' ) end [2025-04-10 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878131', 'tblTempVendorCDR_20' ) start [2025-04-10 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878131', 'tblTempVendorCDR_20' ) end [2025-04-10 16:33:21] Production.INFO: ProcessCDR(1,14878131,1,1,2) [2025-04-10 16:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878131', 'tblTempUsageDetail_20' ) start [2025-04-10 16:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878131', 'tblTempUsageDetail_20' ) end [2025-04-10 16:33:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 16:33:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 16:33:25] Production.INFO: ==9384== Releasing lock... [2025-04-10 16:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 16:33:25] Production.INFO: 63.75 MB #Memory Used# [2025-04-10 16:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 13:34:06 [end_date_ymd] => 2025-04-10 16:34:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 13:34:06' and `end` < '2025-04-10 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-04-10 16:34:20] Production.INFO: count ==4786 [2025-04-10 16:34:22] Production.ERROR: pbx CDR StartTime 2025-04-10 13:34:06 - End Time 2025-04-10 16:34:06 [2025-04-10 16:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 16:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878136', 'tblTempUsageDetail_20' ) start [2025-04-10 16:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878136', 'tblTempUsageDetail_20' ) end [2025-04-10 16:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878136', 'tblTempVendorCDR_20' ) start [2025-04-10 16:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878136', 'tblTempVendorCDR_20' ) end [2025-04-10 16:34:22] Production.INFO: ProcessCDR(1,14878136,1,1,2) [2025-04-10 16:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:34:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878136', 'tblTempUsageDetail_20' ) start [2025-04-10 16:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878136', 'tblTempUsageDetail_20' ) end [2025-04-10 16:34:28] Production.ERROR: pbx prc_insertCDR start [2025-04-10 16:34:28] Production.ERROR: pbx prc_insertCDR end [2025-04-10 16:34:28] Production.INFO: ==9556== Releasing lock... [2025-04-10 16:34:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 16:34:28] Production.INFO: 63.75 MB #Memory Used# [2025-04-10 16:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 13:35:06 [end_date_ymd] => 2025-04-10 16:35:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 13:35:06' and `end` < '2025-04-10 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-04-10 16:35:20] Production.INFO: count ==4794 [2025-04-10 16:35:22] Production.ERROR: pbx CDR StartTime 2025-04-10 13:35:06 - End Time 2025-04-10 16:35:06 [2025-04-10 16:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 16:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878141', 'tblTempUsageDetail_20' ) start [2025-04-10 16:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878141', 'tblTempUsageDetail_20' ) end [2025-04-10 16:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878141', 'tblTempVendorCDR_20' ) start [2025-04-10 16:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878141', 'tblTempVendorCDR_20' ) end [2025-04-10 16:35:22] Production.INFO: ProcessCDR(1,14878141,1,1,2) [2025-04-10 16:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878141', 'tblTempUsageDetail_20' ) start [2025-04-10 16:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878141', 'tblTempUsageDetail_20' ) end [2025-04-10 16:35:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 16:35:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 16:35:27] Production.INFO: ==9639== Releasing lock... [2025-04-10 16:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 16:35:27] Production.INFO: 64 MB #Memory Used# [2025-04-10 16:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 13:36:06 [end_date_ymd] => 2025-04-10 16:36:06 [RateCDR] => 1 ) [2025-04-10 16:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 13:36:06' and `end` < '2025-04-10 16:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 16:36:19] Production.INFO: count ==4790 [2025-04-10 16:36:21] Production.ERROR: pbx CDR StartTime 2025-04-10 13:36:06 - End Time 2025-04-10 16:36:06 [2025-04-10 16:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 16:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878146', 'tblTempUsageDetail_20' ) start [2025-04-10 16:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878146', 'tblTempUsageDetail_20' ) end [2025-04-10 16:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878146', 'tblTempVendorCDR_20' ) start [2025-04-10 16:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878146', 'tblTempVendorCDR_20' ) end [2025-04-10 16:36:22] Production.INFO: ProcessCDR(1,14878146,1,1,2) [2025-04-10 16:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878146', 'tblTempUsageDetail_20' ) start [2025-04-10 16:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878146', 'tblTempUsageDetail_20' ) end [2025-04-10 16:36:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 16:36:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 16:36:27] Production.INFO: ==9715== Releasing lock... [2025-04-10 16:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 16:36:27] Production.INFO: 63.75 MB #Memory Used# [2025-04-10 16:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 13:37:06 [end_date_ymd] => 2025-04-10 16:37:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 13:37:06' and `end` < '2025-04-10 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-04-10 16:37:19] Production.INFO: count ==4785 [2025-04-10 16:37:21] Production.ERROR: pbx CDR StartTime 2025-04-10 13:37:06 - End Time 2025-04-10 16:37:06 [2025-04-10 16:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878151', 'tblTempUsageDetail_20' ) start [2025-04-10 16:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878151', 'tblTempUsageDetail_20' ) end [2025-04-10 16:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878151', 'tblTempVendorCDR_20' ) start [2025-04-10 16:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878151', 'tblTempVendorCDR_20' ) end [2025-04-10 16:37:22] Production.INFO: ProcessCDR(1,14878151,1,1,2) [2025-04-10 16:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878151', 'tblTempUsageDetail_20' ) start [2025-04-10 16:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878151', 'tblTempUsageDetail_20' ) end [2025-04-10 16:37:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 16:37:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 16:37:27] Production.INFO: ==9794== Releasing lock... [2025-04-10 16:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 16:37:27] Production.INFO: 63.75 MB #Memory Used# [2025-04-10 16:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 13:38:06 [end_date_ymd] => 2025-04-10 16:38:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 13:38:06' and `end` < '2025-04-10 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-04-10 16:38:20] Production.INFO: count ==4781 [2025-04-10 16:38:22] Production.ERROR: pbx CDR StartTime 2025-04-10 13:38:06 - End Time 2025-04-10 16:38:06 [2025-04-10 16:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 16:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878156', 'tblTempUsageDetail_20' ) start [2025-04-10 16:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878156', 'tblTempUsageDetail_20' ) end [2025-04-10 16:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878156', 'tblTempVendorCDR_20' ) start [2025-04-10 16:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878156', 'tblTempVendorCDR_20' ) end [2025-04-10 16:38:22] Production.INFO: ProcessCDR(1,14878156,1,1,2) [2025-04-10 16:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878156', 'tblTempUsageDetail_20' ) start [2025-04-10 16:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878156', 'tblTempUsageDetail_20' ) end [2025-04-10 16:38:28] Production.ERROR: pbx prc_insertCDR start [2025-04-10 16:38:28] Production.ERROR: pbx prc_insertCDR end [2025-04-10 16:38:28] Production.INFO: ==9866== Releasing lock... [2025-04-10 16:38:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 16:38:28] Production.INFO: 63.75 MB #Memory Used# [2025-04-10 16:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 13:39:06 [end_date_ymd] => 2025-04-10 16:39:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 13:39:06' and `end` < '2025-04-10 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-04-10 16:39:19] Production.INFO: count ==4778 [2025-04-10 16:39:21] Production.ERROR: pbx CDR StartTime 2025-04-10 13:39:06 - End Time 2025-04-10 16:39:06 [2025-04-10 16:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878161', 'tblTempUsageDetail_20' ) start [2025-04-10 16:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878161', 'tblTempUsageDetail_20' ) end [2025-04-10 16:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878161', 'tblTempVendorCDR_20' ) start [2025-04-10 16:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878161', 'tblTempVendorCDR_20' ) end [2025-04-10 16:39:22] Production.INFO: ProcessCDR(1,14878161,1,1,2) [2025-04-10 16:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878161', 'tblTempUsageDetail_20' ) start [2025-04-10 16:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878161', 'tblTempUsageDetail_20' ) end [2025-04-10 16:39:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 16:39:28] Production.ERROR: pbx prc_insertCDR end [2025-04-10 16:39:28] Production.INFO: ==9939== Releasing lock... [2025-04-10 16:39:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 16:39:28] Production.INFO: 63.75 MB #Memory Used# [2025-04-10 16:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 13:40:07 [end_date_ymd] => 2025-04-10 16:40:07 [RateCDR] => 1 ) [2025-04-10 16: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-04-10 13:40:07' and `end` < '2025-04-10 16: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-04-10 16:40:20] Production.INFO: count ==4767 [2025-04-10 16:40:22] Production.ERROR: pbx CDR StartTime 2025-04-10 13:40:07 - End Time 2025-04-10 16:40:07 [2025-04-10 16:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878167', 'tblTempUsageDetail_20' ) start [2025-04-10 16:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878167', 'tblTempUsageDetail_20' ) end [2025-04-10 16:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878167', 'tblTempVendorCDR_20' ) start [2025-04-10 16:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878167', 'tblTempVendorCDR_20' ) end [2025-04-10 16:40:23] Production.INFO: ProcessCDR(1,14878167,1,1,2) [2025-04-10 16:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:40:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:40:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878167', 'tblTempUsageDetail_20' ) start [2025-04-10 16:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878167', 'tblTempUsageDetail_20' ) end [2025-04-10 16:40:28] Production.ERROR: pbx prc_insertCDR start [2025-04-10 16:40:28] Production.ERROR: pbx prc_insertCDR end [2025-04-10 16:40:29] Production.INFO: ==10015== Releasing lock... [2025-04-10 16:40:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 16:40:29] Production.INFO: 63.75 MB #Memory Used# [2025-04-10 16:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 13:41:06 [end_date_ymd] => 2025-04-10 16:41:06 [RateCDR] => 1 ) [2025-04-10 16:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 13:41:06' and `end` < '2025-04-10 16:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 16:41:20] Production.INFO: count ==4811 [2025-04-10 16:41:22] Production.ERROR: pbx CDR StartTime 2025-04-10 13:41:06 - End Time 2025-04-10 16:41:06 [2025-04-10 16:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 16:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878172', 'tblTempUsageDetail_20' ) start [2025-04-10 16:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878172', 'tblTempUsageDetail_20' ) end [2025-04-10 16:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878172', 'tblTempVendorCDR_20' ) start [2025-04-10 16:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878172', 'tblTempVendorCDR_20' ) end [2025-04-10 16:41:22] Production.INFO: ProcessCDR(1,14878172,1,1,2) [2025-04-10 16:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878172', 'tblTempUsageDetail_20' ) start [2025-04-10 16:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878172', 'tblTempUsageDetail_20' ) end [2025-04-10 16:41:28] Production.ERROR: pbx prc_insertCDR start [2025-04-10 16:41:28] Production.ERROR: pbx prc_insertCDR end [2025-04-10 16:41:28] Production.INFO: ==10129== Releasing lock... [2025-04-10 16:41:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 16:41:28] Production.INFO: 64 MB #Memory Used# [2025-04-10 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 13:42:05 [end_date_ymd] => 2025-04-10 16:42:05 [RateCDR] => 1 ) [2025-04-10 16:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 13:42:05' and `end` < '2025-04-10 16:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 16:42:20] Production.INFO: count ==4802 [2025-04-10 16:42:22] Production.ERROR: pbx CDR StartTime 2025-04-10 13:42:05 - End Time 2025-04-10 16:42:05 [2025-04-10 16:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878177', 'tblTempUsageDetail_20' ) start [2025-04-10 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878177', 'tblTempUsageDetail_20' ) end [2025-04-10 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878177', 'tblTempVendorCDR_20' ) start [2025-04-10 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878177', 'tblTempVendorCDR_20' ) end [2025-04-10 16:42:22] Production.INFO: ProcessCDR(1,14878177,1,1,2) [2025-04-10 16:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878177', 'tblTempUsageDetail_20' ) start [2025-04-10 16:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878177', 'tblTempUsageDetail_20' ) end [2025-04-10 16:42:28] Production.ERROR: pbx prc_insertCDR start [2025-04-10 16:42:28] Production.ERROR: pbx prc_insertCDR end [2025-04-10 16:42:28] Production.INFO: ==10199== Releasing lock... [2025-04-10 16:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 16:42:28] Production.INFO: 64 MB #Memory Used# [2025-04-10 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 13:43:05 [end_date_ymd] => 2025-04-10 16:43:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 13:43:05' and `end` < '2025-04-10 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-04-10 16:43:19] Production.INFO: count ==4820 [2025-04-10 16:43:21] Production.ERROR: pbx CDR StartTime 2025-04-10 13:43:05 - End Time 2025-04-10 16:43:05 [2025-04-10 16:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 16:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878182', 'tblTempUsageDetail_20' ) start [2025-04-10 16:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878182', 'tblTempUsageDetail_20' ) end [2025-04-10 16:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878182', 'tblTempVendorCDR_20' ) start [2025-04-10 16:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878182', 'tblTempVendorCDR_20' ) end [2025-04-10 16:43:21] Production.INFO: ProcessCDR(1,14878182,1,1,2) [2025-04-10 16:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878182', 'tblTempUsageDetail_20' ) start [2025-04-10 16:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878182', 'tblTempUsageDetail_20' ) end [2025-04-10 16:43:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 16:43:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 16:43:27] Production.INFO: ==10276== Releasing lock... [2025-04-10 16:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 16:43:27] Production.INFO: 64 MB #Memory Used# [2025-04-10 16:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 13:44:06 [end_date_ymd] => 2025-04-10 16:44:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 13:44:06' and `end` < '2025-04-10 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-04-10 16:44:20] Production.INFO: count ==4826 [2025-04-10 16:44:22] Production.ERROR: pbx CDR StartTime 2025-04-10 13:44:06 - End Time 2025-04-10 16:44:06 [2025-04-10 16:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878187', 'tblTempUsageDetail_20' ) start [2025-04-10 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878187', 'tblTempUsageDetail_20' ) end [2025-04-10 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878187', 'tblTempVendorCDR_20' ) start [2025-04-10 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878187', 'tblTempVendorCDR_20' ) end [2025-04-10 16:44:22] Production.INFO: ProcessCDR(1,14878187,1,1,2) [2025-04-10 16:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:44:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878187', 'tblTempUsageDetail_20' ) start [2025-04-10 16:44:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878187', 'tblTempUsageDetail_20' ) end [2025-04-10 16:44:29] Production.ERROR: pbx prc_insertCDR start [2025-04-10 16:44:29] Production.ERROR: pbx prc_insertCDR end [2025-04-10 16:44:29] Production.INFO: ==10346== Releasing lock... [2025-04-10 16:44:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 16:44:29] Production.INFO: 64.25 MB #Memory Used# [2025-04-10 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 13:45:05 [end_date_ymd] => 2025-04-10 16:45:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 13:45:05' and `end` < '2025-04-10 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-04-10 16:45:18] Production.INFO: count ==4792 [2025-04-10 16:45:20] Production.ERROR: pbx CDR StartTime 2025-04-10 13:45:05 - End Time 2025-04-10 16:45:05 [2025-04-10 16:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 16:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878192', 'tblTempUsageDetail_20' ) start [2025-04-10 16:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878192', 'tblTempUsageDetail_20' ) end [2025-04-10 16:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878192', 'tblTempVendorCDR_20' ) start [2025-04-10 16:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878192', 'tblTempVendorCDR_20' ) end [2025-04-10 16:45:20] Production.INFO: ProcessCDR(1,14878192,1,1,2) [2025-04-10 16:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878192', 'tblTempUsageDetail_20' ) start [2025-04-10 16:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878192', 'tblTempUsageDetail_20' ) end [2025-04-10 16:45:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 16:45:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 16:45:26] Production.INFO: ==10421== Releasing lock... [2025-04-10 16:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 16:45:26] Production.INFO: 64 MB #Memory Used# [2025-04-10 16:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 13:46:05 [end_date_ymd] => 2025-04-10 16:46:05 [RateCDR] => 1 ) [2025-04-10 16:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 13:46:05' and `end` < '2025-04-10 16:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 16:46:19] Production.INFO: count ==4792 [2025-04-10 16:46:21] Production.ERROR: pbx CDR StartTime 2025-04-10 13:46:05 - End Time 2025-04-10 16:46:05 [2025-04-10 16:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 16:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878197', 'tblTempUsageDetail_20' ) start [2025-04-10 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878197', 'tblTempUsageDetail_20' ) end [2025-04-10 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878197', 'tblTempVendorCDR_20' ) start [2025-04-10 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878197', 'tblTempVendorCDR_20' ) end [2025-04-10 16:46:22] Production.INFO: ProcessCDR(1,14878197,1,1,2) [2025-04-10 16:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878197', 'tblTempUsageDetail_20' ) start [2025-04-10 16:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878197', 'tblTempUsageDetail_20' ) end [2025-04-10 16:46:28] Production.ERROR: pbx prc_insertCDR start [2025-04-10 16:46:28] Production.ERROR: pbx prc_insertCDR end [2025-04-10 16:46:28] Production.INFO: ==10497== Releasing lock... [2025-04-10 16:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 16:46:28] Production.INFO: 63.75 MB #Memory Used# [2025-04-10 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 13:47:05 [end_date_ymd] => 2025-04-10 16:47:05 [RateCDR] => 1 ) [2025-04-10 16:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 13:47:05' and `end` < '2025-04-10 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-04-10 16:47:19] Production.INFO: count ==4785 [2025-04-10 16:47:21] Production.ERROR: pbx CDR StartTime 2025-04-10 13:47:05 - End Time 2025-04-10 16:47:05 [2025-04-10 16:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878202', 'tblTempUsageDetail_20' ) start [2025-04-10 16:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878202', 'tblTempUsageDetail_20' ) end [2025-04-10 16:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878202', 'tblTempVendorCDR_20' ) start [2025-04-10 16:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878202', 'tblTempVendorCDR_20' ) end [2025-04-10 16:47:22] Production.INFO: ProcessCDR(1,14878202,1,1,2) [2025-04-10 16:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878202', 'tblTempUsageDetail_20' ) start [2025-04-10 16:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878202', 'tblTempUsageDetail_20' ) end [2025-04-10 16:47:28] Production.ERROR: pbx prc_insertCDR start [2025-04-10 16:47:28] Production.ERROR: pbx prc_insertCDR end [2025-04-10 16:47:28] Production.INFO: ==10570== Releasing lock... [2025-04-10 16:47:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 16:47:28] Production.INFO: 63.75 MB #Memory Used# [2025-04-10 16:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 13:48:06 [end_date_ymd] => 2025-04-10 16:48:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 13:48:06' and `end` < '2025-04-10 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-04-10 16:48:20] Production.INFO: count ==4787 [2025-04-10 16:48:22] Production.ERROR: pbx CDR StartTime 2025-04-10 13:48:06 - End Time 2025-04-10 16:48:06 [2025-04-10 16:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878207', 'tblTempUsageDetail_20' ) start [2025-04-10 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878207', 'tblTempUsageDetail_20' ) end [2025-04-10 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878207', 'tblTempVendorCDR_20' ) start [2025-04-10 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878207', 'tblTempVendorCDR_20' ) end [2025-04-10 16:48:22] Production.INFO: ProcessCDR(1,14878207,1,1,2) [2025-04-10 16:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878207', 'tblTempUsageDetail_20' ) start [2025-04-10 16:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878207', 'tblTempUsageDetail_20' ) end [2025-04-10 16:48:28] Production.ERROR: pbx prc_insertCDR start [2025-04-10 16:48:28] Production.ERROR: pbx prc_insertCDR end [2025-04-10 16:48:28] Production.INFO: ==10648== Releasing lock... [2025-04-10 16:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 16:48:28] Production.INFO: 63.75 MB #Memory Used# [2025-04-10 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 13:49:05 [end_date_ymd] => 2025-04-10 16:49:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 13:49:05' and `end` < '2025-04-10 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-04-10 16:49:19] Production.INFO: count ==4777 [2025-04-10 16:49:21] Production.ERROR: pbx CDR StartTime 2025-04-10 13:49:05 - End Time 2025-04-10 16:49:05 [2025-04-10 16:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878212', 'tblTempUsageDetail_20' ) start [2025-04-10 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878212', 'tblTempUsageDetail_20' ) end [2025-04-10 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878212', 'tblTempVendorCDR_20' ) start [2025-04-10 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878212', 'tblTempVendorCDR_20' ) end [2025-04-10 16:49:21] Production.INFO: ProcessCDR(1,14878212,1,1,2) [2025-04-10 16:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878212', 'tblTempUsageDetail_20' ) start [2025-04-10 16:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878212', 'tblTempUsageDetail_20' ) end [2025-04-10 16:49:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 16:49:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 16:49:27] Production.INFO: ==10726== Releasing lock... [2025-04-10 16:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 16:49:27] Production.INFO: 63.75 MB #Memory Used# [2025-04-10 16:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 13:50:07 [end_date_ymd] => 2025-04-10 16:50:07 [RateCDR] => 1 ) [2025-04-10 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-04-10 13:50:07' and `end` < '2025-04-10 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-04-10 16:50:21] Production.INFO: count ==4768 [2025-04-10 16:50:23] Production.ERROR: pbx CDR StartTime 2025-04-10 13:50:07 - End Time 2025-04-10 16:50:07 [2025-04-10 16:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 16:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878218', 'tblTempUsageDetail_20' ) start [2025-04-10 16:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878218', 'tblTempUsageDetail_20' ) end [2025-04-10 16:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878218', 'tblTempVendorCDR_20' ) start [2025-04-10 16:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878218', 'tblTempVendorCDR_20' ) end [2025-04-10 16:50:23] Production.INFO: ProcessCDR(1,14878218,1,1,2) [2025-04-10 16:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:50:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:50:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:50:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878218', 'tblTempUsageDetail_20' ) start [2025-04-10 16:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878218', 'tblTempUsageDetail_20' ) end [2025-04-10 16:50:29] Production.ERROR: pbx prc_insertCDR start [2025-04-10 16:50:29] Production.ERROR: pbx prc_insertCDR end [2025-04-10 16:50:29] Production.INFO: ==10803== Releasing lock... [2025-04-10 16:50:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 16:50:29] Production.INFO: 63.75 MB #Memory Used# [2025-04-10 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 13:51:05 [end_date_ymd] => 2025-04-10 16:51:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 13:51:05' and `end` < '2025-04-10 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-04-10 16:51:19] Production.INFO: count ==4754 [2025-04-10 16:51:21] Production.ERROR: pbx CDR StartTime 2025-04-10 13:51:05 - End Time 2025-04-10 16:51:05 [2025-04-10 16:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878223', 'tblTempUsageDetail_20' ) start [2025-04-10 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878223', 'tblTempUsageDetail_20' ) end [2025-04-10 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878223', 'tblTempVendorCDR_20' ) start [2025-04-10 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878223', 'tblTempVendorCDR_20' ) end [2025-04-10 16:51:21] Production.INFO: ProcessCDR(1,14878223,1,1,2) [2025-04-10 16:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878223', 'tblTempUsageDetail_20' ) start [2025-04-10 16:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878223', 'tblTempUsageDetail_20' ) end [2025-04-10 16:51:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 16:51:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 16:51:27] Production.INFO: ==10879== Releasing lock... [2025-04-10 16:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 16:51:27] Production.INFO: 63.5 MB #Memory Used# [2025-04-10 16:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 13:52:06 [end_date_ymd] => 2025-04-10 16:52:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 13:52:06' and `end` < '2025-04-10 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-04-10 16:52:20] Production.INFO: count ==4733 [2025-04-10 16:52:22] Production.ERROR: pbx CDR StartTime 2025-04-10 13:52:06 - End Time 2025-04-10 16:52:06 [2025-04-10 16:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878228', 'tblTempUsageDetail_20' ) start [2025-04-10 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878228', 'tblTempUsageDetail_20' ) end [2025-04-10 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878228', 'tblTempVendorCDR_20' ) start [2025-04-10 16:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878228', 'tblTempVendorCDR_20' ) end [2025-04-10 16:52:22] Production.INFO: ProcessCDR(1,14878228,1,1,2) [2025-04-10 16:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:52:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878228', 'tblTempUsageDetail_20' ) start [2025-04-10 16:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878228', 'tblTempUsageDetail_20' ) end [2025-04-10 16:52:28] Production.ERROR: pbx prc_insertCDR start [2025-04-10 16:52:29] Production.ERROR: pbx prc_insertCDR end [2025-04-10 16:52:29] Production.INFO: ==10960== Releasing lock... [2025-04-10 16:52:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 16:52:29] Production.INFO: 63.5 MB #Memory Used# [2025-04-10 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 13:53:05 [end_date_ymd] => 2025-04-10 16:53:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 13:53:05' and `end` < '2025-04-10 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-04-10 16:53:19] Production.INFO: count ==4728 [2025-04-10 16:53:21] Production.ERROR: pbx CDR StartTime 2025-04-10 13:53:05 - End Time 2025-04-10 16:53:05 [2025-04-10 16:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878233', 'tblTempUsageDetail_20' ) start [2025-04-10 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878233', 'tblTempUsageDetail_20' ) end [2025-04-10 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878233', 'tblTempVendorCDR_20' ) start [2025-04-10 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878233', 'tblTempVendorCDR_20' ) end [2025-04-10 16:53:21] Production.INFO: ProcessCDR(1,14878233,1,1,2) [2025-04-10 16:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878233', 'tblTempUsageDetail_20' ) start [2025-04-10 16:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878233', 'tblTempUsageDetail_20' ) end [2025-04-10 16:53:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 16:53:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 16:53:28] Production.INFO: ==11030== Releasing lock... [2025-04-10 16:53:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 16:53:28] Production.INFO: 63.5 MB #Memory Used# [2025-04-10 16:54:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 13:54:07 [end_date_ymd] => 2025-04-10 16:54:07 [RateCDR] => 1 ) [2025-04-10 16:54: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-04-10 13:54:07' and `end` < '2025-04-10 16:54: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-04-10 16:54:21] Production.INFO: count ==4721 [2025-04-10 16:54:23] Production.ERROR: pbx CDR StartTime 2025-04-10 13:54:07 - End Time 2025-04-10 16:54:07 [2025-04-10 16:54:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 16:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878238', 'tblTempUsageDetail_20' ) start [2025-04-10 16:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878238', 'tblTempUsageDetail_20' ) end [2025-04-10 16:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878238', 'tblTempVendorCDR_20' ) start [2025-04-10 16:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878238', 'tblTempVendorCDR_20' ) end [2025-04-10 16:54:23] Production.INFO: ProcessCDR(1,14878238,1,1,2) [2025-04-10 16:54:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:54:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:54:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:54:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:54:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878238', 'tblTempUsageDetail_20' ) start [2025-04-10 16:54:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878238', 'tblTempUsageDetail_20' ) end [2025-04-10 16:54:29] Production.ERROR: pbx prc_insertCDR start [2025-04-10 16:54:29] Production.ERROR: pbx prc_insertCDR end [2025-04-10 16:54:29] Production.INFO: ==11106== Releasing lock... [2025-04-10 16:54:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 16:54:29] Production.INFO: 63.25 MB #Memory Used# [2025-04-10 16:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 13:55:06 [end_date_ymd] => 2025-04-10 16:55:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 13:55:06' and `end` < '2025-04-10 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-04-10 16:55:20] Production.INFO: count ==4729 [2025-04-10 16:55:22] Production.ERROR: pbx CDR StartTime 2025-04-10 13:55:06 - End Time 2025-04-10 16:55:06 [2025-04-10 16:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 16:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878243', 'tblTempUsageDetail_20' ) start [2025-04-10 16:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878243', 'tblTempUsageDetail_20' ) end [2025-04-10 16:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878243', 'tblTempVendorCDR_20' ) start [2025-04-10 16:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878243', 'tblTempVendorCDR_20' ) end [2025-04-10 16:55:22] Production.INFO: ProcessCDR(1,14878243,1,1,2) [2025-04-10 16:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:55:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878243', 'tblTempUsageDetail_20' ) start [2025-04-10 16:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878243', 'tblTempUsageDetail_20' ) end [2025-04-10 16:55:28] Production.ERROR: pbx prc_insertCDR start [2025-04-10 16:55:28] Production.ERROR: pbx prc_insertCDR end [2025-04-10 16:55:28] Production.INFO: ==11182== Releasing lock... [2025-04-10 16:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 16:55:28] Production.INFO: 63.5 MB #Memory Used# [2025-04-10 16:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 13:56:06 [end_date_ymd] => 2025-04-10 16:56:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 13:56:06' and `end` < '2025-04-10 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-04-10 16:56:20] Production.INFO: count ==4730 [2025-04-10 16:56:22] Production.ERROR: pbx CDR StartTime 2025-04-10 13:56:06 - End Time 2025-04-10 16:56:06 [2025-04-10 16:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 16:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878248', 'tblTempUsageDetail_20' ) start [2025-04-10 16:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878248', 'tblTempUsageDetail_20' ) end [2025-04-10 16:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878248', 'tblTempVendorCDR_20' ) start [2025-04-10 16:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878248', 'tblTempVendorCDR_20' ) end [2025-04-10 16:56:23] Production.INFO: ProcessCDR(1,14878248,1,1,2) [2025-04-10 16:56:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:56:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:56:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:56:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878248', 'tblTempUsageDetail_20' ) start [2025-04-10 16:56:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878248', 'tblTempUsageDetail_20' ) end [2025-04-10 16:56:29] Production.ERROR: pbx prc_insertCDR start [2025-04-10 16:56:29] Production.ERROR: pbx prc_insertCDR end [2025-04-10 16:56:29] Production.INFO: ==11297== Releasing lock... [2025-04-10 16:56:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 16:56:29] Production.INFO: 63.5 MB #Memory Used# [2025-04-10 16:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 13:57:06 [end_date_ymd] => 2025-04-10 16:57:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 13:57:06' and `end` < '2025-04-10 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-04-10 16:57:20] Production.INFO: count ==4727 [2025-04-10 16:57:22] Production.ERROR: pbx CDR StartTime 2025-04-10 13:57:06 - End Time 2025-04-10 16:57:06 [2025-04-10 16:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 16:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878253', 'tblTempUsageDetail_20' ) start [2025-04-10 16:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878253', 'tblTempUsageDetail_20' ) end [2025-04-10 16:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878253', 'tblTempVendorCDR_20' ) start [2025-04-10 16:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878253', 'tblTempVendorCDR_20' ) end [2025-04-10 16:57:22] Production.INFO: ProcessCDR(1,14878253,1,1,2) [2025-04-10 16:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:57:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878253', 'tblTempUsageDetail_20' ) start [2025-04-10 16:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878253', 'tblTempUsageDetail_20' ) end [2025-04-10 16:57:28] Production.ERROR: pbx prc_insertCDR start [2025-04-10 16:57:28] Production.ERROR: pbx prc_insertCDR end [2025-04-10 16:57:28] Production.INFO: ==11368== Releasing lock... [2025-04-10 16:57:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 16:57:28] Production.INFO: 63.5 MB #Memory Used# [2025-04-10 16:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 13:58:06 [end_date_ymd] => 2025-04-10 16:58:06 [RateCDR] => 1 ) [2025-04-10 16:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 13:58:06' and `end` < '2025-04-10 16:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 16:58:19] Production.INFO: count ==4718 [2025-04-10 16:58:21] Production.ERROR: pbx CDR StartTime 2025-04-10 13:58:06 - End Time 2025-04-10 16:58:06 [2025-04-10 16:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878258', 'tblTempUsageDetail_20' ) start [2025-04-10 16:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878258', 'tblTempUsageDetail_20' ) end [2025-04-10 16:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878258', 'tblTempVendorCDR_20' ) start [2025-04-10 16:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878258', 'tblTempVendorCDR_20' ) end [2025-04-10 16:58:22] Production.INFO: ProcessCDR(1,14878258,1,1,2) [2025-04-10 16:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878258', 'tblTempUsageDetail_20' ) start [2025-04-10 16:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878258', 'tblTempUsageDetail_20' ) end [2025-04-10 16:58:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 16:58:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 16:58:27] Production.INFO: ==11446== Releasing lock... [2025-04-10 16:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 16:58:27] Production.INFO: 63.25 MB #Memory Used# [2025-04-10 16:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 13:59:06 [end_date_ymd] => 2025-04-10 16:59:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 13:59:06' and `end` < '2025-04-10 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-04-10 16:59:20] Production.INFO: count ==4719 [2025-04-10 16:59:22] Production.ERROR: pbx CDR StartTime 2025-04-10 13:59:06 - End Time 2025-04-10 16:59:06 [2025-04-10 16:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 16:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878263', 'tblTempUsageDetail_20' ) start [2025-04-10 16:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878263', 'tblTempUsageDetail_20' ) end [2025-04-10 16:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878263', 'tblTempVendorCDR_20' ) start [2025-04-10 16:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878263', 'tblTempVendorCDR_20' ) end [2025-04-10 16:59:22] Production.INFO: ProcessCDR(1,14878263,1,1,2) [2025-04-10 16:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 16:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:59:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 16:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878263', 'tblTempUsageDetail_20' ) start [2025-04-10 16:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878263', 'tblTempUsageDetail_20' ) end [2025-04-10 16:59:28] Production.ERROR: pbx prc_insertCDR start [2025-04-10 16:59:28] Production.ERROR: pbx prc_insertCDR end [2025-04-10 16:59:28] Production.INFO: ==11517== Releasing lock... [2025-04-10 16:59:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 16:59:28] Production.INFO: 63.25 MB #Memory Used# [2025-04-10 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 14:00:06 [end_date_ymd] => 2025-04-10 17:00:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 14:00:06' and `end` < '2025-04-10 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-04-10 17:00:21] Production.INFO: count ==4723 [2025-04-10 17:00:25] Production.ERROR: pbx CDR StartTime 2025-04-10 14:00:06 - End Time 2025-04-10 17:00:06 [2025-04-10 17:00:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 17:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878269', 'tblTempUsageDetail_20' ) start [2025-04-10 17:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878269', 'tblTempUsageDetail_20' ) end [2025-04-10 17:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878269', 'tblTempVendorCDR_20' ) start [2025-04-10 17:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878269', 'tblTempVendorCDR_20' ) end [2025-04-10 17:00:25] Production.INFO: ProcessCDR(1,14878269,1,1,2) [2025-04-10 17:00:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:00:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:00:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:00:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878269', 'tblTempUsageDetail_20' ) start [2025-04-10 17:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878269', 'tblTempUsageDetail_20' ) end [2025-04-10 17:00:32] Production.ERROR: pbx prc_insertCDR start [2025-04-10 17:00:32] Production.ERROR: pbx prc_insertCDR end [2025-04-10 17:00:32] Production.INFO: ==11594== Releasing lock... [2025-04-10 17:00:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 17:00:32] Production.INFO: 63.25 MB #Memory Used# [2025-04-10 17:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 14:01:06 [end_date_ymd] => 2025-04-10 17:01:06 [RateCDR] => 1 ) [2025-04-10 17:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 14:01:06' and `end` < '2025-04-10 17:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 17:01:20] Production.INFO: count ==4705 [2025-04-10 17:01:22] Production.ERROR: pbx CDR StartTime 2025-04-10 14:01:06 - End Time 2025-04-10 17:01:06 [2025-04-10 17:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878274', 'tblTempUsageDetail_20' ) start [2025-04-10 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878274', 'tblTempUsageDetail_20' ) end [2025-04-10 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878274', 'tblTempVendorCDR_20' ) start [2025-04-10 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878274', 'tblTempVendorCDR_20' ) end [2025-04-10 17:01:22] Production.INFO: ProcessCDR(1,14878274,1,1,2) [2025-04-10 17:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:01:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878274', 'tblTempUsageDetail_20' ) start [2025-04-10 17:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878274', 'tblTempUsageDetail_20' ) end [2025-04-10 17:01:28] Production.ERROR: pbx prc_insertCDR start [2025-04-10 17:01:28] Production.ERROR: pbx prc_insertCDR end [2025-04-10 17:01:28] Production.INFO: ==11694== Releasing lock... [2025-04-10 17:01:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 17:01:28] Production.INFO: 63.25 MB #Memory Used# [2025-04-10 17:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 14:02:06 [end_date_ymd] => 2025-04-10 17:02:06 [RateCDR] => 1 ) [2025-04-10 17:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 14:02:06' and `end` < '2025-04-10 17:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 17:02:20] Production.INFO: count ==4698 [2025-04-10 17:02:22] Production.ERROR: pbx CDR StartTime 2025-04-10 14:02:06 - End Time 2025-04-10 17:02:06 [2025-04-10 17:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878279', 'tblTempUsageDetail_20' ) start [2025-04-10 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878279', 'tblTempUsageDetail_20' ) end [2025-04-10 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878279', 'tblTempVendorCDR_20' ) start [2025-04-10 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878279', 'tblTempVendorCDR_20' ) end [2025-04-10 17:02:22] Production.INFO: ProcessCDR(1,14878279,1,1,2) [2025-04-10 17:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878279', 'tblTempUsageDetail_20' ) start [2025-04-10 17:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878279', 'tblTempUsageDetail_20' ) end [2025-04-10 17:02:28] Production.ERROR: pbx prc_insertCDR start [2025-04-10 17:02:28] Production.ERROR: pbx prc_insertCDR end [2025-04-10 17:02:28] Production.INFO: ==11800== Releasing lock... [2025-04-10 17:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 17:02:28] Production.INFO: 63.25 MB #Memory Used# [2025-04-10 17:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 14:03:06 [end_date_ymd] => 2025-04-10 17:03:06 [RateCDR] => 1 ) [2025-04-10 17:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 14:03:06' and `end` < '2025-04-10 17:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 17:03:19] Production.INFO: count ==4714 [2025-04-10 17:03:21] Production.ERROR: pbx CDR StartTime 2025-04-10 14:03:06 - End Time 2025-04-10 17:03:06 [2025-04-10 17:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878284', 'tblTempUsageDetail_20' ) start [2025-04-10 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878284', 'tblTempUsageDetail_20' ) end [2025-04-10 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878284', 'tblTempVendorCDR_20' ) start [2025-04-10 17:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878284', 'tblTempVendorCDR_20' ) end [2025-04-10 17:03:22] Production.INFO: ProcessCDR(1,14878284,1,1,2) [2025-04-10 17:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878284', 'tblTempUsageDetail_20' ) start [2025-04-10 17:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878284', 'tblTempUsageDetail_20' ) end [2025-04-10 17:03:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 17:03:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 17:03:27] Production.INFO: ==11871== Releasing lock... [2025-04-10 17:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 17:03:27] Production.INFO: 63.25 MB #Memory Used# [2025-04-10 17:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 14:04:06 [end_date_ymd] => 2025-04-10 17:04:06 [RateCDR] => 1 ) [2025-04-10 17:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 14:04:06' and `end` < '2025-04-10 17:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 17:04:20] Production.INFO: count ==4702 [2025-04-10 17:04:22] Production.ERROR: pbx CDR StartTime 2025-04-10 14:04:06 - End Time 2025-04-10 17:04:06 [2025-04-10 17:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878289', 'tblTempUsageDetail_20' ) start [2025-04-10 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878289', 'tblTempUsageDetail_20' ) end [2025-04-10 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878289', 'tblTempVendorCDR_20' ) start [2025-04-10 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878289', 'tblTempVendorCDR_20' ) end [2025-04-10 17:04:22] Production.INFO: ProcessCDR(1,14878289,1,1,2) [2025-04-10 17:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878289', 'tblTempUsageDetail_20' ) start [2025-04-10 17:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878289', 'tblTempUsageDetail_20' ) end [2025-04-10 17:04:28] Production.ERROR: pbx prc_insertCDR start [2025-04-10 17:04:28] Production.ERROR: pbx prc_insertCDR end [2025-04-10 17:04:28] Production.INFO: ==11947== Releasing lock... [2025-04-10 17:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 17:04:28] Production.INFO: 63.25 MB #Memory Used# [2025-04-10 17:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 14:05:05 [end_date_ymd] => 2025-04-10 17:05:05 [RateCDR] => 1 ) [2025-04-10 17:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 14:05:05' and `end` < '2025-04-10 17:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 17:05:19] Production.INFO: count ==4684 [2025-04-10 17:05:21] Production.ERROR: pbx CDR StartTime 2025-04-10 14:05:05 - End Time 2025-04-10 17:05:05 [2025-04-10 17:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878294', 'tblTempUsageDetail_20' ) start [2025-04-10 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878294', 'tblTempUsageDetail_20' ) end [2025-04-10 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878294', 'tblTempVendorCDR_20' ) start [2025-04-10 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878294', 'tblTempVendorCDR_20' ) end [2025-04-10 17:05:21] Production.INFO: ProcessCDR(1,14878294,1,1,2) [2025-04-10 17:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878294', 'tblTempUsageDetail_20' ) start [2025-04-10 17:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878294', 'tblTempUsageDetail_20' ) end [2025-04-10 17:05:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 17:05:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 17:05:27] Production.INFO: ==12021== Releasing lock... [2025-04-10 17:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 17:05:27] Production.INFO: 63 MB #Memory Used# [2025-04-10 17:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 14:06:06 [end_date_ymd] => 2025-04-10 17:06:06 [RateCDR] => 1 ) [2025-04-10 17: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-04-10 14:06:06' and `end` < '2025-04-10 17: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-04-10 17:06:20] Production.INFO: count ==4677 [2025-04-10 17:06:22] Production.ERROR: pbx CDR StartTime 2025-04-10 14:06:06 - End Time 2025-04-10 17:06:06 [2025-04-10 17:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 17:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878299', 'tblTempUsageDetail_20' ) start [2025-04-10 17:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878299', 'tblTempUsageDetail_20' ) end [2025-04-10 17:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878299', 'tblTempVendorCDR_20' ) start [2025-04-10 17:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878299', 'tblTempVendorCDR_20' ) end [2025-04-10 17:06:22] Production.INFO: ProcessCDR(1,14878299,1,1,2) [2025-04-10 17:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878299', 'tblTempUsageDetail_20' ) start [2025-04-10 17:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878299', 'tblTempUsageDetail_20' ) end [2025-04-10 17:06:28] Production.ERROR: pbx prc_insertCDR start [2025-04-10 17:06:28] Production.ERROR: pbx prc_insertCDR end [2025-04-10 17:06:28] Production.INFO: ==12096== Releasing lock... [2025-04-10 17:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 17:06:28] Production.INFO: 63 MB #Memory Used# [2025-04-10 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 14:07:05 [end_date_ymd] => 2025-04-10 17:07:05 [RateCDR] => 1 ) [2025-04-10 17:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 14:07:05' and `end` < '2025-04-10 17:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 17:07:19] Production.INFO: count ==4662 [2025-04-10 17:07:21] Production.ERROR: pbx CDR StartTime 2025-04-10 14:07:05 - End Time 2025-04-10 17:07:05 [2025-04-10 17:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878304', 'tblTempUsageDetail_20' ) start [2025-04-10 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878304', 'tblTempUsageDetail_20' ) end [2025-04-10 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878304', 'tblTempVendorCDR_20' ) start [2025-04-10 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878304', 'tblTempVendorCDR_20' ) end [2025-04-10 17:07:21] Production.INFO: ProcessCDR(1,14878304,1,1,2) [2025-04-10 17:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878304', 'tblTempUsageDetail_20' ) start [2025-04-10 17:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878304', 'tblTempUsageDetail_20' ) end [2025-04-10 17:07:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 17:07:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 17:07:27] Production.INFO: ==12170== Releasing lock... [2025-04-10 17:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 17:07:27] Production.INFO: 63 MB #Memory Used# [2025-04-10 17:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 14:08:05 [end_date_ymd] => 2025-04-10 17:08:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 14:08:05' and `end` < '2025-04-10 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-04-10 17:08:19] Production.INFO: count ==4636 [2025-04-10 17:08:21] Production.ERROR: pbx CDR StartTime 2025-04-10 14:08:05 - End Time 2025-04-10 17:08:05 [2025-04-10 17:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878309', 'tblTempUsageDetail_20' ) start [2025-04-10 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878309', 'tblTempUsageDetail_20' ) end [2025-04-10 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878309', 'tblTempVendorCDR_20' ) start [2025-04-10 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878309', 'tblTempVendorCDR_20' ) end [2025-04-10 17:08:21] Production.INFO: ProcessCDR(1,14878309,1,1,2) [2025-04-10 17:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878309', 'tblTempUsageDetail_20' ) start [2025-04-10 17:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878309', 'tblTempUsageDetail_20' ) end [2025-04-10 17:08:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 17:08:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 17:08:27] Production.INFO: ==12251== Releasing lock... [2025-04-10 17:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 17:08:27] Production.INFO: 62.75 MB #Memory Used# [2025-04-10 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 14:09:05 [end_date_ymd] => 2025-04-10 17:09:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 14:09:05' and `end` < '2025-04-10 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-04-10 17:09:18] Production.INFO: count ==4628 [2025-04-10 17:09:20] Production.ERROR: pbx CDR StartTime 2025-04-10 14:09:05 - End Time 2025-04-10 17:09:05 [2025-04-10 17:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 17:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878314', 'tblTempUsageDetail_20' ) start [2025-04-10 17:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878314', 'tblTempUsageDetail_20' ) end [2025-04-10 17:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878314', 'tblTempVendorCDR_20' ) start [2025-04-10 17:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878314', 'tblTempVendorCDR_20' ) end [2025-04-10 17:09:20] Production.INFO: ProcessCDR(1,14878314,1,1,2) [2025-04-10 17:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878314', 'tblTempUsageDetail_20' ) start [2025-04-10 17:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878314', 'tblTempUsageDetail_20' ) end [2025-04-10 17:09:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 17:09:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 17:09:26] Production.INFO: ==12331== Releasing lock... [2025-04-10 17:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 17:09:26] Production.INFO: 63 MB #Memory Used# [2025-04-10 17:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 14:10:06 [end_date_ymd] => 2025-04-10 17:10:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 14:10:06' and `end` < '2025-04-10 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-04-10 17:10:20] Production.INFO: count ==4622 [2025-04-10 17:10:22] Production.ERROR: pbx CDR StartTime 2025-04-10 14:10:06 - End Time 2025-04-10 17:10:06 [2025-04-10 17:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878319', 'tblTempUsageDetail_20' ) start [2025-04-10 17:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878319', 'tblTempUsageDetail_20' ) end [2025-04-10 17:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878319', 'tblTempVendorCDR_20' ) start [2025-04-10 17:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878319', 'tblTempVendorCDR_20' ) end [2025-04-10 17:10:23] Production.INFO: ProcessCDR(1,14878319,1,1,2) [2025-04-10 17:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:10:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:10:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:10:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878319', 'tblTempUsageDetail_20' ) start [2025-04-10 17:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878319', 'tblTempUsageDetail_20' ) end [2025-04-10 17:10:29] Production.ERROR: pbx prc_insertCDR start [2025-04-10 17:10:29] Production.ERROR: pbx prc_insertCDR end [2025-04-10 17:10:29] Production.INFO: ==12407== Releasing lock... [2025-04-10 17:10:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 17:10:29] Production.INFO: 62.5 MB #Memory Used# [2025-04-10 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 14:11:05 [end_date_ymd] => 2025-04-10 17:11:05 [RateCDR] => 1 ) [2025-04-10 17:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 14:11:05' and `end` < '2025-04-10 17:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 17:11:19] Production.INFO: count ==4549 [2025-04-10 17:11:20] Production.ERROR: pbx CDR StartTime 2025-04-10 14:11:05 - End Time 2025-04-10 17:11:05 [2025-04-10 17:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 17:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878325', 'tblTempUsageDetail_20' ) start [2025-04-10 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878325', 'tblTempUsageDetail_20' ) end [2025-04-10 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878325', 'tblTempVendorCDR_20' ) start [2025-04-10 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878325', 'tblTempVendorCDR_20' ) end [2025-04-10 17:11:21] Production.INFO: ProcessCDR(1,14878325,1,1,2) [2025-04-10 17:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878325', 'tblTempUsageDetail_20' ) start [2025-04-10 17:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878325', 'tblTempUsageDetail_20' ) end [2025-04-10 17:11:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 17:11:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 17:11:26] Production.INFO: ==12515== Releasing lock... [2025-04-10 17:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 17:11:26] Production.INFO: 62 MB #Memory Used# [2025-04-10 17:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 14:12:06 [end_date_ymd] => 2025-04-10 17:12:06 [RateCDR] => 1 ) [2025-04-10 17: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-04-10 14:12:06' and `end` < '2025-04-10 17: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-04-10 17:12:20] Production.INFO: count ==4548 [2025-04-10 17:12:21] Production.ERROR: pbx CDR StartTime 2025-04-10 14:12:06 - End Time 2025-04-10 17:12:06 [2025-04-10 17:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878330', 'tblTempUsageDetail_20' ) start [2025-04-10 17:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878330', 'tblTempUsageDetail_20' ) end [2025-04-10 17:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878330', 'tblTempVendorCDR_20' ) start [2025-04-10 17:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878330', 'tblTempVendorCDR_20' ) end [2025-04-10 17:12:22] Production.INFO: ProcessCDR(1,14878330,1,1,2) [2025-04-10 17:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878330', 'tblTempUsageDetail_20' ) start [2025-04-10 17:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878330', 'tblTempUsageDetail_20' ) end [2025-04-10 17:12:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 17:12:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 17:12:28] Production.INFO: ==12625== Releasing lock... [2025-04-10 17:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 17:12:28] Production.INFO: 62 MB #Memory Used# [2025-04-10 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 14:13:05 [end_date_ymd] => 2025-04-10 17:13:05 [RateCDR] => 1 ) [2025-04-10 17:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 14:13:05' and `end` < '2025-04-10 17:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 17:13:19] Production.INFO: count ==4537 [2025-04-10 17:13:21] Production.ERROR: pbx CDR StartTime 2025-04-10 14:13:05 - End Time 2025-04-10 17:13:05 [2025-04-10 17:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878335', 'tblTempUsageDetail_20' ) start [2025-04-10 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878335', 'tblTempUsageDetail_20' ) end [2025-04-10 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878335', 'tblTempVendorCDR_20' ) start [2025-04-10 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878335', 'tblTempVendorCDR_20' ) end [2025-04-10 17:13:21] Production.INFO: ProcessCDR(1,14878335,1,1,2) [2025-04-10 17:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878335', 'tblTempUsageDetail_20' ) start [2025-04-10 17:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878335', 'tblTempUsageDetail_20' ) end [2025-04-10 17:13:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 17:13:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 17:13:27] Production.INFO: ==12702== Releasing lock... [2025-04-10 17:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 17:13:27] Production.INFO: 62 MB #Memory Used# [2025-04-10 17:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 14:14:06 [end_date_ymd] => 2025-04-10 17:14:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 14:14:06' and `end` < '2025-04-10 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-04-10 17:14:20] Production.INFO: count ==4532 [2025-04-10 17:14:22] Production.ERROR: pbx CDR StartTime 2025-04-10 14:14:06 - End Time 2025-04-10 17:14:06 [2025-04-10 17:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 17:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878340', 'tblTempUsageDetail_20' ) start [2025-04-10 17:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878340', 'tblTempUsageDetail_20' ) end [2025-04-10 17:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878340', 'tblTempVendorCDR_20' ) start [2025-04-10 17:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878340', 'tblTempVendorCDR_20' ) end [2025-04-10 17:14:22] Production.INFO: ProcessCDR(1,14878340,1,1,2) [2025-04-10 17:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878340', 'tblTempUsageDetail_20' ) start [2025-04-10 17:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878340', 'tblTempUsageDetail_20' ) end [2025-04-10 17:14:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 17:14:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 17:14:27] Production.INFO: ==12780== Releasing lock... [2025-04-10 17:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 17:14:27] Production.INFO: 62 MB #Memory Used# [2025-04-10 17:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 14:15:05 [end_date_ymd] => 2025-04-10 17:15:05 [RateCDR] => 1 ) [2025-04-10 17:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 14:15:05' and `end` < '2025-04-10 17:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 17:15:19] Production.INFO: count ==4528 [2025-04-10 17:15:21] Production.ERROR: pbx CDR StartTime 2025-04-10 14:15:05 - End Time 2025-04-10 17:15:05 [2025-04-10 17:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878345', 'tblTempUsageDetail_20' ) start [2025-04-10 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878345', 'tblTempUsageDetail_20' ) end [2025-04-10 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878345', 'tblTempVendorCDR_20' ) start [2025-04-10 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878345', 'tblTempVendorCDR_20' ) end [2025-04-10 17:15:21] Production.INFO: ProcessCDR(1,14878345,1,1,2) [2025-04-10 17:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878345', 'tblTempUsageDetail_20' ) start [2025-04-10 17:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878345', 'tblTempUsageDetail_20' ) end [2025-04-10 17:15:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 17:15:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 17:15:27] Production.INFO: ==12861== Releasing lock... [2025-04-10 17:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 17:15:27] Production.INFO: 62 MB #Memory Used# [2025-04-10 17:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 14:16:06 [end_date_ymd] => 2025-04-10 17:16:06 [RateCDR] => 1 ) [2025-04-10 17: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-04-10 14:16:06' and `end` < '2025-04-10 17: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-04-10 17:16:20] Production.INFO: count ==4525 [2025-04-10 17:16:22] Production.ERROR: pbx CDR StartTime 2025-04-10 14:16:06 - End Time 2025-04-10 17:16:06 [2025-04-10 17:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878350', 'tblTempUsageDetail_20' ) start [2025-04-10 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878350', 'tblTempUsageDetail_20' ) end [2025-04-10 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878350', 'tblTempVendorCDR_20' ) start [2025-04-10 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878350', 'tblTempVendorCDR_20' ) end [2025-04-10 17:16:22] Production.INFO: ProcessCDR(1,14878350,1,1,2) [2025-04-10 17:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:16:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878350', 'tblTempUsageDetail_20' ) start [2025-04-10 17:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878350', 'tblTempUsageDetail_20' ) end [2025-04-10 17:16:28] Production.ERROR: pbx prc_insertCDR start [2025-04-10 17:16:28] Production.ERROR: pbx prc_insertCDR end [2025-04-10 17:16:28] Production.INFO: ==12931== Releasing lock... [2025-04-10 17:16:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 17:16:28] Production.INFO: 62 MB #Memory Used# [2025-04-10 17:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 14:17:05 [end_date_ymd] => 2025-04-10 17:17:05 [RateCDR] => 1 ) [2025-04-10 17:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 14:17:05' and `end` < '2025-04-10 17:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 17:17:19] Production.INFO: count ==4536 [2025-04-10 17:17:21] Production.ERROR: pbx CDR StartTime 2025-04-10 14:17:05 - End Time 2025-04-10 17:17:05 [2025-04-10 17:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878355', 'tblTempUsageDetail_20' ) start [2025-04-10 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878355', 'tblTempUsageDetail_20' ) end [2025-04-10 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878355', 'tblTempVendorCDR_20' ) start [2025-04-10 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878355', 'tblTempVendorCDR_20' ) end [2025-04-10 17:17:21] Production.INFO: ProcessCDR(1,14878355,1,1,2) [2025-04-10 17:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878355', 'tblTempUsageDetail_20' ) start [2025-04-10 17:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878355', 'tblTempUsageDetail_20' ) end [2025-04-10 17:17:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 17:17:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 17:17:27] Production.INFO: ==13010== Releasing lock... [2025-04-10 17:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 17:17:27] Production.INFO: 62 MB #Memory Used# [2025-04-10 17:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 14:18:06 [end_date_ymd] => 2025-04-10 17:18:06 [RateCDR] => 1 ) [2025-04-10 17:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 14:18:06' and `end` < '2025-04-10 17:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 17:18:20] Production.INFO: count ==4540 [2025-04-10 17:18:21] Production.ERROR: pbx CDR StartTime 2025-04-10 14:18:06 - End Time 2025-04-10 17:18:06 [2025-04-10 17:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878360', 'tblTempUsageDetail_20' ) start [2025-04-10 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878360', 'tblTempUsageDetail_20' ) end [2025-04-10 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878360', 'tblTempVendorCDR_20' ) start [2025-04-10 17:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878360', 'tblTempVendorCDR_20' ) end [2025-04-10 17:18:22] Production.INFO: ProcessCDR(1,14878360,1,1,2) [2025-04-10 17:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878360', 'tblTempUsageDetail_20' ) start [2025-04-10 17:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878360', 'tblTempUsageDetail_20' ) end [2025-04-10 17:18:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 17:18:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 17:18:27] Production.INFO: ==13094== Releasing lock... [2025-04-10 17:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 17:18:27] Production.INFO: 62 MB #Memory Used# [2025-04-10 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 14:19:05 [end_date_ymd] => 2025-04-10 17:19:05 [RateCDR] => 1 ) [2025-04-10 17:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 14:19:05' and `end` < '2025-04-10 17:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 17:19:19] Production.INFO: count ==4533 [2025-04-10 17:19:21] Production.ERROR: pbx CDR StartTime 2025-04-10 14:19:05 - End Time 2025-04-10 17:19:05 [2025-04-10 17:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878365', 'tblTempUsageDetail_20' ) start [2025-04-10 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878365', 'tblTempUsageDetail_20' ) end [2025-04-10 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878365', 'tblTempVendorCDR_20' ) start [2025-04-10 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878365', 'tblTempVendorCDR_20' ) end [2025-04-10 17:19:21] Production.INFO: ProcessCDR(1,14878365,1,1,2) [2025-04-10 17:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878365', 'tblTempUsageDetail_20' ) start [2025-04-10 17:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878365', 'tblTempUsageDetail_20' ) end [2025-04-10 17:19:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 17:19:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 17:19:27] Production.INFO: ==13173== Releasing lock... [2025-04-10 17:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 17:19:27] Production.INFO: 62 MB #Memory Used# [2025-04-10 17:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 14:20:07 [end_date_ymd] => 2025-04-10 17:20:07 [RateCDR] => 1 ) [2025-04-10 17: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-04-10 14:20:07' and `end` < '2025-04-10 17: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-04-10 17:20:21] Production.INFO: count ==4533 [2025-04-10 17:20:22] Production.ERROR: pbx CDR StartTime 2025-04-10 14:20:07 - End Time 2025-04-10 17:20:07 [2025-04-10 17:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 17:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878371', 'tblTempUsageDetail_20' ) start [2025-04-10 17:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878371', 'tblTempUsageDetail_20' ) end [2025-04-10 17:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878371', 'tblTempVendorCDR_20' ) start [2025-04-10 17:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878371', 'tblTempVendorCDR_20' ) end [2025-04-10 17:20:23] Production.INFO: ProcessCDR(1,14878371,1,1,2) [2025-04-10 17:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878371', 'tblTempUsageDetail_20' ) start [2025-04-10 17:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878371', 'tblTempUsageDetail_20' ) end [2025-04-10 17:20:28] Production.ERROR: pbx prc_insertCDR start [2025-04-10 17:20:28] Production.ERROR: pbx prc_insertCDR end [2025-04-10 17:20:28] Production.INFO: ==13248== Releasing lock... [2025-04-10 17:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 17:20:28] Production.INFO: 62 MB #Memory Used# [2025-04-10 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 14:21:05 [end_date_ymd] => 2025-04-10 17:21:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 14:21:05' and `end` < '2025-04-10 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-04-10 17:21:19] Production.INFO: count ==4542 [2025-04-10 17:21:21] Production.ERROR: pbx CDR StartTime 2025-04-10 14:21:05 - End Time 2025-04-10 17:21:05 [2025-04-10 17:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878376', 'tblTempUsageDetail_20' ) start [2025-04-10 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878376', 'tblTempUsageDetail_20' ) end [2025-04-10 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878376', 'tblTempVendorCDR_20' ) start [2025-04-10 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878376', 'tblTempVendorCDR_20' ) end [2025-04-10 17:21:21] Production.INFO: ProcessCDR(1,14878376,1,1,2) [2025-04-10 17:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878376', 'tblTempUsageDetail_20' ) start [2025-04-10 17:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878376', 'tblTempUsageDetail_20' ) end [2025-04-10 17:21:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 17:21:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 17:21:27] Production.INFO: ==13323== Releasing lock... [2025-04-10 17:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 17:21:27] Production.INFO: 62 MB #Memory Used# [2025-04-10 17:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 14:22:05 [end_date_ymd] => 2025-04-10 17:22:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 14:22:05' and `end` < '2025-04-10 17:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 17:22:19] Production.INFO: count ==4509 [2025-04-10 17:22:21] Production.ERROR: pbx CDR StartTime 2025-04-10 14:22:05 - End Time 2025-04-10 17:22:05 [2025-04-10 17:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878381', 'tblTempUsageDetail_20' ) start [2025-04-10 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878381', 'tblTempUsageDetail_20' ) end [2025-04-10 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878381', 'tblTempVendorCDR_20' ) start [2025-04-10 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878381', 'tblTempVendorCDR_20' ) end [2025-04-10 17:22:21] Production.INFO: ProcessCDR(1,14878381,1,1,2) [2025-04-10 17:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878381', 'tblTempUsageDetail_20' ) start [2025-04-10 17:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878381', 'tblTempUsageDetail_20' ) end [2025-04-10 17:22:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 17:22:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 17:22:27] Production.INFO: ==13397== Releasing lock... [2025-04-10 17:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 17:22:27] Production.INFO: 61.75 MB #Memory Used# [2025-04-10 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 14:23:05 [end_date_ymd] => 2025-04-10 17:23:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 14:23:05' and `end` < '2025-04-10 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-04-10 17:23:19] Production.INFO: count ==4495 [2025-04-10 17:23:21] Production.ERROR: pbx CDR StartTime 2025-04-10 14:23:05 - End Time 2025-04-10 17:23:05 [2025-04-10 17:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878386', 'tblTempUsageDetail_20' ) start [2025-04-10 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878386', 'tblTempUsageDetail_20' ) end [2025-04-10 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878386', 'tblTempVendorCDR_20' ) start [2025-04-10 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878386', 'tblTempVendorCDR_20' ) end [2025-04-10 17:23:21] Production.INFO: ProcessCDR(1,14878386,1,1,2) [2025-04-10 17:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878386', 'tblTempUsageDetail_20' ) start [2025-04-10 17:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878386', 'tblTempUsageDetail_20' ) end [2025-04-10 17:23:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 17:23:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 17:23:27] Production.INFO: ==13469== Releasing lock... [2025-04-10 17:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 17:23:27] Production.INFO: 61.75 MB #Memory Used# [2025-04-10 17:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 14:24:06 [end_date_ymd] => 2025-04-10 17:24:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 14:24:06' and `end` < '2025-04-10 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-04-10 17:24:20] Production.INFO: count ==4490 [2025-04-10 17:24:22] Production.ERROR: pbx CDR StartTime 2025-04-10 14:24:06 - End Time 2025-04-10 17:24:06 [2025-04-10 17:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878391', 'tblTempUsageDetail_20' ) start [2025-04-10 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878391', 'tblTempUsageDetail_20' ) end [2025-04-10 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878391', 'tblTempVendorCDR_20' ) start [2025-04-10 17:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878391', 'tblTempVendorCDR_20' ) end [2025-04-10 17:24:22] Production.INFO: ProcessCDR(1,14878391,1,1,2) [2025-04-10 17:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878391', 'tblTempUsageDetail_20' ) start [2025-04-10 17:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878391', 'tblTempUsageDetail_20' ) end [2025-04-10 17:24:28] Production.ERROR: pbx prc_insertCDR start [2025-04-10 17:24:28] Production.ERROR: pbx prc_insertCDR end [2025-04-10 17:24:28] Production.INFO: ==13547== Releasing lock... [2025-04-10 17:24:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 17:24:28] Production.INFO: 61.5 MB #Memory Used# [2025-04-10 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 14:25:05 [end_date_ymd] => 2025-04-10 17:25:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 14:25:05' and `end` < '2025-04-10 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-04-10 17:25:19] Production.INFO: count ==4485 [2025-04-10 17:25:21] Production.ERROR: pbx CDR StartTime 2025-04-10 14:25:05 - End Time 2025-04-10 17:25:05 [2025-04-10 17:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878396', 'tblTempUsageDetail_20' ) start [2025-04-10 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878396', 'tblTempUsageDetail_20' ) end [2025-04-10 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878396', 'tblTempVendorCDR_20' ) start [2025-04-10 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878396', 'tblTempVendorCDR_20' ) end [2025-04-10 17:25:21] Production.INFO: ProcessCDR(1,14878396,1,1,2) [2025-04-10 17:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878396', 'tblTempUsageDetail_20' ) start [2025-04-10 17:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878396', 'tblTempUsageDetail_20' ) end [2025-04-10 17:25:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 17:25:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 17:25:27] Production.INFO: ==13627== Releasing lock... [2025-04-10 17:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 17:25:27] Production.INFO: 61.5 MB #Memory Used# [2025-04-10 17:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 14:26:06 [end_date_ymd] => 2025-04-10 17:26:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 14:26:06' and `end` < '2025-04-10 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-04-10 17:26:20] Production.INFO: count ==4481 [2025-04-10 17:26:22] Production.ERROR: pbx CDR StartTime 2025-04-10 14:26:06 - End Time 2025-04-10 17:26:06 [2025-04-10 17:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 17:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878401', 'tblTempUsageDetail_20' ) start [2025-04-10 17:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878401', 'tblTempUsageDetail_20' ) end [2025-04-10 17:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878401', 'tblTempVendorCDR_20' ) start [2025-04-10 17:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878401', 'tblTempVendorCDR_20' ) end [2025-04-10 17:26:22] Production.INFO: ProcessCDR(1,14878401,1,1,2) [2025-04-10 17:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:26:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878401', 'tblTempUsageDetail_20' ) start [2025-04-10 17:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878401', 'tblTempUsageDetail_20' ) end [2025-04-10 17:26:28] Production.ERROR: pbx prc_insertCDR start [2025-04-10 17:26:28] Production.ERROR: pbx prc_insertCDR end [2025-04-10 17:26:28] Production.INFO: ==13698== Releasing lock... [2025-04-10 17:26:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 17:26:28] Production.INFO: 61.5 MB #Memory Used# [2025-04-10 17:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 14:27:05 [end_date_ymd] => 2025-04-10 17:27:05 [RateCDR] => 1 ) [2025-04-10 17:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 14:27:05' and `end` < '2025-04-10 17:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 17:27:19] Production.INFO: count ==4486 [2025-04-10 17:27:21] Production.ERROR: pbx CDR StartTime 2025-04-10 14:27:05 - End Time 2025-04-10 17:27:05 [2025-04-10 17:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 17:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878406', 'tblTempUsageDetail_20' ) start [2025-04-10 17:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878406', 'tblTempUsageDetail_20' ) end [2025-04-10 17:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878406', 'tblTempVendorCDR_20' ) start [2025-04-10 17:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878406', 'tblTempVendorCDR_20' ) end [2025-04-10 17:27:21] Production.INFO: ProcessCDR(1,14878406,1,1,2) [2025-04-10 17:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878406', 'tblTempUsageDetail_20' ) start [2025-04-10 17:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878406', 'tblTempUsageDetail_20' ) end [2025-04-10 17:27:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 17:27:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 17:27:27] Production.INFO: ==13813== Releasing lock... [2025-04-10 17:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 17:27:27] Production.INFO: 61.5 MB #Memory Used# [2025-04-10 17:28:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 14:28:07 [end_date_ymd] => 2025-04-10 17:28:07 [RateCDR] => 1 ) [2025-04-10 17:28: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-04-10 14:28:07' and `end` < '2025-04-10 17:28: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-04-10 17:28:20] Production.INFO: count ==4476 [2025-04-10 17:28:22] Production.ERROR: pbx CDR StartTime 2025-04-10 14:28:07 - End Time 2025-04-10 17:28:07 [2025-04-10 17:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 17:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878411', 'tblTempUsageDetail_20' ) start [2025-04-10 17:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878411', 'tblTempUsageDetail_20' ) end [2025-04-10 17:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878411', 'tblTempVendorCDR_20' ) start [2025-04-10 17:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878411', 'tblTempVendorCDR_20' ) end [2025-04-10 17:28:22] Production.INFO: ProcessCDR(1,14878411,1,1,2) [2025-04-10 17:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:28:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878411', 'tblTempUsageDetail_20' ) start [2025-04-10 17:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878411', 'tblTempUsageDetail_20' ) end [2025-04-10 17:28:28] Production.ERROR: pbx prc_insertCDR start [2025-04-10 17:28:28] Production.ERROR: pbx prc_insertCDR end [2025-04-10 17:28:28] Production.INFO: ==13886== Releasing lock... [2025-04-10 17:28:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 17:28:28] Production.INFO: 61.5 MB #Memory Used# [2025-04-10 17:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 14:29:05 [end_date_ymd] => 2025-04-10 17:29:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 14:29:05' and `end` < '2025-04-10 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-04-10 17:29:19] Production.INFO: count ==4465 [2025-04-10 17:29:21] Production.ERROR: pbx CDR StartTime 2025-04-10 14:29:05 - End Time 2025-04-10 17:29:05 [2025-04-10 17:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 17:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878416', 'tblTempUsageDetail_20' ) start [2025-04-10 17:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878416', 'tblTempUsageDetail_20' ) end [2025-04-10 17:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878416', 'tblTempVendorCDR_20' ) start [2025-04-10 17:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878416', 'tblTempVendorCDR_20' ) end [2025-04-10 17:29:21] Production.INFO: ProcessCDR(1,14878416,1,1,2) [2025-04-10 17:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878416', 'tblTempUsageDetail_20' ) start [2025-04-10 17:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878416', 'tblTempUsageDetail_20' ) end [2025-04-10 17:29:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 17:29:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 17:29:27] Production.INFO: ==13968== Releasing lock... [2025-04-10 17:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 17:29:27] Production.INFO: 61.5 MB #Memory Used# [2025-04-10 17:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 14:30:07 [end_date_ymd] => 2025-04-10 17:30:07 [RateCDR] => 1 ) [2025-04-10 17: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-04-10 14:30:07' and `end` < '2025-04-10 17: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-04-10 17:30:21] Production.INFO: count ==4460 [2025-04-10 17:30:23] Production.ERROR: pbx CDR StartTime 2025-04-10 14:30:07 - End Time 2025-04-10 17:30:07 [2025-04-10 17:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 17:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878422', 'tblTempUsageDetail_20' ) start [2025-04-10 17:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878422', 'tblTempUsageDetail_20' ) end [2025-04-10 17:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878422', 'tblTempVendorCDR_20' ) start [2025-04-10 17:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878422', 'tblTempVendorCDR_20' ) end [2025-04-10 17:30:23] Production.INFO: ProcessCDR(1,14878422,1,1,2) [2025-04-10 17:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:30:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878422', 'tblTempUsageDetail_20' ) start [2025-04-10 17:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878422', 'tblTempUsageDetail_20' ) end [2025-04-10 17:30:29] Production.ERROR: pbx prc_insertCDR start [2025-04-10 17:30:29] Production.ERROR: pbx prc_insertCDR end [2025-04-10 17:30:29] Production.INFO: ==14044== Releasing lock... [2025-04-10 17:30:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 17:30:29] Production.INFO: 61.5 MB #Memory Used# [2025-04-10 17:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 14:31:05 [end_date_ymd] => 2025-04-10 17:31:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 14:31:05' and `end` < '2025-04-10 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-04-10 17:31:19] Production.INFO: count ==4386 [2025-04-10 17:31:21] Production.ERROR: pbx CDR StartTime 2025-04-10 14:31:05 - End Time 2025-04-10 17:31:05 [2025-04-10 17:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 17:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878427', 'tblTempUsageDetail_20' ) start [2025-04-10 17:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878427', 'tblTempUsageDetail_20' ) end [2025-04-10 17:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878427', 'tblTempVendorCDR_20' ) start [2025-04-10 17:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878427', 'tblTempVendorCDR_20' ) end [2025-04-10 17:31:21] Production.INFO: ProcessCDR(1,14878427,1,1,2) [2025-04-10 17:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878427', 'tblTempUsageDetail_20' ) start [2025-04-10 17:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878427', 'tblTempUsageDetail_20' ) end [2025-04-10 17:31:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 17:31:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 17:31:27] Production.INFO: ==14118== Releasing lock... [2025-04-10 17:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 17:31:27] Production.INFO: 60.75 MB #Memory Used# [2025-04-10 17:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 14:32:06 [end_date_ymd] => 2025-04-10 17:32:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 14:32:06' and `end` < '2025-04-10 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-04-10 17:32:20] Production.INFO: count ==4335 [2025-04-10 17:32:22] Production.ERROR: pbx CDR StartTime 2025-04-10 14:32:06 - End Time 2025-04-10 17:32:06 [2025-04-10 17:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 17:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878432', 'tblTempUsageDetail_20' ) start [2025-04-10 17:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878432', 'tblTempUsageDetail_20' ) end [2025-04-10 17:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878432', 'tblTempVendorCDR_20' ) start [2025-04-10 17:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878432', 'tblTempVendorCDR_20' ) end [2025-04-10 17:32:22] Production.INFO: ProcessCDR(1,14878432,1,1,2) [2025-04-10 17:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878432', 'tblTempUsageDetail_20' ) start [2025-04-10 17:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878432', 'tblTempUsageDetail_20' ) end [2025-04-10 17:32:28] Production.ERROR: pbx prc_insertCDR start [2025-04-10 17:32:28] Production.ERROR: pbx prc_insertCDR end [2025-04-10 17:32:28] Production.INFO: ==14195== Releasing lock... [2025-04-10 17:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 17:32:28] Production.INFO: 60.5 MB #Memory Used# [2025-04-10 17:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 14:33:06 [end_date_ymd] => 2025-04-10 17:33:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 14:33:06' and `end` < '2025-04-10 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-04-10 17:33:19] Production.INFO: count ==4304 [2025-04-10 17:33:21] Production.ERROR: pbx CDR StartTime 2025-04-10 14:33:06 - End Time 2025-04-10 17:33:06 [2025-04-10 17:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878437', 'tblTempUsageDetail_20' ) start [2025-04-10 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878437', 'tblTempUsageDetail_20' ) end [2025-04-10 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878437', 'tblTempVendorCDR_20' ) start [2025-04-10 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878437', 'tblTempVendorCDR_20' ) end [2025-04-10 17:33:21] Production.INFO: ProcessCDR(1,14878437,1,1,2) [2025-04-10 17:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878437', 'tblTempUsageDetail_20' ) start [2025-04-10 17:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878437', 'tblTempUsageDetail_20' ) end [2025-04-10 17:33:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 17:33:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 17:33:26] Production.INFO: ==14265== Releasing lock... [2025-04-10 17:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 17:33:26] Production.INFO: 60.25 MB #Memory Used# [2025-04-10 17:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 14:34:05 [end_date_ymd] => 2025-04-10 17:34:05 [RateCDR] => 1 ) [2025-04-10 17:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 14:34:05' and `end` < '2025-04-10 17:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 17:34:19] Production.INFO: count ==4310 [2025-04-10 17:34:21] Production.ERROR: pbx CDR StartTime 2025-04-10 14:34:05 - End Time 2025-04-10 17:34:05 [2025-04-10 17:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878442', 'tblTempUsageDetail_20' ) start [2025-04-10 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878442', 'tblTempUsageDetail_20' ) end [2025-04-10 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878442', 'tblTempVendorCDR_20' ) start [2025-04-10 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878442', 'tblTempVendorCDR_20' ) end [2025-04-10 17:34:21] Production.INFO: ProcessCDR(1,14878442,1,1,2) [2025-04-10 17:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878442', 'tblTempUsageDetail_20' ) start [2025-04-10 17:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878442', 'tblTempUsageDetail_20' ) end [2025-04-10 17:34:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 17:34:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 17:34:26] Production.INFO: ==14338== Releasing lock... [2025-04-10 17:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 17:34:26] Production.INFO: 60.25 MB #Memory Used# [2025-04-10 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 14:35:05 [end_date_ymd] => 2025-04-10 17:35:05 [RateCDR] => 1 ) [2025-04-10 17:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 14:35:05' and `end` < '2025-04-10 17:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 17:35:19] Production.INFO: count ==4309 [2025-04-10 17:35:20] Production.ERROR: pbx CDR StartTime 2025-04-10 14:35:05 - End Time 2025-04-10 17:35:05 [2025-04-10 17:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878447', 'tblTempUsageDetail_20' ) start [2025-04-10 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878447', 'tblTempUsageDetail_20' ) end [2025-04-10 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878447', 'tblTempVendorCDR_20' ) start [2025-04-10 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878447', 'tblTempVendorCDR_20' ) end [2025-04-10 17:35:20] Production.INFO: ProcessCDR(1,14878447,1,1,2) [2025-04-10 17:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878447', 'tblTempUsageDetail_20' ) start [2025-04-10 17:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878447', 'tblTempUsageDetail_20' ) end [2025-04-10 17:35:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 17:35:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 17:35:25] Production.INFO: ==14409== Releasing lock... [2025-04-10 17:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 17:35:25] Production.INFO: 60.25 MB #Memory Used# [2025-04-10 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 14:36:05 [end_date_ymd] => 2025-04-10 17:36:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 14:36:05' and `end` < '2025-04-10 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-04-10 17:36:19] Production.INFO: count ==4290 [2025-04-10 17:36:21] Production.ERROR: pbx CDR StartTime 2025-04-10 14:36:05 - End Time 2025-04-10 17:36:05 [2025-04-10 17:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878452', 'tblTempUsageDetail_20' ) start [2025-04-10 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878452', 'tblTempUsageDetail_20' ) end [2025-04-10 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878452', 'tblTempVendorCDR_20' ) start [2025-04-10 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878452', 'tblTempVendorCDR_20' ) end [2025-04-10 17:36:21] Production.INFO: ProcessCDR(1,14878452,1,1,2) [2025-04-10 17:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878452', 'tblTempUsageDetail_20' ) start [2025-04-10 17:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878452', 'tblTempUsageDetail_20' ) end [2025-04-10 17:36:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 17:36:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 17:36:26] Production.INFO: ==14484== Releasing lock... [2025-04-10 17:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 17:36:26] Production.INFO: 60 MB #Memory Used# [2025-04-10 17:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 14:37:05 [end_date_ymd] => 2025-04-10 17:37:05 [RateCDR] => 1 ) [2025-04-10 17:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 14:37:05' and `end` < '2025-04-10 17:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 17:37:19] Production.INFO: count ==4291 [2025-04-10 17:37:21] Production.ERROR: pbx CDR StartTime 2025-04-10 14:37:05 - End Time 2025-04-10 17:37:05 [2025-04-10 17:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878457', 'tblTempUsageDetail_20' ) start [2025-04-10 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878457', 'tblTempUsageDetail_20' ) end [2025-04-10 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878457', 'tblTempVendorCDR_20' ) start [2025-04-10 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878457', 'tblTempVendorCDR_20' ) end [2025-04-10 17:37:21] Production.INFO: ProcessCDR(1,14878457,1,1,2) [2025-04-10 17:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878457', 'tblTempUsageDetail_20' ) start [2025-04-10 17:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878457', 'tblTempUsageDetail_20' ) end [2025-04-10 17:37:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 17:37:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 17:37:26] Production.INFO: ==14561== Releasing lock... [2025-04-10 17:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 17:37:26] Production.INFO: 60 MB #Memory Used# [2025-04-10 17:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 14:38:06 [end_date_ymd] => 2025-04-10 17:38:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 14:38:06' and `end` < '2025-04-10 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-04-10 17:38:20] Production.INFO: count ==4274 [2025-04-10 17:38:21] Production.ERROR: pbx CDR StartTime 2025-04-10 14:38:06 - End Time 2025-04-10 17:38:06 [2025-04-10 17:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878462', 'tblTempUsageDetail_20' ) start [2025-04-10 17:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878462', 'tblTempUsageDetail_20' ) end [2025-04-10 17:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878462', 'tblTempVendorCDR_20' ) start [2025-04-10 17:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878462', 'tblTempVendorCDR_20' ) end [2025-04-10 17:38:22] Production.INFO: ProcessCDR(1,14878462,1,1,2) [2025-04-10 17:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878462', 'tblTempUsageDetail_20' ) start [2025-04-10 17:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878462', 'tblTempUsageDetail_20' ) end [2025-04-10 17:38:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 17:38:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 17:38:28] Production.INFO: ==14638== Releasing lock... [2025-04-10 17:38:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 17:38:28] Production.INFO: 60 MB #Memory Used# [2025-04-10 17:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 14:39:05 [end_date_ymd] => 2025-04-10 17:39:05 [RateCDR] => 1 ) [2025-04-10 17:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 14:39:05' and `end` < '2025-04-10 17:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 17:39:19] Production.INFO: count ==4268 [2025-04-10 17:39:20] Production.ERROR: pbx CDR StartTime 2025-04-10 14:39:05 - End Time 2025-04-10 17:39:05 [2025-04-10 17:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878467', 'tblTempUsageDetail_20' ) start [2025-04-10 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878467', 'tblTempUsageDetail_20' ) end [2025-04-10 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878467', 'tblTempVendorCDR_20' ) start [2025-04-10 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878467', 'tblTempVendorCDR_20' ) end [2025-04-10 17:39:21] Production.INFO: ProcessCDR(1,14878467,1,1,2) [2025-04-10 17:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878467', 'tblTempUsageDetail_20' ) start [2025-04-10 17:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878467', 'tblTempUsageDetail_20' ) end [2025-04-10 17:39:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 17:39:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 17:39:26] Production.INFO: ==14714== Releasing lock... [2025-04-10 17:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 17:39:26] Production.INFO: 60 MB #Memory Used# [2025-04-10 17:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 14:40:06 [end_date_ymd] => 2025-04-10 17:40:06 [RateCDR] => 1 ) [2025-04-10 17:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 14:40:06' and `end` < '2025-04-10 17:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 17:40:19] Production.INFO: count ==4258 [2025-04-10 17:40:21] Production.ERROR: pbx CDR StartTime 2025-04-10 14:40:06 - End Time 2025-04-10 17:40:06 [2025-04-10 17:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878473', 'tblTempUsageDetail_20' ) start [2025-04-10 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878473', 'tblTempUsageDetail_20' ) end [2025-04-10 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878473', 'tblTempVendorCDR_20' ) start [2025-04-10 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878473', 'tblTempVendorCDR_20' ) end [2025-04-10 17:40:21] Production.INFO: ProcessCDR(1,14878473,1,1,2) [2025-04-10 17:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878473', 'tblTempUsageDetail_20' ) start [2025-04-10 17:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878473', 'tblTempUsageDetail_20' ) end [2025-04-10 17:40:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 17:40:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 17:40:26] Production.INFO: ==14793== Releasing lock... [2025-04-10 17:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 17:40:26] Production.INFO: 59.75 MB #Memory Used# [2025-04-10 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 14:41:05 [end_date_ymd] => 2025-04-10 17:41:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 14:41:05' and `end` < '2025-04-10 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-04-10 17:41:19] Production.INFO: count ==4211 [2025-04-10 17:41:20] Production.ERROR: pbx CDR StartTime 2025-04-10 14:41:05 - End Time 2025-04-10 17:41:05 [2025-04-10 17:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878478', 'tblTempUsageDetail_20' ) start [2025-04-10 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878478', 'tblTempUsageDetail_20' ) end [2025-04-10 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878478', 'tblTempVendorCDR_20' ) start [2025-04-10 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878478', 'tblTempVendorCDR_20' ) end [2025-04-10 17:41:20] Production.INFO: ProcessCDR(1,14878478,1,1,2) [2025-04-10 17:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878478', 'tblTempUsageDetail_20' ) start [2025-04-10 17:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878478', 'tblTempUsageDetail_20' ) end [2025-04-10 17:41:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 17:41:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 17:41:24] Production.INFO: ==14868== Releasing lock... [2025-04-10 17:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 17:41:24] Production.INFO: 59.75 MB #Memory Used# [2025-04-10 17:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 14:42:06 [end_date_ymd] => 2025-04-10 17:42:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 14:42:06' and `end` < '2025-04-10 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-04-10 17:42:20] Production.INFO: count ==4213 [2025-04-10 17:42:21] Production.ERROR: pbx CDR StartTime 2025-04-10 14:42:06 - End Time 2025-04-10 17:42:06 [2025-04-10 17:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878483', 'tblTempUsageDetail_20' ) start [2025-04-10 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878483', 'tblTempUsageDetail_20' ) end [2025-04-10 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878483', 'tblTempVendorCDR_20' ) start [2025-04-10 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878483', 'tblTempVendorCDR_20' ) end [2025-04-10 17:42:21] Production.INFO: ProcessCDR(1,14878483,1,1,2) [2025-04-10 17:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878483', 'tblTempUsageDetail_20' ) start [2025-04-10 17:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878483', 'tblTempUsageDetail_20' ) end [2025-04-10 17:42:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 17:42:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 17:42:26] Production.INFO: ==14985== Releasing lock... [2025-04-10 17:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 17:42:26] Production.INFO: 59.5 MB #Memory Used# [2025-04-10 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 14:43:05 [end_date_ymd] => 2025-04-10 17:43:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 14:43:05' and `end` < '2025-04-10 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-04-10 17:43:19] Production.INFO: count ==4203 [2025-04-10 17:43:20] Production.ERROR: pbx CDR StartTime 2025-04-10 14:43:05 - End Time 2025-04-10 17:43:05 [2025-04-10 17:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878488', 'tblTempUsageDetail_20' ) start [2025-04-10 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878488', 'tblTempUsageDetail_20' ) end [2025-04-10 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878488', 'tblTempVendorCDR_20' ) start [2025-04-10 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878488', 'tblTempVendorCDR_20' ) end [2025-04-10 17:43:20] Production.INFO: ProcessCDR(1,14878488,1,1,2) [2025-04-10 17:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878488', 'tblTempUsageDetail_20' ) start [2025-04-10 17:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878488', 'tblTempUsageDetail_20' ) end [2025-04-10 17:43:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 17:43:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 17:43:25] Production.INFO: ==15059== Releasing lock... [2025-04-10 17:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 17:43:25] Production.INFO: 59.5 MB #Memory Used# [2025-04-10 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 14:44:05 [end_date_ymd] => 2025-04-10 17:44:05 [RateCDR] => 1 ) [2025-04-10 17:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 14:44:05' and `end` < '2025-04-10 17:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 17:44:19] Production.INFO: count ==4178 [2025-04-10 17:44:20] Production.ERROR: pbx CDR StartTime 2025-04-10 14:44:05 - End Time 2025-04-10 17:44:05 [2025-04-10 17:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878493', 'tblTempUsageDetail_20' ) start [2025-04-10 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878493', 'tblTempUsageDetail_20' ) end [2025-04-10 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878493', 'tblTempVendorCDR_20' ) start [2025-04-10 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878493', 'tblTempVendorCDR_20' ) end [2025-04-10 17:44:21] Production.INFO: ProcessCDR(1,14878493,1,1,2) [2025-04-10 17:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878493', 'tblTempUsageDetail_20' ) start [2025-04-10 17:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878493', 'tblTempUsageDetail_20' ) end [2025-04-10 17:44:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 17:44:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 17:44:25] Production.INFO: ==15140== Releasing lock... [2025-04-10 17:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 17:44:25] Production.INFO: 59.25 MB #Memory Used# [2025-04-10 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 14:45:05 [end_date_ymd] => 2025-04-10 17:45:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 14:45:05' and `end` < '2025-04-10 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-04-10 17:45:19] Production.INFO: count ==4167 [2025-04-10 17:45:20] Production.ERROR: pbx CDR StartTime 2025-04-10 14:45:05 - End Time 2025-04-10 17:45:05 [2025-04-10 17:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878498', 'tblTempUsageDetail_20' ) start [2025-04-10 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878498', 'tblTempUsageDetail_20' ) end [2025-04-10 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878498', 'tblTempVendorCDR_20' ) start [2025-04-10 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878498', 'tblTempVendorCDR_20' ) end [2025-04-10 17:45:20] Production.INFO: ProcessCDR(1,14878498,1,1,2) [2025-04-10 17:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878498', 'tblTempUsageDetail_20' ) start [2025-04-10 17:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878498', 'tblTempUsageDetail_20' ) end [2025-04-10 17:45:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 17:45:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 17:45:24] Production.INFO: ==15212== Releasing lock... [2025-04-10 17:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 17:45:24] Production.INFO: 59.25 MB #Memory Used# [2025-04-10 17:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 14:46:06 [end_date_ymd] => 2025-04-10 17:46:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 14:46:06' and `end` < '2025-04-10 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-04-10 17:46:19] Production.INFO: count ==4170 [2025-04-10 17:46:21] Production.ERROR: pbx CDR StartTime 2025-04-10 14:46:06 - End Time 2025-04-10 17:46:06 [2025-04-10 17:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878503', 'tblTempUsageDetail_20' ) start [2025-04-10 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878503', 'tblTempUsageDetail_20' ) end [2025-04-10 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878503', 'tblTempVendorCDR_20' ) start [2025-04-10 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878503', 'tblTempVendorCDR_20' ) end [2025-04-10 17:46:21] Production.INFO: ProcessCDR(1,14878503,1,1,2) [2025-04-10 17:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878503', 'tblTempUsageDetail_20' ) start [2025-04-10 17:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878503', 'tblTempUsageDetail_20' ) end [2025-04-10 17:46:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 17:46:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 17:46:26] Production.INFO: ==15287== Releasing lock... [2025-04-10 17:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 17:46:26] Production.INFO: 59.25 MB #Memory Used# [2025-04-10 17:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 14:47:05 [end_date_ymd] => 2025-04-10 17:47:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 14:47:05' and `end` < '2025-04-10 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-04-10 17:47:19] Production.INFO: count ==4173 [2025-04-10 17:47:21] Production.ERROR: pbx CDR StartTime 2025-04-10 14:47:05 - End Time 2025-04-10 17:47:05 [2025-04-10 17:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878508', 'tblTempUsageDetail_20' ) start [2025-04-10 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878508', 'tblTempUsageDetail_20' ) end [2025-04-10 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878508', 'tblTempVendorCDR_20' ) start [2025-04-10 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878508', 'tblTempVendorCDR_20' ) end [2025-04-10 17:47:21] Production.INFO: ProcessCDR(1,14878508,1,1,2) [2025-04-10 17:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878508', 'tblTempUsageDetail_20' ) start [2025-04-10 17:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878508', 'tblTempUsageDetail_20' ) end [2025-04-10 17:47:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 17:47:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 17:47:26] Production.INFO: ==15360== Releasing lock... [2025-04-10 17:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 17:47:26] Production.INFO: 59.25 MB #Memory Used# [2025-04-10 17:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 14:48:06 [end_date_ymd] => 2025-04-10 17:48:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 14:48:06' and `end` < '2025-04-10 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-04-10 17:48:20] Production.INFO: count ==4165 [2025-04-10 17:48:21] Production.ERROR: pbx CDR StartTime 2025-04-10 14:48:06 - End Time 2025-04-10 17:48:06 [2025-04-10 17:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878513', 'tblTempUsageDetail_20' ) start [2025-04-10 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878513', 'tblTempUsageDetail_20' ) end [2025-04-10 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878513', 'tblTempVendorCDR_20' ) start [2025-04-10 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878513', 'tblTempVendorCDR_20' ) end [2025-04-10 17:48:21] Production.INFO: ProcessCDR(1,14878513,1,1,2) [2025-04-10 17:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878513', 'tblTempUsageDetail_20' ) start [2025-04-10 17:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878513', 'tblTempUsageDetail_20' ) end [2025-04-10 17:48:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 17:48:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 17:48:27] Production.INFO: ==15438== Releasing lock... [2025-04-10 17:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 17:48:27] Production.INFO: 59.25 MB #Memory Used# [2025-04-10 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 14:49:05 [end_date_ymd] => 2025-04-10 17:49:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 14:49:05' and `end` < '2025-04-10 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-04-10 17:49:18] Production.INFO: count ==4149 [2025-04-10 17:49:20] Production.ERROR: pbx CDR StartTime 2025-04-10 14:49:05 - End Time 2025-04-10 17:49:05 [2025-04-10 17:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878518', 'tblTempUsageDetail_20' ) start [2025-04-10 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878518', 'tblTempUsageDetail_20' ) end [2025-04-10 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878518', 'tblTempVendorCDR_20' ) start [2025-04-10 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878518', 'tblTempVendorCDR_20' ) end [2025-04-10 17:49:20] Production.INFO: ProcessCDR(1,14878518,1,1,2) [2025-04-10 17:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878518', 'tblTempUsageDetail_20' ) start [2025-04-10 17:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878518', 'tblTempUsageDetail_20' ) end [2025-04-10 17:49:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 17:49:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 17:49:26] Production.INFO: ==15512== Releasing lock... [2025-04-10 17:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 17:49:26] Production.INFO: 59 MB #Memory Used# [2025-04-10 17:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 14:50:06 [end_date_ymd] => 2025-04-10 17:50:06 [RateCDR] => 1 ) [2025-04-10 17:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 14:50:06' and `end` < '2025-04-10 17:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 17:50:20] Production.INFO: count ==4133 [2025-04-10 17:50:22] Production.ERROR: pbx CDR StartTime 2025-04-10 14:50:06 - End Time 2025-04-10 17:50:06 [2025-04-10 17:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878523', 'tblTempUsageDetail_20' ) start [2025-04-10 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878523', 'tblTempUsageDetail_20' ) end [2025-04-10 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878523', 'tblTempVendorCDR_20' ) start [2025-04-10 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878523', 'tblTempVendorCDR_20' ) end [2025-04-10 17:50:22] Production.INFO: ProcessCDR(1,14878523,1,1,2) [2025-04-10 17:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878523', 'tblTempUsageDetail_20' ) start [2025-04-10 17:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878523', 'tblTempUsageDetail_20' ) end [2025-04-10 17:50:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 17:50:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 17:50:27] Production.INFO: ==15589== Releasing lock... [2025-04-10 17:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 17:50:27] Production.INFO: 59 MB #Memory Used# [2025-04-10 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 14:51:05 [end_date_ymd] => 2025-04-10 17:51:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 14:51:05' and `end` < '2025-04-10 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-04-10 17:51:19] Production.INFO: count ==4072 [2025-04-10 17:51:20] Production.ERROR: pbx CDR StartTime 2025-04-10 14:51:05 - End Time 2025-04-10 17:51:05 [2025-04-10 17:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878529', 'tblTempUsageDetail_20' ) start [2025-04-10 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878529', 'tblTempUsageDetail_20' ) end [2025-04-10 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878529', 'tblTempVendorCDR_20' ) start [2025-04-10 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878529', 'tblTempVendorCDR_20' ) end [2025-04-10 17:51:20] Production.INFO: ProcessCDR(1,14878529,1,1,2) [2025-04-10 17:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878529', 'tblTempUsageDetail_20' ) start [2025-04-10 17:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878529', 'tblTempUsageDetail_20' ) end [2025-04-10 17:51:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 17:51:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 17:51:26] Production.INFO: ==15660== Releasing lock... [2025-04-10 17:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 17:51:26] Production.INFO: 58.5 MB #Memory Used# [2025-04-10 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 14:52:05 [end_date_ymd] => 2025-04-10 17:52:05 [RateCDR] => 1 ) [2025-04-10 17:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 14:52:05' and `end` < '2025-04-10 17:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 17:52:19] Production.INFO: count ==4039 [2025-04-10 17:52:20] Production.ERROR: pbx CDR StartTime 2025-04-10 14:52:05 - End Time 2025-04-10 17:52:05 [2025-04-10 17:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878534', 'tblTempUsageDetail_20' ) start [2025-04-10 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878534', 'tblTempUsageDetail_20' ) end [2025-04-10 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878534', 'tblTempVendorCDR_20' ) start [2025-04-10 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878534', 'tblTempVendorCDR_20' ) end [2025-04-10 17:52:20] Production.INFO: ProcessCDR(1,14878534,1,1,2) [2025-04-10 17:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878534', 'tblTempUsageDetail_20' ) start [2025-04-10 17:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878534', 'tblTempUsageDetail_20' ) end [2025-04-10 17:52:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 17:52:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 17:52:24] Production.INFO: ==15736== Releasing lock... [2025-04-10 17:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 17:52:24] Production.INFO: 58.25 MB #Memory Used# [2025-04-10 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 14:53:05 [end_date_ymd] => 2025-04-10 17:53:05 [RateCDR] => 1 ) [2025-04-10 17:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 14:53:05' and `end` < '2025-04-10 17:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 17:53:18] Production.INFO: count ==4025 [2025-04-10 17:53:19] Production.ERROR: pbx CDR StartTime 2025-04-10 14:53:05 - End Time 2025-04-10 17:53:05 [2025-04-10 17:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 17:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878539', 'tblTempUsageDetail_20' ) start [2025-04-10 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878539', 'tblTempUsageDetail_20' ) end [2025-04-10 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878539', 'tblTempVendorCDR_20' ) start [2025-04-10 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878539', 'tblTempVendorCDR_20' ) end [2025-04-10 17:53:20] Production.INFO: ProcessCDR(1,14878539,1,1,2) [2025-04-10 17:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878539', 'tblTempUsageDetail_20' ) start [2025-04-10 17:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878539', 'tblTempUsageDetail_20' ) end [2025-04-10 17:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 17:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 17:53:23] Production.INFO: ==15812== Releasing lock... [2025-04-10 17:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 17:53:23] Production.INFO: 58 MB #Memory Used# [2025-04-10 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 14:54:05 [end_date_ymd] => 2025-04-10 17:54:05 [RateCDR] => 1 ) [2025-04-10 17:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 14:54:05' and `end` < '2025-04-10 17:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 17:54:19] Production.INFO: count ==4024 [2025-04-10 17:54:20] Production.ERROR: pbx CDR StartTime 2025-04-10 14:54:05 - End Time 2025-04-10 17:54:05 [2025-04-10 17:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878544', 'tblTempUsageDetail_20' ) start [2025-04-10 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878544', 'tblTempUsageDetail_20' ) end [2025-04-10 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878544', 'tblTempVendorCDR_20' ) start [2025-04-10 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878544', 'tblTempVendorCDR_20' ) end [2025-04-10 17:54:20] Production.INFO: ProcessCDR(1,14878544,1,1,2) [2025-04-10 17:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878544', 'tblTempUsageDetail_20' ) start [2025-04-10 17:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878544', 'tblTempUsageDetail_20' ) end [2025-04-10 17:54:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 17:54:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 17:54:24] Production.INFO: ==15884== Releasing lock... [2025-04-10 17:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 17:54:24] Production.INFO: 58 MB #Memory Used# [2025-04-10 17:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 14:55:06 [end_date_ymd] => 2025-04-10 17:55:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 14:55:06' and `end` < '2025-04-10 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-04-10 17:55:19] Production.INFO: count ==4016 [2025-04-10 17:55:21] Production.ERROR: pbx CDR StartTime 2025-04-10 14:55:06 - End Time 2025-04-10 17:55:06 [2025-04-10 17:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878549', 'tblTempUsageDetail_20' ) start [2025-04-10 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878549', 'tblTempUsageDetail_20' ) end [2025-04-10 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878549', 'tblTempVendorCDR_20' ) start [2025-04-10 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878549', 'tblTempVendorCDR_20' ) end [2025-04-10 17:55:21] Production.INFO: ProcessCDR(1,14878549,1,1,2) [2025-04-10 17:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878549', 'tblTempUsageDetail_20' ) start [2025-04-10 17:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878549', 'tblTempUsageDetail_20' ) end [2025-04-10 17:55:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 17:55:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 17:55:26] Production.INFO: ==15965== Releasing lock... [2025-04-10 17:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 17:55:26] Production.INFO: 58 MB #Memory Used# [2025-04-10 17:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 14:56:06 [end_date_ymd] => 2025-04-10 17:56:06 [RateCDR] => 1 ) [2025-04-10 17:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 14:56:06' and `end` < '2025-04-10 17:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 17:56:19] Production.INFO: count ==4028 [2025-04-10 17:56:21] Production.ERROR: pbx CDR StartTime 2025-04-10 14:56:06 - End Time 2025-04-10 17:56:06 [2025-04-10 17:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878554', 'tblTempUsageDetail_20' ) start [2025-04-10 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878554', 'tblTempUsageDetail_20' ) end [2025-04-10 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878554', 'tblTempVendorCDR_20' ) start [2025-04-10 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878554', 'tblTempVendorCDR_20' ) end [2025-04-10 17:56:21] Production.INFO: ProcessCDR(1,14878554,1,1,2) [2025-04-10 17:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878554', 'tblTempUsageDetail_20' ) start [2025-04-10 17:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878554', 'tblTempUsageDetail_20' ) end [2025-04-10 17:56:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 17:56:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 17:56:26] Production.INFO: ==16047== Releasing lock... [2025-04-10 17:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 17:56:26] Production.INFO: 58.75 MB #Memory Used# [2025-04-10 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 14:57:05 [end_date_ymd] => 2025-04-10 17:57:05 [RateCDR] => 1 ) [2025-04-10 17:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 14:57:05' and `end` < '2025-04-10 17:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 17:57:19] Production.INFO: count ==4021 [2025-04-10 17:57:20] Production.ERROR: pbx CDR StartTime 2025-04-10 14:57:05 - End Time 2025-04-10 17:57:05 [2025-04-10 17:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878559', 'tblTempUsageDetail_20' ) start [2025-04-10 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878559', 'tblTempUsageDetail_20' ) end [2025-04-10 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878559', 'tblTempVendorCDR_20' ) start [2025-04-10 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878559', 'tblTempVendorCDR_20' ) end [2025-04-10 17:57:20] Production.INFO: ProcessCDR(1,14878559,1,1,2) [2025-04-10 17:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878559', 'tblTempUsageDetail_20' ) start [2025-04-10 17:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878559', 'tblTempUsageDetail_20' ) end [2025-04-10 17:57:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 17:57:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 17:57:25] Production.INFO: ==16126== Releasing lock... [2025-04-10 17:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 17:57:25] Production.INFO: 58 MB #Memory Used# [2025-04-10 17:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 14:58:06 [end_date_ymd] => 2025-04-10 17:58:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 14:58:06' and `end` < '2025-04-10 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-04-10 17:58:19] Production.INFO: count ==4019 [2025-04-10 17:58:21] Production.ERROR: pbx CDR StartTime 2025-04-10 14:58:06 - End Time 2025-04-10 17:58:06 [2025-04-10 17:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878564', 'tblTempUsageDetail_20' ) start [2025-04-10 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878564', 'tblTempUsageDetail_20' ) end [2025-04-10 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878564', 'tblTempVendorCDR_20' ) start [2025-04-10 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878564', 'tblTempVendorCDR_20' ) end [2025-04-10 17:58:21] Production.INFO: ProcessCDR(1,14878564,1,1,2) [2025-04-10 17:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878564', 'tblTempUsageDetail_20' ) start [2025-04-10 17:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878564', 'tblTempUsageDetail_20' ) end [2025-04-10 17:58:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 17:58:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 17:58:25] Production.INFO: ==16243== Releasing lock... [2025-04-10 17:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 17:58:25] Production.INFO: 58 MB #Memory Used# [2025-04-10 17:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 14:59:05 [end_date_ymd] => 2025-04-10 17:59:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 14:59:05' and `end` < '2025-04-10 17:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 17:59:19] Production.INFO: count ==4031 [2025-04-10 17:59:21] Production.ERROR: pbx CDR StartTime 2025-04-10 14:59:05 - End Time 2025-04-10 17:59:05 [2025-04-10 17:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878569', 'tblTempUsageDetail_20' ) start [2025-04-10 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878569', 'tblTempUsageDetail_20' ) end [2025-04-10 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878569', 'tblTempVendorCDR_20' ) start [2025-04-10 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878569', 'tblTempVendorCDR_20' ) end [2025-04-10 17:59:21] Production.INFO: ProcessCDR(1,14878569,1,1,2) [2025-04-10 17:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 17:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 17:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878569', 'tblTempUsageDetail_20' ) start [2025-04-10 17:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878569', 'tblTempUsageDetail_20' ) end [2025-04-10 17:59:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 17:59:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 17:59:26] Production.INFO: ==16315== Releasing lock... [2025-04-10 17:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 17:59:26] Production.INFO: 58 MB #Memory Used# [2025-04-10 18:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 15:00:07 [end_date_ymd] => 2025-04-10 18:00:07 [RateCDR] => 1 ) [2025-04-10 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-04-10 15:00:07' and `end` < '2025-04-10 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-04-10 18:00:20] Production.INFO: count ==4026 [2025-04-10 18:00:22] Production.ERROR: pbx CDR StartTime 2025-04-10 15:00:07 - End Time 2025-04-10 18:00:07 [2025-04-10 18:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878575', 'tblTempUsageDetail_20' ) start [2025-04-10 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878575', 'tblTempUsageDetail_20' ) end [2025-04-10 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878575', 'tblTempVendorCDR_20' ) start [2025-04-10 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878575', 'tblTempVendorCDR_20' ) end [2025-04-10 18:00:22] Production.INFO: ProcessCDR(1,14878575,1,1,2) [2025-04-10 18:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878575', 'tblTempUsageDetail_20' ) start [2025-04-10 18:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878575', 'tblTempUsageDetail_20' ) end [2025-04-10 18:00:27] Production.ERROR: pbx prc_insertCDR start [2025-04-10 18:00:27] Production.ERROR: pbx prc_insertCDR end [2025-04-10 18:00:27] Production.INFO: ==16391== Releasing lock... [2025-04-10 18:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 18:00:27] Production.INFO: 58 MB #Memory Used# [2025-04-10 18:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 15:01:05 [end_date_ymd] => 2025-04-10 18:01:05 [RateCDR] => 1 ) [2025-04-10 18:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 15:01:05' and `end` < '2025-04-10 18:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 18:01:18] Production.INFO: count ==4009 [2025-04-10 18:01:20] Production.ERROR: pbx CDR StartTime 2025-04-10 15:01:05 - End Time 2025-04-10 18:01:05 [2025-04-10 18:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878580', 'tblTempUsageDetail_20' ) start [2025-04-10 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878580', 'tblTempUsageDetail_20' ) end [2025-04-10 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878580', 'tblTempVendorCDR_20' ) start [2025-04-10 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878580', 'tblTempVendorCDR_20' ) end [2025-04-10 18:01:20] Production.INFO: ProcessCDR(1,14878580,1,1,2) [2025-04-10 18:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878580', 'tblTempUsageDetail_20' ) start [2025-04-10 18:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878580', 'tblTempUsageDetail_20' ) end [2025-04-10 18:01:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 18:01:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 18:01:25] Production.INFO: ==16478== Releasing lock... [2025-04-10 18:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 18:01:25] Production.INFO: 58 MB #Memory Used# [2025-04-10 18:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 15:02:05 [end_date_ymd] => 2025-04-10 18:02:05 [RateCDR] => 1 ) [2025-04-10 18:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 15:02:05' and `end` < '2025-04-10 18:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 18:02:19] Production.INFO: count ==4003 [2025-04-10 18:02:20] Production.ERROR: pbx CDR StartTime 2025-04-10 15:02:05 - End Time 2025-04-10 18:02:05 [2025-04-10 18:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878585', 'tblTempUsageDetail_20' ) start [2025-04-10 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878585', 'tblTempUsageDetail_20' ) end [2025-04-10 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878585', 'tblTempVendorCDR_20' ) start [2025-04-10 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878585', 'tblTempVendorCDR_20' ) end [2025-04-10 18:02:21] Production.INFO: ProcessCDR(1,14878585,1,1,2) [2025-04-10 18:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878585', 'tblTempUsageDetail_20' ) start [2025-04-10 18:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878585', 'tblTempUsageDetail_20' ) end [2025-04-10 18:02:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 18:02:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 18:02:25] Production.INFO: ==16549== Releasing lock... [2025-04-10 18:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 18:02:25] Production.INFO: 58 MB #Memory Used# [2025-04-10 18:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 15:03:05 [end_date_ymd] => 2025-04-10 18:03:05 [RateCDR] => 1 ) [2025-04-10 18:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 15:03:05' and `end` < '2025-04-10 18:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 18:03:18] Production.INFO: count ==3986 [2025-04-10 18:03:20] Production.ERROR: pbx CDR StartTime 2025-04-10 15:03:05 - End Time 2025-04-10 18:03:05 [2025-04-10 18:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878590', 'tblTempUsageDetail_20' ) start [2025-04-10 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878590', 'tblTempUsageDetail_20' ) end [2025-04-10 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878590', 'tblTempVendorCDR_20' ) start [2025-04-10 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878590', 'tblTempVendorCDR_20' ) end [2025-04-10 18:03:20] Production.INFO: ProcessCDR(1,14878590,1,1,2) [2025-04-10 18:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878590', 'tblTempUsageDetail_20' ) start [2025-04-10 18:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878590', 'tblTempUsageDetail_20' ) end [2025-04-10 18:03:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 18:03:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 18:03:24] Production.INFO: ==16624== Releasing lock... [2025-04-10 18:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 18:03:24] Production.INFO: 58 MB #Memory Used# [2025-04-10 18:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 15:04:06 [end_date_ymd] => 2025-04-10 18:04:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 15:04:06' and `end` < '2025-04-10 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-04-10 18:04:19] Production.INFO: count ==3979 [2025-04-10 18:04:21] Production.ERROR: pbx CDR StartTime 2025-04-10 15:04:06 - End Time 2025-04-10 18:04:06 [2025-04-10 18:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878595', 'tblTempUsageDetail_20' ) start [2025-04-10 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878595', 'tblTempUsageDetail_20' ) end [2025-04-10 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878595', 'tblTempVendorCDR_20' ) start [2025-04-10 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878595', 'tblTempVendorCDR_20' ) end [2025-04-10 18:04:21] Production.INFO: ProcessCDR(1,14878595,1,1,2) [2025-04-10 18:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878595', 'tblTempUsageDetail_20' ) start [2025-04-10 18:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878595', 'tblTempUsageDetail_20' ) end [2025-04-10 18:04:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 18:04:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 18:04:25] Production.INFO: ==16699== Releasing lock... [2025-04-10 18:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 18:04:25] Production.INFO: 57.75 MB #Memory Used# [2025-04-10 18:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 15:05:05 [end_date_ymd] => 2025-04-10 18:05:05 [RateCDR] => 1 ) [2025-04-10 18:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 15:05:05' and `end` < '2025-04-10 18:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 18:05:19] Production.INFO: count ==3981 [2025-04-10 18:05:20] Production.ERROR: pbx CDR StartTime 2025-04-10 15:05:05 - End Time 2025-04-10 18:05:05 [2025-04-10 18:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878600', 'tblTempUsageDetail_20' ) start [2025-04-10 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878600', 'tblTempUsageDetail_20' ) end [2025-04-10 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878600', 'tblTempVendorCDR_20' ) start [2025-04-10 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878600', 'tblTempVendorCDR_20' ) end [2025-04-10 18:05:20] Production.INFO: ProcessCDR(1,14878600,1,1,2) [2025-04-10 18:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878600', 'tblTempUsageDetail_20' ) start [2025-04-10 18:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878600', 'tblTempUsageDetail_20' ) end [2025-04-10 18:05:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 18:05:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 18:05:25] Production.INFO: ==16774== Releasing lock... [2025-04-10 18:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 18:05:25] Production.INFO: 58 MB #Memory Used# [2025-04-10 18:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 15:06:06 [end_date_ymd] => 2025-04-10 18:06:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 15:06:06' and `end` < '2025-04-10 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-04-10 18:06:19] Production.INFO: count ==3975 [2025-04-10 18:06:21] Production.ERROR: pbx CDR StartTime 2025-04-10 15:06:06 - End Time 2025-04-10 18:06:06 [2025-04-10 18:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878605', 'tblTempUsageDetail_20' ) start [2025-04-10 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878605', 'tblTempUsageDetail_20' ) end [2025-04-10 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878605', 'tblTempVendorCDR_20' ) start [2025-04-10 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878605', 'tblTempVendorCDR_20' ) end [2025-04-10 18:06:21] Production.INFO: ProcessCDR(1,14878605,1,1,2) [2025-04-10 18:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878605', 'tblTempUsageDetail_20' ) start [2025-04-10 18:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878605', 'tblTempUsageDetail_20' ) end [2025-04-10 18:06:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 18:06:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 18:06:26] Production.INFO: ==16849== Releasing lock... [2025-04-10 18:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 18:06:26] Production.INFO: 57.75 MB #Memory Used# [2025-04-10 18:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 15:07:05 [end_date_ymd] => 2025-04-10 18:07:05 [RateCDR] => 1 ) [2025-04-10 18:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 15:07:05' and `end` < '2025-04-10 18:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 18:07:18] Production.INFO: count ==3953 [2025-04-10 18:07:20] Production.ERROR: pbx CDR StartTime 2025-04-10 15:07:05 - End Time 2025-04-10 18:07:05 [2025-04-10 18:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878610', 'tblTempUsageDetail_20' ) start [2025-04-10 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878610', 'tblTempUsageDetail_20' ) end [2025-04-10 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878610', 'tblTempVendorCDR_20' ) start [2025-04-10 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878610', 'tblTempVendorCDR_20' ) end [2025-04-10 18:07:20] Production.INFO: ProcessCDR(1,14878610,1,1,2) [2025-04-10 18:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878610', 'tblTempUsageDetail_20' ) start [2025-04-10 18:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878610', 'tblTempUsageDetail_20' ) end [2025-04-10 18:07:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 18:07:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 18:07:25] Production.INFO: ==16926== Releasing lock... [2025-04-10 18:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 18:07:25] Production.INFO: 57.5 MB #Memory Used# [2025-04-10 18:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 15:08:06 [end_date_ymd] => 2025-04-10 18:08:06 [RateCDR] => 1 ) [2025-04-10 18: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-04-10 15:08:06' and `end` < '2025-04-10 18: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-04-10 18:08:19] Production.INFO: count ==3928 [2025-04-10 18:08:21] Production.ERROR: pbx CDR StartTime 2025-04-10 15:08:06 - End Time 2025-04-10 18:08:06 [2025-04-10 18:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878615', 'tblTempUsageDetail_20' ) start [2025-04-10 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878615', 'tblTempUsageDetail_20' ) end [2025-04-10 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878615', 'tblTempVendorCDR_20' ) start [2025-04-10 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878615', 'tblTempVendorCDR_20' ) end [2025-04-10 18:08:21] Production.INFO: ProcessCDR(1,14878615,1,1,2) [2025-04-10 18:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878615', 'tblTempUsageDetail_20' ) start [2025-04-10 18:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878615', 'tblTempUsageDetail_20' ) end [2025-04-10 18:08:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 18:08:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 18:08:26] Production.INFO: ==17002== Releasing lock... [2025-04-10 18:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 18:08:26] Production.INFO: 57.25 MB #Memory Used# [2025-04-10 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 15:09:05 [end_date_ymd] => 2025-04-10 18:09:05 [RateCDR] => 1 ) [2025-04-10 18:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 15:09:05' and `end` < '2025-04-10 18:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 18:09:18] Production.INFO: count ==3913 [2025-04-10 18:09:20] Production.ERROR: pbx CDR StartTime 2025-04-10 15:09:05 - End Time 2025-04-10 18:09:05 [2025-04-10 18:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878620', 'tblTempUsageDetail_20' ) start [2025-04-10 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878620', 'tblTempUsageDetail_20' ) end [2025-04-10 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878620', 'tblTempVendorCDR_20' ) start [2025-04-10 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878620', 'tblTempVendorCDR_20' ) end [2025-04-10 18:09:20] Production.INFO: ProcessCDR(1,14878620,1,1,2) [2025-04-10 18:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878620', 'tblTempUsageDetail_20' ) start [2025-04-10 18:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878620', 'tblTempUsageDetail_20' ) end [2025-04-10 18:09:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 18:09:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 18:09:23] Production.INFO: ==17081== Releasing lock... [2025-04-10 18:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 18:09:23] Production.INFO: 57.5 MB #Memory Used# [2025-04-10 18:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 15:10:06 [end_date_ymd] => 2025-04-10 18:10:06 [RateCDR] => 1 ) [2025-04-10 18:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 15:10:06' and `end` < '2025-04-10 18:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 18:10:20] Production.INFO: count ==3912 [2025-04-10 18:10:21] Production.ERROR: pbx CDR StartTime 2025-04-10 15:10:06 - End Time 2025-04-10 18:10:06 [2025-04-10 18:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878625', 'tblTempUsageDetail_20' ) start [2025-04-10 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878625', 'tblTempUsageDetail_20' ) end [2025-04-10 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878625', 'tblTempVendorCDR_20' ) start [2025-04-10 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878625', 'tblTempVendorCDR_20' ) end [2025-04-10 18:10:21] Production.INFO: ProcessCDR(1,14878625,1,1,2) [2025-04-10 18:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878625', 'tblTempUsageDetail_20' ) start [2025-04-10 18:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878625', 'tblTempUsageDetail_20' ) end [2025-04-10 18:10:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 18:10:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 18:10:26] Production.INFO: ==17156== Releasing lock... [2025-04-10 18:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 18:10:26] Production.INFO: 57.25 MB #Memory Used# [2025-04-10 18:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 15:11:04 [end_date_ymd] => 2025-04-10 18:11:04 [RateCDR] => 1 ) [2025-04-10 18: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-04-10 15:11:04' and `end` < '2025-04-10 18: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-04-10 18:11:18] Production.INFO: count ==3858 [2025-04-10 18:11:19] Production.ERROR: pbx CDR StartTime 2025-04-10 15:11:04 - End Time 2025-04-10 18:11:04 [2025-04-10 18:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878631', 'tblTempUsageDetail_20' ) start [2025-04-10 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878631', 'tblTempUsageDetail_20' ) end [2025-04-10 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878631', 'tblTempVendorCDR_20' ) start [2025-04-10 18:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878631', 'tblTempVendorCDR_20' ) end [2025-04-10 18:11:19] Production.INFO: ProcessCDR(1,14878631,1,1,2) [2025-04-10 18:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878631', 'tblTempUsageDetail_20' ) start [2025-04-10 18:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878631', 'tblTempUsageDetail_20' ) end [2025-04-10 18:11:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 18:11:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 18:11:23] Production.INFO: ==17228== Releasing lock... [2025-04-10 18:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 18:11:23] Production.INFO: 56.75 MB #Memory Used# [2025-04-10 18:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 15:12:05 [end_date_ymd] => 2025-04-10 18:12:05 [RateCDR] => 1 ) [2025-04-10 18:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 15:12:05' and `end` < '2025-04-10 18:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 18:12:18] Production.INFO: count ==3832 [2025-04-10 18:12:19] Production.ERROR: pbx CDR StartTime 2025-04-10 15:12:05 - End Time 2025-04-10 18:12:05 [2025-04-10 18:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878636', 'tblTempUsageDetail_20' ) start [2025-04-10 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878636', 'tblTempUsageDetail_20' ) end [2025-04-10 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878636', 'tblTempVendorCDR_20' ) start [2025-04-10 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878636', 'tblTempVendorCDR_20' ) end [2025-04-10 18:12:20] Production.INFO: ProcessCDR(1,14878636,1,1,2) [2025-04-10 18:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878636', 'tblTempUsageDetail_20' ) start [2025-04-10 18:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878636', 'tblTempUsageDetail_20' ) end [2025-04-10 18:12:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 18:12:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 18:12:23] Production.INFO: ==17301== Releasing lock... [2025-04-10 18:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 18:12:23] Production.INFO: 56.5 MB #Memory Used# [2025-04-10 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 15:13:05 [end_date_ymd] => 2025-04-10 18:13:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 15:13:05' and `end` < '2025-04-10 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-04-10 18:13:18] Production.INFO: count ==3819 [2025-04-10 18:13:20] Production.ERROR: pbx CDR StartTime 2025-04-10 15:13:05 - End Time 2025-04-10 18:13:05 [2025-04-10 18:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878641', 'tblTempUsageDetail_20' ) start [2025-04-10 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878641', 'tblTempUsageDetail_20' ) end [2025-04-10 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878641', 'tblTempVendorCDR_20' ) start [2025-04-10 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878641', 'tblTempVendorCDR_20' ) end [2025-04-10 18:13:20] Production.INFO: ProcessCDR(1,14878641,1,1,2) [2025-04-10 18:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878641', 'tblTempUsageDetail_20' ) start [2025-04-10 18:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878641', 'tblTempUsageDetail_20' ) end [2025-04-10 18:13:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 18:13:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 18:13:25] Production.INFO: ==17416== Releasing lock... [2025-04-10 18:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 18:13:25] Production.INFO: 56.75 MB #Memory Used# [2025-04-10 18:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 15:14:05 [end_date_ymd] => 2025-04-10 18:14:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 15:14:05' and `end` < '2025-04-10 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-04-10 18:14:18] Production.INFO: count ==3791 [2025-04-10 18:14:20] Production.ERROR: pbx CDR StartTime 2025-04-10 15:14:05 - End Time 2025-04-10 18:14:05 [2025-04-10 18:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878646', 'tblTempUsageDetail_20' ) start [2025-04-10 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878646', 'tblTempUsageDetail_20' ) end [2025-04-10 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878646', 'tblTempVendorCDR_20' ) start [2025-04-10 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878646', 'tblTempVendorCDR_20' ) end [2025-04-10 18:14:20] Production.INFO: ProcessCDR(1,14878646,1,1,2) [2025-04-10 18:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878646', 'tblTempUsageDetail_20' ) start [2025-04-10 18:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878646', 'tblTempUsageDetail_20' ) end [2025-04-10 18:14:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 18:14:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 18:14:25] Production.INFO: ==17490== Releasing lock... [2025-04-10 18:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 18:14:25] Production.INFO: 56.25 MB #Memory Used# [2025-04-10 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 15:15:05 [end_date_ymd] => 2025-04-10 18:15:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 15:15:05' and `end` < '2025-04-10 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-04-10 18:15:19] Production.INFO: count ==3750 [2025-04-10 18:15:20] Production.ERROR: pbx CDR StartTime 2025-04-10 15:15:05 - End Time 2025-04-10 18:15:05 [2025-04-10 18:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878651', 'tblTempUsageDetail_20' ) start [2025-04-10 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878651', 'tblTempUsageDetail_20' ) end [2025-04-10 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878651', 'tblTempVendorCDR_20' ) start [2025-04-10 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878651', 'tblTempVendorCDR_20' ) end [2025-04-10 18:15:20] Production.INFO: ProcessCDR(1,14878651,1,1,2) [2025-04-10 18:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878651', 'tblTempUsageDetail_20' ) start [2025-04-10 18:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878651', 'tblTempUsageDetail_20' ) end [2025-04-10 18:15:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 18:15:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 18:15:25] Production.INFO: ==17566== Releasing lock... [2025-04-10 18:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 18:15:25] Production.INFO: 56.75 MB #Memory Used# [2025-04-10 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 15:16:05 [end_date_ymd] => 2025-04-10 18:16:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 15:16:05' and `end` < '2025-04-10 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-04-10 18:16:18] Production.INFO: count ==3746 [2025-04-10 18:16:20] Production.ERROR: pbx CDR StartTime 2025-04-10 15:16:05 - End Time 2025-04-10 18:16:05 [2025-04-10 18:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878656', 'tblTempUsageDetail_20' ) start [2025-04-10 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878656', 'tblTempUsageDetail_20' ) end [2025-04-10 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878656', 'tblTempVendorCDR_20' ) start [2025-04-10 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878656', 'tblTempVendorCDR_20' ) end [2025-04-10 18:16:20] Production.INFO: ProcessCDR(1,14878656,1,1,2) [2025-04-10 18:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878656', 'tblTempUsageDetail_20' ) start [2025-04-10 18:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878656', 'tblTempUsageDetail_20' ) end [2025-04-10 18:16:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 18:16:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 18:16:25] Production.INFO: ==17641== Releasing lock... [2025-04-10 18:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 18:16:25] Production.INFO: 56 MB #Memory Used# [2025-04-10 18:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 15:17:06 [end_date_ymd] => 2025-04-10 18:17:06 [RateCDR] => 1 ) [2025-04-10 18:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 15:17:06' and `end` < '2025-04-10 18:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 18:17:19] Production.INFO: count ==3740 [2025-04-10 18:17:21] Production.ERROR: pbx CDR StartTime 2025-04-10 15:17:06 - End Time 2025-04-10 18:17:06 [2025-04-10 18:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878661', 'tblTempUsageDetail_20' ) start [2025-04-10 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878661', 'tblTempUsageDetail_20' ) end [2025-04-10 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878661', 'tblTempVendorCDR_20' ) start [2025-04-10 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878661', 'tblTempVendorCDR_20' ) end [2025-04-10 18:17:21] Production.INFO: ProcessCDR(1,14878661,1,1,2) [2025-04-10 18:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878661', 'tblTempUsageDetail_20' ) start [2025-04-10 18:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878661', 'tblTempUsageDetail_20' ) end [2025-04-10 18:17:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 18:17:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 18:17:26] Production.INFO: ==17716== Releasing lock... [2025-04-10 18:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 18:17:26] Production.INFO: 56.25 MB #Memory Used# [2025-04-10 18:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 15:18:05 [end_date_ymd] => 2025-04-10 18:18:05 [RateCDR] => 1 ) [2025-04-10 18:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 15:18:05' and `end` < '2025-04-10 18:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 18:18:18] Production.INFO: count ==3734 [2025-04-10 18:18:19] Production.ERROR: pbx CDR StartTime 2025-04-10 15:18:05 - End Time 2025-04-10 18:18:05 [2025-04-10 18:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878666', 'tblTempUsageDetail_20' ) start [2025-04-10 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878666', 'tblTempUsageDetail_20' ) end [2025-04-10 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878666', 'tblTempVendorCDR_20' ) start [2025-04-10 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878666', 'tblTempVendorCDR_20' ) end [2025-04-10 18:18:20] Production.INFO: ProcessCDR(1,14878666,1,1,2) [2025-04-10 18:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878666', 'tblTempUsageDetail_20' ) start [2025-04-10 18:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878666', 'tblTempUsageDetail_20' ) end [2025-04-10 18:18:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 18:18:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 18:18:25] Production.INFO: ==17787== Releasing lock... [2025-04-10 18:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 18:18:25] Production.INFO: 56 MB #Memory Used# [2025-04-10 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 15:19:05 [end_date_ymd] => 2025-04-10 18:19:05 [RateCDR] => 1 ) [2025-04-10 18:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 15:19:05' and `end` < '2025-04-10 18:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 18:19:19] Production.INFO: count ==3726 [2025-04-10 18:19:20] Production.ERROR: pbx CDR StartTime 2025-04-10 15:19:05 - End Time 2025-04-10 18:19:05 [2025-04-10 18:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878671', 'tblTempUsageDetail_20' ) start [2025-04-10 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878671', 'tblTempUsageDetail_20' ) end [2025-04-10 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878671', 'tblTempVendorCDR_20' ) start [2025-04-10 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878671', 'tblTempVendorCDR_20' ) end [2025-04-10 18:19:20] Production.INFO: ProcessCDR(1,14878671,1,1,2) [2025-04-10 18:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878671', 'tblTempUsageDetail_20' ) start [2025-04-10 18:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878671', 'tblTempUsageDetail_20' ) end [2025-04-10 18:19:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 18:19:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 18:19:25] Production.INFO: ==17859== Releasing lock... [2025-04-10 18:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 18:19:25] Production.INFO: 56 MB #Memory Used# [2025-04-10 18:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 15:20:06 [end_date_ymd] => 2025-04-10 18:20:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 15:20:06' and `end` < '2025-04-10 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-04-10 18:20:19] Production.INFO: count ==3723 [2025-04-10 18:20:21] Production.ERROR: pbx CDR StartTime 2025-04-10 15:20:06 - End Time 2025-04-10 18:20:06 [2025-04-10 18:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878677', 'tblTempUsageDetail_20' ) start [2025-04-10 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878677', 'tblTempUsageDetail_20' ) end [2025-04-10 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878677', 'tblTempVendorCDR_20' ) start [2025-04-10 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878677', 'tblTempVendorCDR_20' ) end [2025-04-10 18:20:21] Production.INFO: ProcessCDR(1,14878677,1,1,2) [2025-04-10 18:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878677', 'tblTempUsageDetail_20' ) start [2025-04-10 18:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878677', 'tblTempUsageDetail_20' ) end [2025-04-10 18:20:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 18:20:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 18:20:26] Production.INFO: ==17936== Releasing lock... [2025-04-10 18:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 18:20:26] Production.INFO: 56 MB #Memory Used# [2025-04-10 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 15:21:05 [end_date_ymd] => 2025-04-10 18:21:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 15:21:05' and `end` < '2025-04-10 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-04-10 18:21:18] Production.INFO: count ==3659 [2025-04-10 18:21:20] Production.ERROR: pbx CDR StartTime 2025-04-10 15:21:05 - End Time 2025-04-10 18:21:05 [2025-04-10 18:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878682', 'tblTempUsageDetail_20' ) start [2025-04-10 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878682', 'tblTempUsageDetail_20' ) end [2025-04-10 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878682', 'tblTempVendorCDR_20' ) start [2025-04-10 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878682', 'tblTempVendorCDR_20' ) end [2025-04-10 18:21:20] Production.INFO: ProcessCDR(1,14878682,1,1,2) [2025-04-10 18:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878682', 'tblTempUsageDetail_20' ) start [2025-04-10 18:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878682', 'tblTempUsageDetail_20' ) end [2025-04-10 18:21:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 18:21:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 18:21:25] Production.INFO: ==18011== Releasing lock... [2025-04-10 18:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 18:21:25] Production.INFO: 55.5 MB #Memory Used# [2025-04-10 18:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 15:22:05 [end_date_ymd] => 2025-04-10 18:22:05 [RateCDR] => 1 ) [2025-04-10 18:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 15:22:05' and `end` < '2025-04-10 18:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 18:22:18] Production.INFO: count ==3640 [2025-04-10 18:22:20] Production.ERROR: pbx CDR StartTime 2025-04-10 15:22:05 - End Time 2025-04-10 18:22:05 [2025-04-10 18:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878687', 'tblTempUsageDetail_20' ) start [2025-04-10 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878687', 'tblTempUsageDetail_20' ) end [2025-04-10 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878687', 'tblTempVendorCDR_20' ) start [2025-04-10 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878687', 'tblTempVendorCDR_20' ) end [2025-04-10 18:22:20] Production.INFO: ProcessCDR(1,14878687,1,1,2) [2025-04-10 18:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878687', 'tblTempUsageDetail_20' ) start [2025-04-10 18:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878687', 'tblTempUsageDetail_20' ) end [2025-04-10 18:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 18:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 18:22:23] Production.INFO: ==18080== Releasing lock... [2025-04-10 18:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 18:22:23] Production.INFO: 56 MB #Memory Used# [2025-04-10 18:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 15:23:06 [end_date_ymd] => 2025-04-10 18:23:06 [RateCDR] => 1 ) [2025-04-10 18: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-04-10 15:23:06' and `end` < '2025-04-10 18: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-04-10 18:23:19] Production.INFO: count ==3623 [2025-04-10 18:23:20] Production.ERROR: pbx CDR StartTime 2025-04-10 15:23:06 - End Time 2025-04-10 18:23:06 [2025-04-10 18:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878692', 'tblTempUsageDetail_20' ) start [2025-04-10 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878692', 'tblTempUsageDetail_20' ) end [2025-04-10 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878692', 'tblTempVendorCDR_20' ) start [2025-04-10 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878692', 'tblTempVendorCDR_20' ) end [2025-04-10 18:23:20] Production.INFO: ProcessCDR(1,14878692,1,1,2) [2025-04-10 18:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878692', 'tblTempUsageDetail_20' ) start [2025-04-10 18:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878692', 'tblTempUsageDetail_20' ) end [2025-04-10 18:23:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 18:23:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 18:23:24] Production.INFO: ==18160== Releasing lock... [2025-04-10 18:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 18:23:24] Production.INFO: 55 MB #Memory Used# [2025-04-10 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 15:24:05 [end_date_ymd] => 2025-04-10 18:24:05 [RateCDR] => 1 ) [2025-04-10 18:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 15:24:05' and `end` < '2025-04-10 18:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 18:24:19] Production.INFO: count ==3620 [2025-04-10 18:24:20] Production.ERROR: pbx CDR StartTime 2025-04-10 15:24:05 - End Time 2025-04-10 18:24:05 [2025-04-10 18:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878697', 'tblTempUsageDetail_20' ) start [2025-04-10 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878697', 'tblTempUsageDetail_20' ) end [2025-04-10 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878697', 'tblTempVendorCDR_20' ) start [2025-04-10 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878697', 'tblTempVendorCDR_20' ) end [2025-04-10 18:24:20] Production.INFO: ProcessCDR(1,14878697,1,1,2) [2025-04-10 18:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878697', 'tblTempUsageDetail_20' ) start [2025-04-10 18:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878697', 'tblTempUsageDetail_20' ) end [2025-04-10 18:24:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 18:24:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 18:24:26] Production.INFO: ==18233== Releasing lock... [2025-04-10 18:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 18:24:26] Production.INFO: 55.25 MB #Memory Used# [2025-04-10 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 15:25:05 [end_date_ymd] => 2025-04-10 18:25:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 15:25:05' and `end` < '2025-04-10 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-04-10 18:25:19] Production.INFO: count ==3603 [2025-04-10 18:25:20] Production.ERROR: pbx CDR StartTime 2025-04-10 15:25:05 - End Time 2025-04-10 18:25:05 [2025-04-10 18:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878702', 'tblTempUsageDetail_20' ) start [2025-04-10 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878702', 'tblTempUsageDetail_20' ) end [2025-04-10 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878702', 'tblTempVendorCDR_20' ) start [2025-04-10 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878702', 'tblTempVendorCDR_20' ) end [2025-04-10 18:25:20] Production.INFO: ProcessCDR(1,14878702,1,1,2) [2025-04-10 18:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878702', 'tblTempUsageDetail_20' ) start [2025-04-10 18:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878702', 'tblTempUsageDetail_20' ) end [2025-04-10 18:25:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 18:25:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 18:25:23] Production.INFO: ==18310== Releasing lock... [2025-04-10 18:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 18:25:23] Production.INFO: 55 MB #Memory Used# [2025-04-10 18:26:17] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 15:26:17 [end_date_ymd] => 2025-04-10 18:26:17 [RateCDR] => 1 ) [2025-04-10 18:26:17] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 15:26:17' and `end` < '2025-04-10 18:26:17' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 18:26:30] Production.INFO: count ==3581 [2025-04-10 18:27:19] Production.ERROR: pbx CDR StartTime 2025-04-10 15:26:17 - End Time 2025-04-10 18:26:17 [2025-04-10 18:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 18:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878707', 'tblTempUsageDetail_20' ) start [2025-04-10 18:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878707', 'tblTempUsageDetail_20' ) end [2025-04-10 18:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878707', 'tblTempVendorCDR_20' ) start [2025-04-10 18:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878707', 'tblTempVendorCDR_20' ) end [2025-04-10 18:27:24] Production.INFO: ProcessCDR(1,14878707,1,1,2) [2025-04-10 18:27:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:27:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:27:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:27:50] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:27:50] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878707', 'tblTempUsageDetail_20' ) start [2025-04-10 18:27:51] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878707', 'tblTempUsageDetail_20' ) end [2025-04-10 18:27:51] Production.ERROR: pbx prc_insertCDR start [2025-04-10 18:27:51] Production.ERROR: pbx prc_insertCDR end [2025-04-10 18:27:51] Production.INFO: ==18381== Releasing lock... [2025-04-10 18:27:51] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 18:27:51] Production.INFO: 55.5 MB #Memory Used# [2025-04-10 18:28:20] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 15:28:20 [end_date_ymd] => 2025-04-10 18:28:20 [RateCDR] => 1 ) [2025-04-10 18:28:20] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 15:28:20' and `end` < '2025-04-10 18:28:20' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 18:28:33] Production.INFO: count ==3523 [2025-04-10 18:28:59] Production.ERROR: pbx CDR StartTime 2025-04-10 15:28:20 - End Time 2025-04-10 18:28:20 [2025-04-10 18:28:59] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 18:28:59] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878714', 'tblTempUsageDetail_20' ) start [2025-04-10 18:28:59] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878714', 'tblTempUsageDetail_20' ) end [2025-04-10 18:28:59] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878714', 'tblTempVendorCDR_20' ) start [2025-04-10 18:28:59] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878714', 'tblTempVendorCDR_20' ) end [2025-04-10 18:28:59] Production.INFO: ProcessCDR(1,14878714,1,1,2) [2025-04-10 18:28:59] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:29:06] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:29:06] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878714', 'tblTempUsageDetail_20' ) start [2025-04-10 18:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878714', 'tblTempUsageDetail_20' ) end [2025-04-10 18:29:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 18:29:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 18:29:26] Production.INFO: ==18514== Releasing lock... [2025-04-10 18:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 18:29:26] Production.INFO: 54.75 MB #Memory Used# [2025-04-10 18:30:21] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 15:30:21 [end_date_ymd] => 2025-04-10 18:30:21 [RateCDR] => 1 ) [2025-04-10 18:30:21] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 15:30:21' and `end` < '2025-04-10 18:30:21' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 18:30:34] Production.INFO: count ==3505 [2025-04-10 18:30:49] Production.ERROR: pbx CDR StartTime 2025-04-10 15:30:21 - End Time 2025-04-10 18:30:21 [2025-04-10 18:30:49] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 18:30:49] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878723', 'tblTempUsageDetail_20' ) start [2025-04-10 18:30:52] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878723', 'tblTempUsageDetail_20' ) end [2025-04-10 18:30:52] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878723', 'tblTempVendorCDR_20' ) start [2025-04-10 18:30:53] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878723', 'tblTempVendorCDR_20' ) end [2025-04-10 18:30:53] Production.INFO: ProcessCDR(1,14878723,1,1,2) [2025-04-10 18:30:53] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:30:54] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:30:54] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:30:57] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:30:57] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878723', 'tblTempUsageDetail_20' ) start [2025-04-10 18:30:57] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878723', 'tblTempUsageDetail_20' ) end [2025-04-10 18:30:57] Production.ERROR: pbx prc_insertCDR start [2025-04-10 18:30:57] Production.ERROR: pbx prc_insertCDR end [2025-04-10 18:30:58] Production.INFO: ==18702== Releasing lock... [2025-04-10 18:30:58] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 18:30:58] Production.INFO: 55.25 MB #Memory Used# [2025-04-10 18:31:18] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 15:31:18 [end_date_ymd] => 2025-04-10 18:31:18 [RateCDR] => 1 ) [2025-04-10 18:31:18] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 15:31:18' and `end` < '2025-04-10 18:31:18' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 18:31:32] Production.INFO: count ==3450 [2025-04-10 18:31:33] Production.ERROR: pbx CDR StartTime 2025-04-10 15:31:18 - End Time 2025-04-10 18:31:18 [2025-04-10 18:31:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 18:31:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878728', 'tblTempUsageDetail_20' ) start [2025-04-10 18:31:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878728', 'tblTempUsageDetail_20' ) end [2025-04-10 18:31:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878728', 'tblTempVendorCDR_20' ) start [2025-04-10 18:31:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878728', 'tblTempVendorCDR_20' ) end [2025-04-10 18:31:33] Production.INFO: ProcessCDR(1,14878728,1,1,2) [2025-04-10 18:31:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:31:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:31:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:31:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:31:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878728', 'tblTempUsageDetail_20' ) start [2025-04-10 18:31:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878728', 'tblTempUsageDetail_20' ) end [2025-04-10 18:31:38] Production.ERROR: pbx prc_insertCDR start [2025-04-10 18:31:38] Production.ERROR: pbx prc_insertCDR end [2025-04-10 18:31:38] Production.INFO: ==18778== Releasing lock... [2025-04-10 18:31:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 18:31:38] Production.INFO: 54 MB #Memory Used# [2025-04-10 18:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 15:32:05 [end_date_ymd] => 2025-04-10 18:32:05 [RateCDR] => 1 ) [2025-04-10 18:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 15:32:05' and `end` < '2025-04-10 18:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 18:32:18] Production.INFO: count ==3436 [2025-04-10 18:32:20] Production.ERROR: pbx CDR StartTime 2025-04-10 15:32:05 - End Time 2025-04-10 18:32:05 [2025-04-10 18:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878733', 'tblTempUsageDetail_20' ) start [2025-04-10 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878733', 'tblTempUsageDetail_20' ) end [2025-04-10 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878733', 'tblTempVendorCDR_20' ) start [2025-04-10 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878733', 'tblTempVendorCDR_20' ) end [2025-04-10 18:32:20] Production.INFO: ProcessCDR(1,14878733,1,1,2) [2025-04-10 18:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878733', 'tblTempUsageDetail_20' ) start [2025-04-10 18:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878733', 'tblTempUsageDetail_20' ) end [2025-04-10 18:32:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 18:32:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 18:32:23] Production.INFO: ==18852== Releasing lock... [2025-04-10 18:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 18:32:23] Production.INFO: 54 MB #Memory Used# [2025-04-10 18:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 15:33:06 [end_date_ymd] => 2025-04-10 18:33:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 15:33:06' and `end` < '2025-04-10 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-04-10 18:33:19] Production.INFO: count ==3430 [2025-04-10 18:33:20] Production.ERROR: pbx CDR StartTime 2025-04-10 15:33:06 - End Time 2025-04-10 18:33:06 [2025-04-10 18:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878738', 'tblTempUsageDetail_20' ) start [2025-04-10 18:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878738', 'tblTempUsageDetail_20' ) end [2025-04-10 18:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878738', 'tblTempVendorCDR_20' ) start [2025-04-10 18:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878738', 'tblTempVendorCDR_20' ) end [2025-04-10 18:33:21] Production.INFO: ProcessCDR(1,14878738,1,1,2) [2025-04-10 18:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878738', 'tblTempUsageDetail_20' ) start [2025-04-10 18:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878738', 'tblTempUsageDetail_20' ) end [2025-04-10 18:33:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 18:33:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 18:33:26] Production.INFO: ==18926== Releasing lock... [2025-04-10 18:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 18:33:26] Production.INFO: 53.75 MB #Memory Used# [2025-04-10 18:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 15:34:05 [end_date_ymd] => 2025-04-10 18:34:05 [RateCDR] => 1 ) [2025-04-10 18:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 15:34:05' and `end` < '2025-04-10 18:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 18:34:18] Production.INFO: count ==3423 [2025-04-10 18:34:19] Production.ERROR: pbx CDR StartTime 2025-04-10 15:34:05 - End Time 2025-04-10 18:34:05 [2025-04-10 18:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878743', 'tblTempUsageDetail_20' ) start [2025-04-10 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878743', 'tblTempUsageDetail_20' ) end [2025-04-10 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878743', 'tblTempVendorCDR_20' ) start [2025-04-10 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878743', 'tblTempVendorCDR_20' ) end [2025-04-10 18:34:20] Production.INFO: ProcessCDR(1,14878743,1,1,2) [2025-04-10 18:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878743', 'tblTempUsageDetail_20' ) start [2025-04-10 18:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878743', 'tblTempUsageDetail_20' ) end [2025-04-10 18:34:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 18:34:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 18:34:23] Production.INFO: ==18996== Releasing lock... [2025-04-10 18:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 18:34:23] Production.INFO: 53.75 MB #Memory Used# [2025-04-10 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 15:35:05 [end_date_ymd] => 2025-04-10 18:35:05 [RateCDR] => 1 ) [2025-04-10 18:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 15:35:05' and `end` < '2025-04-10 18:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 18:35:19] Production.INFO: count ==3418 [2025-04-10 18:35:20] Production.ERROR: pbx CDR StartTime 2025-04-10 15:35:05 - End Time 2025-04-10 18:35:05 [2025-04-10 18:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878748', 'tblTempUsageDetail_20' ) start [2025-04-10 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878748', 'tblTempUsageDetail_20' ) end [2025-04-10 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878748', 'tblTempVendorCDR_20' ) start [2025-04-10 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878748', 'tblTempVendorCDR_20' ) end [2025-04-10 18:35:20] Production.INFO: ProcessCDR(1,14878748,1,1,2) [2025-04-10 18:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878748', 'tblTempUsageDetail_20' ) start [2025-04-10 18:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878748', 'tblTempUsageDetail_20' ) end [2025-04-10 18:35:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 18:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 18:35:23] Production.INFO: ==19072== Releasing lock... [2025-04-10 18:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 18:35:23] Production.INFO: 54.5 MB #Memory Used# [2025-04-10 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 15:36:05 [end_date_ymd] => 2025-04-10 18:36:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 15:36:05' and `end` < '2025-04-10 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-04-10 18:36:19] Production.INFO: count ==3413 [2025-04-10 18:36:20] Production.ERROR: pbx CDR StartTime 2025-04-10 15:36:05 - End Time 2025-04-10 18:36:05 [2025-04-10 18:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878753', 'tblTempUsageDetail_20' ) start [2025-04-10 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878753', 'tblTempUsageDetail_20' ) end [2025-04-10 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878753', 'tblTempVendorCDR_20' ) start [2025-04-10 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878753', 'tblTempVendorCDR_20' ) end [2025-04-10 18:36:20] Production.INFO: ProcessCDR(1,14878753,1,1,2) [2025-04-10 18:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878753', 'tblTempUsageDetail_20' ) start [2025-04-10 18:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878753', 'tblTempUsageDetail_20' ) end [2025-04-10 18:36:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 18:36:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 18:36:24] Production.INFO: ==19142== Releasing lock... [2025-04-10 18:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 18:36:24] Production.INFO: 53.5 MB #Memory Used# [2025-04-10 18:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 15:37:06 [end_date_ymd] => 2025-04-10 18:37:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 15:37:06' and `end` < '2025-04-10 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-04-10 18:37:19] Production.INFO: count ==3407 [2025-04-10 18:37:20] Production.ERROR: pbx CDR StartTime 2025-04-10 15:37:06 - End Time 2025-04-10 18:37:06 [2025-04-10 18:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878758', 'tblTempUsageDetail_20' ) start [2025-04-10 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878758', 'tblTempUsageDetail_20' ) end [2025-04-10 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878758', 'tblTempVendorCDR_20' ) start [2025-04-10 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878758', 'tblTempVendorCDR_20' ) end [2025-04-10 18:37:20] Production.INFO: ProcessCDR(1,14878758,1,1,2) [2025-04-10 18:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878758', 'tblTempUsageDetail_20' ) start [2025-04-10 18:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878758', 'tblTempUsageDetail_20' ) end [2025-04-10 18:37:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 18:37:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 18:37:26] Production.INFO: ==19222== Releasing lock... [2025-04-10 18:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 18:37:26] Production.INFO: 53.5 MB #Memory Used# [2025-04-10 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 15:38:05 [end_date_ymd] => 2025-04-10 18:38:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 15:38:05' and `end` < '2025-04-10 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-04-10 18:38:18] Production.INFO: count ==3405 [2025-04-10 18:38:19] Production.ERROR: pbx CDR StartTime 2025-04-10 15:38:05 - End Time 2025-04-10 18:38:05 [2025-04-10 18:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878763', 'tblTempUsageDetail_20' ) start [2025-04-10 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878763', 'tblTempUsageDetail_20' ) end [2025-04-10 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878763', 'tblTempVendorCDR_20' ) start [2025-04-10 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878763', 'tblTempVendorCDR_20' ) end [2025-04-10 18:38:19] Production.INFO: ProcessCDR(1,14878763,1,1,2) [2025-04-10 18:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878763', 'tblTempUsageDetail_20' ) start [2025-04-10 18:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878763', 'tblTempUsageDetail_20' ) end [2025-04-10 18:38:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 18:38:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 18:38:25] Production.INFO: ==19296== Releasing lock... [2025-04-10 18:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 18:38:25] Production.INFO: 54.5 MB #Memory Used# [2025-04-10 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 15:39:05 [end_date_ymd] => 2025-04-10 18:39:05 [RateCDR] => 1 ) [2025-04-10 18:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 15:39:05' and `end` < '2025-04-10 18:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 18:39:19] Production.INFO: count ==3391 [2025-04-10 18:39:20] Production.ERROR: pbx CDR StartTime 2025-04-10 15:39:05 - End Time 2025-04-10 18:39:05 [2025-04-10 18:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878768', 'tblTempUsageDetail_20' ) start [2025-04-10 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878768', 'tblTempUsageDetail_20' ) end [2025-04-10 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878768', 'tblTempVendorCDR_20' ) start [2025-04-10 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878768', 'tblTempVendorCDR_20' ) end [2025-04-10 18:39:20] Production.INFO: ProcessCDR(1,14878768,1,1,2) [2025-04-10 18:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878768', 'tblTempUsageDetail_20' ) start [2025-04-10 18:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878768', 'tblTempUsageDetail_20' ) end [2025-04-10 18:39:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 18:39:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 18:39:24] Production.INFO: ==19370== Releasing lock... [2025-04-10 18:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 18:39:24] Production.INFO: 53.25 MB #Memory Used# [2025-04-10 18:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 15:40:06 [end_date_ymd] => 2025-04-10 18:40:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 15:40:06' and `end` < '2025-04-10 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-04-10 18:40:19] Production.INFO: count ==3366 [2025-04-10 18:40:20] Production.ERROR: pbx CDR StartTime 2025-04-10 15:40:06 - End Time 2025-04-10 18:40:06 [2025-04-10 18:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878773', 'tblTempUsageDetail_20' ) start [2025-04-10 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878773', 'tblTempUsageDetail_20' ) end [2025-04-10 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878773', 'tblTempVendorCDR_20' ) start [2025-04-10 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878773', 'tblTempVendorCDR_20' ) end [2025-04-10 18:40:21] Production.INFO: ProcessCDR(1,14878773,1,1,2) [2025-04-10 18:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878773', 'tblTempUsageDetail_20' ) start [2025-04-10 18:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878773', 'tblTempUsageDetail_20' ) end [2025-04-10 18:40:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 18:40:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 18:40:24] Production.INFO: ==19446== Releasing lock... [2025-04-10 18:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 18:40:24] Production.INFO: 54 MB #Memory Used# [2025-04-10 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 15:41:05 [end_date_ymd] => 2025-04-10 18:41:05 [RateCDR] => 1 ) [2025-04-10 18:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 15:41:05' and `end` < '2025-04-10 18:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 18:41:19] Production.INFO: count ==3302 [2025-04-10 18:41:20] Production.ERROR: pbx CDR StartTime 2025-04-10 15:41:05 - End Time 2025-04-10 18:41:05 [2025-04-10 18:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878779', 'tblTempUsageDetail_20' ) start [2025-04-10 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878779', 'tblTempUsageDetail_20' ) end [2025-04-10 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878779', 'tblTempVendorCDR_20' ) start [2025-04-10 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878779', 'tblTempVendorCDR_20' ) end [2025-04-10 18:41:20] Production.INFO: ProcessCDR(1,14878779,1,1,2) [2025-04-10 18:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878779', 'tblTempUsageDetail_20' ) start [2025-04-10 18:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878779', 'tblTempUsageDetail_20' ) end [2025-04-10 18:41:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 18:41:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 18:41:25] Production.INFO: ==19518== Releasing lock... [2025-04-10 18:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 18:41:25] Production.INFO: 52.75 MB #Memory Used# [2025-04-10 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 15:42:05 [end_date_ymd] => 2025-04-10 18:42:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 15:42:05' and `end` < '2025-04-10 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-04-10 18:42:18] Production.INFO: count ==3300 [2025-04-10 18:42:19] Production.ERROR: pbx CDR StartTime 2025-04-10 15:42:05 - End Time 2025-04-10 18:42:05 [2025-04-10 18:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878784', 'tblTempUsageDetail_20' ) start [2025-04-10 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878784', 'tblTempUsageDetail_20' ) end [2025-04-10 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878784', 'tblTempVendorCDR_20' ) start [2025-04-10 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878784', 'tblTempVendorCDR_20' ) end [2025-04-10 18:42:19] Production.INFO: ProcessCDR(1,14878784,1,1,2) [2025-04-10 18:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878784', 'tblTempUsageDetail_20' ) start [2025-04-10 18:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878784', 'tblTempUsageDetail_20' ) end [2025-04-10 18:42:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 18:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 18:42:23] Production.INFO: ==19590== Releasing lock... [2025-04-10 18:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 18:42:23] Production.INFO: 53.25 MB #Memory Used# [2025-04-10 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 15:43:05 [end_date_ymd] => 2025-04-10 18:43:05 [RateCDR] => 1 ) [2025-04-10 18:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 15:43:05' and `end` < '2025-04-10 18:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 18:43:19] Production.INFO: count ==3291 [2025-04-10 18:43:20] Production.ERROR: pbx CDR StartTime 2025-04-10 15:43:05 - End Time 2025-04-10 18:43:05 [2025-04-10 18:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878789', 'tblTempUsageDetail_20' ) start [2025-04-10 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878789', 'tblTempUsageDetail_20' ) end [2025-04-10 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878789', 'tblTempVendorCDR_20' ) start [2025-04-10 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878789', 'tblTempVendorCDR_20' ) end [2025-04-10 18:43:20] Production.INFO: ProcessCDR(1,14878789,1,1,2) [2025-04-10 18:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878789', 'tblTempUsageDetail_20' ) start [2025-04-10 18:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878789', 'tblTempUsageDetail_20' ) end [2025-04-10 18:43:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 18:43:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 18:43:25] Production.INFO: ==19663== Releasing lock... [2025-04-10 18:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 18:43:25] Production.INFO: 53.25 MB #Memory Used# [2025-04-10 18:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 15:44:05 [end_date_ymd] => 2025-04-10 18:44:05 [RateCDR] => 1 ) [2025-04-10 18:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 15:44:05' and `end` < '2025-04-10 18:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 18:44:18] Production.INFO: count ==3286 [2025-04-10 18:44:19] Production.ERROR: pbx CDR StartTime 2025-04-10 15:44:05 - End Time 2025-04-10 18:44:05 [2025-04-10 18:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878794', 'tblTempUsageDetail_20' ) start [2025-04-10 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878794', 'tblTempUsageDetail_20' ) end [2025-04-10 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878794', 'tblTempVendorCDR_20' ) start [2025-04-10 18:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878794', 'tblTempVendorCDR_20' ) end [2025-04-10 18:44:19] Production.INFO: ProcessCDR(1,14878794,1,1,2) [2025-04-10 18:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878794', 'tblTempUsageDetail_20' ) start [2025-04-10 18:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878794', 'tblTempUsageDetail_20' ) end [2025-04-10 18:44:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 18:44:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 18:44:25] Production.INFO: ==19771== Releasing lock... [2025-04-10 18:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 18:44:25] Production.INFO: 52.5 MB #Memory Used# [2025-04-10 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 15:45:05 [end_date_ymd] => 2025-04-10 18:45:05 [RateCDR] => 1 ) [2025-04-10 18:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 15:45:05' and `end` < '2025-04-10 18:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 18:45:18] Production.INFO: count ==3270 [2025-04-10 18:45:19] Production.ERROR: pbx CDR StartTime 2025-04-10 15:45:05 - End Time 2025-04-10 18:45:05 [2025-04-10 18:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878799', 'tblTempUsageDetail_20' ) start [2025-04-10 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878799', 'tblTempUsageDetail_20' ) end [2025-04-10 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878799', 'tblTempVendorCDR_20' ) start [2025-04-10 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878799', 'tblTempVendorCDR_20' ) end [2025-04-10 18:45:19] Production.INFO: ProcessCDR(1,14878799,1,1,2) [2025-04-10 18:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878799', 'tblTempUsageDetail_20' ) start [2025-04-10 18:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878799', 'tblTempUsageDetail_20' ) end [2025-04-10 18:45:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 18:45:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 18:45:23] Production.INFO: ==19852== Releasing lock... [2025-04-10 18:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 18:45:23] Production.INFO: 53.5 MB #Memory Used# [2025-04-10 18:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 15:46:04 [end_date_ymd] => 2025-04-10 18:46:04 [RateCDR] => 1 ) [2025-04-10 18: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-04-10 15:46:04' and `end` < '2025-04-10 18: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-04-10 18:46:18] Production.INFO: count ==3242 [2025-04-10 18:46:19] Production.ERROR: pbx CDR StartTime 2025-04-10 15:46:04 - End Time 2025-04-10 18:46:04 [2025-04-10 18:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878804', 'tblTempUsageDetail_20' ) start [2025-04-10 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878804', 'tblTempUsageDetail_20' ) end [2025-04-10 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878804', 'tblTempVendorCDR_20' ) start [2025-04-10 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878804', 'tblTempVendorCDR_20' ) end [2025-04-10 18:46:19] Production.INFO: ProcessCDR(1,14878804,1,1,2) [2025-04-10 18:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878804', 'tblTempUsageDetail_20' ) start [2025-04-10 18:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878804', 'tblTempUsageDetail_20' ) end [2025-04-10 18:46:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 18:46:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 18:46:24] Production.INFO: ==19927== Releasing lock... [2025-04-10 18:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 18:46:24] Production.INFO: 53.25 MB #Memory Used# [2025-04-10 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 15:47:05 [end_date_ymd] => 2025-04-10 18:47:05 [RateCDR] => 1 ) [2025-04-10 18:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 15:47:05' and `end` < '2025-04-10 18:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 18:47:18] Production.INFO: count ==3227 [2025-04-10 18:47:19] Production.ERROR: pbx CDR StartTime 2025-04-10 15:47:05 - End Time 2025-04-10 18:47:05 [2025-04-10 18:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878809', 'tblTempUsageDetail_20' ) start [2025-04-10 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878809', 'tblTempUsageDetail_20' ) end [2025-04-10 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878809', 'tblTempVendorCDR_20' ) start [2025-04-10 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878809', 'tblTempVendorCDR_20' ) end [2025-04-10 18:47:19] Production.INFO: ProcessCDR(1,14878809,1,1,2) [2025-04-10 18:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878809', 'tblTempUsageDetail_20' ) start [2025-04-10 18:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878809', 'tblTempUsageDetail_20' ) end [2025-04-10 18:47:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 18:47:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 18:47:23] Production.INFO: ==19997== Releasing lock... [2025-04-10 18:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 18:47:23] Production.INFO: 52 MB #Memory Used# [2025-04-10 18:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 15:48:06 [end_date_ymd] => 2025-04-10 18:48:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 15:48:06' and `end` < '2025-04-10 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-04-10 18:48:19] Production.INFO: count ==3212 [2025-04-10 18:48:20] Production.ERROR: pbx CDR StartTime 2025-04-10 15:48:06 - End Time 2025-04-10 18:48:06 [2025-04-10 18:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878814', 'tblTempUsageDetail_20' ) start [2025-04-10 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878814', 'tblTempUsageDetail_20' ) end [2025-04-10 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878814', 'tblTempVendorCDR_20' ) start [2025-04-10 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878814', 'tblTempVendorCDR_20' ) end [2025-04-10 18:48:20] Production.INFO: ProcessCDR(1,14878814,1,1,2) [2025-04-10 18:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878814', 'tblTempUsageDetail_20' ) start [2025-04-10 18:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878814', 'tblTempUsageDetail_20' ) end [2025-04-10 18:48:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 18:48:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 18:48:25] Production.INFO: ==20070== Releasing lock... [2025-04-10 18:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 18:48:25] Production.INFO: 52 MB #Memory Used# [2025-04-10 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 15:49:05 [end_date_ymd] => 2025-04-10 18:49:05 [RateCDR] => 1 ) [2025-04-10 18:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 15:49:05' and `end` < '2025-04-10 18:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 18:49:19] Production.INFO: count ==3194 [2025-04-10 18:49:20] Production.ERROR: pbx CDR StartTime 2025-04-10 15:49:05 - End Time 2025-04-10 18:49:05 [2025-04-10 18:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878819', 'tblTempUsageDetail_20' ) start [2025-04-10 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878819', 'tblTempUsageDetail_20' ) end [2025-04-10 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878819', 'tblTempVendorCDR_20' ) start [2025-04-10 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878819', 'tblTempVendorCDR_20' ) end [2025-04-10 18:49:20] Production.INFO: ProcessCDR(1,14878819,1,1,2) [2025-04-10 18:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878819', 'tblTempUsageDetail_20' ) start [2025-04-10 18:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878819', 'tblTempUsageDetail_20' ) end [2025-04-10 18:49:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 18:49:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 18:49:23] Production.INFO: ==20142== Releasing lock... [2025-04-10 18:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 18:49:23] Production.INFO: 52.25 MB #Memory Used# [2025-04-10 18:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 15:50:06 [end_date_ymd] => 2025-04-10 18:50:06 [RateCDR] => 1 ) [2025-04-10 18:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 15:50:06' and `end` < '2025-04-10 18:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 18:50:19] Production.INFO: count ==3175 [2025-04-10 18:50:20] Production.ERROR: pbx CDR StartTime 2025-04-10 15:50:06 - End Time 2025-04-10 18:50:06 [2025-04-10 18:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878824', 'tblTempUsageDetail_20' ) start [2025-04-10 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878824', 'tblTempUsageDetail_20' ) end [2025-04-10 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878824', 'tblTempVendorCDR_20' ) start [2025-04-10 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878824', 'tblTempVendorCDR_20' ) end [2025-04-10 18:50:20] Production.INFO: ProcessCDR(1,14878824,1,1,2) [2025-04-10 18:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878824', 'tblTempUsageDetail_20' ) start [2025-04-10 18:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878824', 'tblTempUsageDetail_20' ) end [2025-04-10 18:50:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 18:50:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 18:50:25] Production.INFO: ==20222== Releasing lock... [2025-04-10 18:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 18:50:25] Production.INFO: 52 MB #Memory Used# [2025-04-10 18:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 15:51:05 [end_date_ymd] => 2025-04-10 18:51:05 [RateCDR] => 1 ) [2025-04-10 18:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 15:51:05' and `end` < '2025-04-10 18:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 18:51:18] Production.INFO: count ==3093 [2025-04-10 18:51:19] Production.ERROR: pbx CDR StartTime 2025-04-10 15:51:05 - End Time 2025-04-10 18:51:05 [2025-04-10 18:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878830', 'tblTempUsageDetail_20' ) start [2025-04-10 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878830', 'tblTempUsageDetail_20' ) end [2025-04-10 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878830', 'tblTempVendorCDR_20' ) start [2025-04-10 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878830', 'tblTempVendorCDR_20' ) end [2025-04-10 18:51:19] Production.INFO: ProcessCDR(1,14878830,1,1,2) [2025-04-10 18:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878830', 'tblTempUsageDetail_20' ) start [2025-04-10 18:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878830', 'tblTempUsageDetail_20' ) end [2025-04-10 18:51:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 18:51:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 18:51:24] Production.INFO: ==20299== Releasing lock... [2025-04-10 18:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 18:51:24] Production.INFO: 51.5 MB #Memory Used# [2025-04-10 18:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 15:52:06 [end_date_ymd] => 2025-04-10 18:52:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 15:52:06' and `end` < '2025-04-10 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-04-10 18:52:19] Production.INFO: count ==3090 [2025-04-10 18:52:20] Production.ERROR: pbx CDR StartTime 2025-04-10 15:52:06 - End Time 2025-04-10 18:52:06 [2025-04-10 18:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878835', 'tblTempUsageDetail_20' ) start [2025-04-10 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878835', 'tblTempUsageDetail_20' ) end [2025-04-10 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878835', 'tblTempVendorCDR_20' ) start [2025-04-10 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878835', 'tblTempVendorCDR_20' ) end [2025-04-10 18:52:20] Production.INFO: ProcessCDR(1,14878835,1,1,2) [2025-04-10 18:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878835', 'tblTempUsageDetail_20' ) start [2025-04-10 18:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878835', 'tblTempUsageDetail_20' ) end [2025-04-10 18:52:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 18:52:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 18:52:25] Production.INFO: ==20370== Releasing lock... [2025-04-10 18:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 18:52:25] Production.INFO: 51 MB #Memory Used# [2025-04-10 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 15:53:05 [end_date_ymd] => 2025-04-10 18:53:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 15:53:05' and `end` < '2025-04-10 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-04-10 18:53:18] Production.INFO: count ==3082 [2025-04-10 18:53:19] Production.ERROR: pbx CDR StartTime 2025-04-10 15:53:05 - End Time 2025-04-10 18:53:05 [2025-04-10 18:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878837', 'tblTempUsageDetail_20' ) start [2025-04-10 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878837', 'tblTempUsageDetail_20' ) end [2025-04-10 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878837', 'tblTempVendorCDR_20' ) start [2025-04-10 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878837', 'tblTempVendorCDR_20' ) end [2025-04-10 18:53:19] Production.INFO: ProcessCDR(1,14878837,1,1,2) [2025-04-10 18:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878837', 'tblTempUsageDetail_20' ) start [2025-04-10 18:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878837', 'tblTempUsageDetail_20' ) end [2025-04-10 18:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 18:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 18:53:23] Production.INFO: ==20442== Releasing lock... [2025-04-10 18:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 18:53:23] Production.INFO: 51.25 MB #Memory Used# [2025-04-10 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 15:54:05 [end_date_ymd] => 2025-04-10 18:54:05 [RateCDR] => 1 ) [2025-04-10 18:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 15:54:05' and `end` < '2025-04-10 18:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 18:54:18] Production.INFO: count ==3059 [2025-04-10 18:54:19] Production.ERROR: pbx CDR StartTime 2025-04-10 15:54:05 - End Time 2025-04-10 18:54:05 [2025-04-10 18:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878845', 'tblTempUsageDetail_20' ) start [2025-04-10 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878845', 'tblTempUsageDetail_20' ) end [2025-04-10 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878845', 'tblTempVendorCDR_20' ) start [2025-04-10 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878845', 'tblTempVendorCDR_20' ) end [2025-04-10 18:54:19] Production.INFO: ProcessCDR(1,14878845,1,1,2) [2025-04-10 18:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878845', 'tblTempUsageDetail_20' ) start [2025-04-10 18:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878845', 'tblTempUsageDetail_20' ) end [2025-04-10 18:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 18:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 18:54:23] Production.INFO: ==20511== Releasing lock... [2025-04-10 18:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 18:54:23] Production.INFO: 50.75 MB #Memory Used# [2025-04-10 18:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 15:55:06 [end_date_ymd] => 2025-04-10 18:55:06 [RateCDR] => 1 ) [2025-04-10 18:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 15:55:06' and `end` < '2025-04-10 18:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 18:55:19] Production.INFO: count ==3057 [2025-04-10 18:55:20] Production.ERROR: pbx CDR StartTime 2025-04-10 15:55:06 - End Time 2025-04-10 18:55:06 [2025-04-10 18:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878850', 'tblTempUsageDetail_20' ) start [2025-04-10 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878850', 'tblTempUsageDetail_20' ) end [2025-04-10 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878850', 'tblTempVendorCDR_20' ) start [2025-04-10 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878850', 'tblTempVendorCDR_20' ) end [2025-04-10 18:55:20] Production.INFO: ProcessCDR(1,14878850,1,1,2) [2025-04-10 18:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878850', 'tblTempUsageDetail_20' ) start [2025-04-10 18:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878850', 'tblTempUsageDetail_20' ) end [2025-04-10 18:55:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 18:55:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 18:55:25] Production.INFO: ==20587== Releasing lock... [2025-04-10 18:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 18:55:25] Production.INFO: 51.25 MB #Memory Used# [2025-04-10 18:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 15:56:06 [end_date_ymd] => 2025-04-10 18:56:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 15:56:06' and `end` < '2025-04-10 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-04-10 18:56:19] Production.INFO: count ==3050 [2025-04-10 18:56:20] Production.ERROR: pbx CDR StartTime 2025-04-10 15:56:06 - End Time 2025-04-10 18:56:06 [2025-04-10 18:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878855', 'tblTempUsageDetail_20' ) start [2025-04-10 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878855', 'tblTempUsageDetail_20' ) end [2025-04-10 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878855', 'tblTempVendorCDR_20' ) start [2025-04-10 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878855', 'tblTempVendorCDR_20' ) end [2025-04-10 18:56:20] Production.INFO: ProcessCDR(1,14878855,1,1,2) [2025-04-10 18:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878855', 'tblTempUsageDetail_20' ) start [2025-04-10 18:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878855', 'tblTempUsageDetail_20' ) end [2025-04-10 18:56:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 18:56:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 18:56:25] Production.INFO: ==20661== Releasing lock... [2025-04-10 18:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 18:56:25] Production.INFO: 50.75 MB #Memory Used# [2025-04-10 18:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 15:57:04 [end_date_ymd] => 2025-04-10 18:57:04 [RateCDR] => 1 ) [2025-04-10 18: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-04-10 15:57:04' and `end` < '2025-04-10 18: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-04-10 18:57:18] Production.INFO: count ==3024 [2025-04-10 18:57:19] Production.ERROR: pbx CDR StartTime 2025-04-10 15:57:04 - End Time 2025-04-10 18:57:04 [2025-04-10 18:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878860', 'tblTempUsageDetail_20' ) start [2025-04-10 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878860', 'tblTempUsageDetail_20' ) end [2025-04-10 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878860', 'tblTempVendorCDR_20' ) start [2025-04-10 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878860', 'tblTempVendorCDR_20' ) end [2025-04-10 18:57:19] Production.INFO: ProcessCDR(1,14878860,1,1,2) [2025-04-10 18:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878860', 'tblTempUsageDetail_20' ) start [2025-04-10 18:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878860', 'tblTempUsageDetail_20' ) end [2025-04-10 18:57:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 18:57:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 18:57:24] Production.INFO: ==20734== Releasing lock... [2025-04-10 18:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 18:57:24] Production.INFO: 51.5 MB #Memory Used# [2025-04-10 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 15:58:05 [end_date_ymd] => 2025-04-10 18:58:05 [RateCDR] => 1 ) [2025-04-10 18:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 15:58:05' and `end` < '2025-04-10 18:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 18:58:19] Production.INFO: count ==3001 [2025-04-10 18:58:19] Production.ERROR: pbx CDR StartTime 2025-04-10 15:58:05 - End Time 2025-04-10 18:58:05 [2025-04-10 18:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878865', 'tblTempUsageDetail_20' ) start [2025-04-10 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878865', 'tblTempUsageDetail_20' ) end [2025-04-10 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878865', 'tblTempVendorCDR_20' ) start [2025-04-10 18:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878865', 'tblTempVendorCDR_20' ) end [2025-04-10 18:58:20] Production.INFO: ProcessCDR(1,14878865,1,1,2) [2025-04-10 18:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878865', 'tblTempUsageDetail_20' ) start [2025-04-10 18:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878865', 'tblTempUsageDetail_20' ) end [2025-04-10 18:58:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 18:58:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 18:58:25] Production.INFO: ==20805== Releasing lock... [2025-04-10 18:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 18:58:25] Production.INFO: 50.75 MB #Memory Used# [2025-04-10 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 15:59:05 [end_date_ymd] => 2025-04-10 18:59:05 [RateCDR] => 1 ) [2025-04-10 18:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 15:59:05' and `end` < '2025-04-10 18:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 18:59:19] Production.INFO: count ==2996 [2025-04-10 18:59:19] Production.ERROR: pbx CDR StartTime 2025-04-10 15:59:05 - End Time 2025-04-10 18:59:05 [2025-04-10 18:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878870', 'tblTempUsageDetail_20' ) start [2025-04-10 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878870', 'tblTempUsageDetail_20' ) end [2025-04-10 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878870', 'tblTempVendorCDR_20' ) start [2025-04-10 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878870', 'tblTempVendorCDR_20' ) end [2025-04-10 18:59:20] Production.INFO: ProcessCDR(1,14878870,1,1,2) [2025-04-10 18:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 18:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 18:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878870', 'tblTempUsageDetail_20' ) start [2025-04-10 18:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878870', 'tblTempUsageDetail_20' ) end [2025-04-10 18:59:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 18:59:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 18:59:25] Production.INFO: ==20877== Releasing lock... [2025-04-10 18:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 18:59:25] Production.INFO: 50.75 MB #Memory Used# [2025-04-10 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 16:00:06 [end_date_ymd] => 2025-04-10 19:00:06 [RateCDR] => 1 ) [2025-04-10 19:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 16:00:06' and `end` < '2025-04-10 19:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 19:00:19] Production.INFO: count ==2960 [2025-04-10 19:00:20] Production.ERROR: pbx CDR StartTime 2025-04-10 16:00:06 - End Time 2025-04-10 19:00:06 [2025-04-10 19:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878875', 'tblTempUsageDetail_20' ) start [2025-04-10 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878875', 'tblTempUsageDetail_20' ) end [2025-04-10 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878875', 'tblTempVendorCDR_20' ) start [2025-04-10 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878875', 'tblTempVendorCDR_20' ) end [2025-04-10 19:00:20] Production.INFO: ProcessCDR(1,14878875,1,1,2) [2025-04-10 19:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878875', 'tblTempUsageDetail_20' ) start [2025-04-10 19:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878875', 'tblTempUsageDetail_20' ) end [2025-04-10 19:00:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 19:00:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 19:00:24] Production.INFO: ==20991== Releasing lock... [2025-04-10 19:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 19:00:24] Production.INFO: 50.25 MB #Memory Used# [2025-04-10 19:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 16:01:05 [end_date_ymd] => 2025-04-10 19:01:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 16:01:05' and `end` < '2025-04-10 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-04-10 19:01:18] Production.INFO: count ==2898 [2025-04-10 19:01:19] Production.ERROR: pbx CDR StartTime 2025-04-10 16:01:05 - End Time 2025-04-10 19:01:05 [2025-04-10 19:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878881', 'tblTempUsageDetail_20' ) start [2025-04-10 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878881', 'tblTempUsageDetail_20' ) end [2025-04-10 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878881', 'tblTempVendorCDR_20' ) start [2025-04-10 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878881', 'tblTempVendorCDR_20' ) end [2025-04-10 19:01:19] Production.INFO: ProcessCDR(1,14878881,1,1,2) [2025-04-10 19:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878881', 'tblTempUsageDetail_20' ) start [2025-04-10 19:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878881', 'tblTempUsageDetail_20' ) end [2025-04-10 19:01:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 19:01:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 19:01:24] Production.INFO: ==21084== Releasing lock... [2025-04-10 19:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 19:01:24] Production.INFO: 49.75 MB #Memory Used# [2025-04-10 19:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 16:02:05 [end_date_ymd] => 2025-04-10 19:02:05 [RateCDR] => 1 ) [2025-04-10 19:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 16:02:05' and `end` < '2025-04-10 19:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 19:02:19] Production.INFO: count ==2882 [2025-04-10 19:02:20] Production.ERROR: pbx CDR StartTime 2025-04-10 16:02:05 - End Time 2025-04-10 19:02:05 [2025-04-10 19:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878886', 'tblTempUsageDetail_20' ) start [2025-04-10 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878886', 'tblTempUsageDetail_20' ) end [2025-04-10 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878886', 'tblTempVendorCDR_20' ) start [2025-04-10 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878886', 'tblTempVendorCDR_20' ) end [2025-04-10 19:02:20] Production.INFO: ProcessCDR(1,14878886,1,1,2) [2025-04-10 19:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878886', 'tblTempUsageDetail_20' ) start [2025-04-10 19:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878886', 'tblTempUsageDetail_20' ) end [2025-04-10 19:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 19:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 19:02:23] Production.INFO: ==21235== Releasing lock... [2025-04-10 19:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 19:02:23] Production.INFO: 49.75 MB #Memory Used# [2025-04-10 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 16:03:05 [end_date_ymd] => 2025-04-10 19:03:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 16:03:05' and `end` < '2025-04-10 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-04-10 19:03:18] Production.INFO: count ==2862 [2025-04-10 19:03:19] Production.ERROR: pbx CDR StartTime 2025-04-10 16:03:05 - End Time 2025-04-10 19:03:05 [2025-04-10 19:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878891', 'tblTempUsageDetail_20' ) start [2025-04-10 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878891', 'tblTempUsageDetail_20' ) end [2025-04-10 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878891', 'tblTempVendorCDR_20' ) start [2025-04-10 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878891', 'tblTempVendorCDR_20' ) end [2025-04-10 19:03:19] Production.INFO: ProcessCDR(1,14878891,1,1,2) [2025-04-10 19:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878891', 'tblTempUsageDetail_20' ) start [2025-04-10 19:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878891', 'tblTempUsageDetail_20' ) end [2025-04-10 19:03:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 19:03:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 19:03:23] Production.INFO: ==21307== Releasing lock... [2025-04-10 19:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 19:03:23] Production.INFO: 49.5 MB #Memory Used# [2025-04-10 19:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 16:04:06 [end_date_ymd] => 2025-04-10 19:04:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 16:04:06' and `end` < '2025-04-10 19: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-04-10 19:04:19] Production.INFO: count ==2840 [2025-04-10 19:04:20] Production.ERROR: pbx CDR StartTime 2025-04-10 16:04:06 - End Time 2025-04-10 19:04:06 [2025-04-10 19:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878896', 'tblTempUsageDetail_20' ) start [2025-04-10 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878896', 'tblTempUsageDetail_20' ) end [2025-04-10 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878896', 'tblTempVendorCDR_20' ) start [2025-04-10 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878896', 'tblTempVendorCDR_20' ) end [2025-04-10 19:04:20] Production.INFO: ProcessCDR(1,14878896,1,1,2) [2025-04-10 19:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878896', 'tblTempUsageDetail_20' ) start [2025-04-10 19:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878896', 'tblTempUsageDetail_20' ) end [2025-04-10 19:04:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 19:04:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 19:04:23] Production.INFO: ==21385== Releasing lock... [2025-04-10 19:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 19:04:23] Production.INFO: 49.5 MB #Memory Used# [2025-04-10 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 16:05:05 [end_date_ymd] => 2025-04-10 19:05:05 [RateCDR] => 1 ) [2025-04-10 19:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 16:05:05' and `end` < '2025-04-10 19:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 19:05:19] Production.INFO: count ==2831 [2025-04-10 19:05:19] Production.ERROR: pbx CDR StartTime 2025-04-10 16:05:05 - End Time 2025-04-10 19:05:05 [2025-04-10 19:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878901', 'tblTempUsageDetail_20' ) start [2025-04-10 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878901', 'tblTempUsageDetail_20' ) end [2025-04-10 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878901', 'tblTempVendorCDR_20' ) start [2025-04-10 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878901', 'tblTempVendorCDR_20' ) end [2025-04-10 19:05:19] Production.INFO: ProcessCDR(1,14878901,1,1,2) [2025-04-10 19:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878901', 'tblTempUsageDetail_20' ) start [2025-04-10 19:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878901', 'tblTempUsageDetail_20' ) end [2025-04-10 19:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 19:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 19:05:23] Production.INFO: ==21536== Releasing lock... [2025-04-10 19:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 19:05:23] Production.INFO: 49.5 MB #Memory Used# [2025-04-10 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 16:06:05 [end_date_ymd] => 2025-04-10 19:06:05 [RateCDR] => 1 ) [2025-04-10 19:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 16:06:05' and `end` < '2025-04-10 19:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 19:06:18] Production.INFO: count ==2834 [2025-04-10 19:06:19] Production.ERROR: pbx CDR StartTime 2025-04-10 16:06:05 - End Time 2025-04-10 19:06:05 [2025-04-10 19:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878906', 'tblTempUsageDetail_20' ) start [2025-04-10 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878906', 'tblTempUsageDetail_20' ) end [2025-04-10 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878906', 'tblTempVendorCDR_20' ) start [2025-04-10 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878906', 'tblTempVendorCDR_20' ) end [2025-04-10 19:06:19] Production.INFO: ProcessCDR(1,14878906,1,1,2) [2025-04-10 19:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878906', 'tblTempUsageDetail_20' ) start [2025-04-10 19:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878906', 'tblTempUsageDetail_20' ) end [2025-04-10 19:06:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 19:06:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 19:06:23] Production.INFO: ==21610== Releasing lock... [2025-04-10 19:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 19:06:23] Production.INFO: 49.25 MB #Memory Used# [2025-04-10 19:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 16:07:06 [end_date_ymd] => 2025-04-10 19:07:06 [RateCDR] => 1 ) [2025-04-10 19:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 16:07:06' and `end` < '2025-04-10 19:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 19:07:19] Production.INFO: count ==2838 [2025-04-10 19:07:20] Production.ERROR: pbx CDR StartTime 2025-04-10 16:07:06 - End Time 2025-04-10 19:07:06 [2025-04-10 19:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878911', 'tblTempUsageDetail_20' ) start [2025-04-10 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878911', 'tblTempUsageDetail_20' ) end [2025-04-10 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878911', 'tblTempVendorCDR_20' ) start [2025-04-10 19:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878911', 'tblTempVendorCDR_20' ) end [2025-04-10 19:07:20] Production.INFO: ProcessCDR(1,14878911,1,1,2) [2025-04-10 19:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878911', 'tblTempUsageDetail_20' ) start [2025-04-10 19:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878911', 'tblTempUsageDetail_20' ) end [2025-04-10 19:07:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 19:07:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 19:07:26] Production.INFO: ==21680== Releasing lock... [2025-04-10 19:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 19:07:26] Production.INFO: 49.5 MB #Memory Used# [2025-04-10 19:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 16:08:05 [end_date_ymd] => 2025-04-10 19:08:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 16:08:05' and `end` < '2025-04-10 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-04-10 19:08:19] Production.INFO: count ==2827 [2025-04-10 19:08:20] Production.ERROR: pbx CDR StartTime 2025-04-10 16:08:05 - End Time 2025-04-10 19:08:05 [2025-04-10 19:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878916', 'tblTempUsageDetail_20' ) start [2025-04-10 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878916', 'tblTempUsageDetail_20' ) end [2025-04-10 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878916', 'tblTempVendorCDR_20' ) start [2025-04-10 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878916', 'tblTempVendorCDR_20' ) end [2025-04-10 19:08:20] Production.INFO: ProcessCDR(1,14878916,1,1,2) [2025-04-10 19:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878916', 'tblTempUsageDetail_20' ) start [2025-04-10 19:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878916', 'tblTempUsageDetail_20' ) end [2025-04-10 19:08:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 19:08:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 19:08:23] Production.INFO: ==21828== Releasing lock... [2025-04-10 19:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 19:08:23] Production.INFO: 49.25 MB #Memory Used# [2025-04-10 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 16:09:05 [end_date_ymd] => 2025-04-10 19:09:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 16:09:05' and `end` < '2025-04-10 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-04-10 19:09:18] Production.INFO: count ==2807 [2025-04-10 19:09:19] Production.ERROR: pbx CDR StartTime 2025-04-10 16:09:05 - End Time 2025-04-10 19:09:05 [2025-04-10 19:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878921', 'tblTempUsageDetail_20' ) start [2025-04-10 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878921', 'tblTempUsageDetail_20' ) end [2025-04-10 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878921', 'tblTempVendorCDR_20' ) start [2025-04-10 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878921', 'tblTempVendorCDR_20' ) end [2025-04-10 19:09:19] Production.INFO: ProcessCDR(1,14878921,1,1,2) [2025-04-10 19:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878921', 'tblTempUsageDetail_20' ) start [2025-04-10 19:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878921', 'tblTempUsageDetail_20' ) end [2025-04-10 19:09:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 19:09:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 19:09:24] Production.INFO: ==21901== Releasing lock... [2025-04-10 19:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 19:09:24] Production.INFO: 49.25 MB #Memory Used# [2025-04-10 19:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 16:10:06 [end_date_ymd] => 2025-04-10 19:10:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 16:10:06' and `end` < '2025-04-10 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-04-10 19:10:19] Production.INFO: count ==2799 [2025-04-10 19:10:20] Production.ERROR: pbx CDR StartTime 2025-04-10 16:10:06 - End Time 2025-04-10 19:10:06 [2025-04-10 19:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878927', 'tblTempUsageDetail_20' ) start [2025-04-10 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878927', 'tblTempUsageDetail_20' ) end [2025-04-10 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878927', 'tblTempVendorCDR_20' ) start [2025-04-10 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878927', 'tblTempVendorCDR_20' ) end [2025-04-10 19:10:20] Production.INFO: ProcessCDR(1,14878927,1,1,2) [2025-04-10 19:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878927', 'tblTempUsageDetail_20' ) start [2025-04-10 19:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878927', 'tblTempUsageDetail_20' ) end [2025-04-10 19:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 19:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 19:10:24] Production.INFO: ==21979== Releasing lock... [2025-04-10 19:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 19:10:24] Production.INFO: 49 MB #Memory Used# [2025-04-10 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 16:11:05 [end_date_ymd] => 2025-04-10 19:11:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 16:11:05' and `end` < '2025-04-10 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-04-10 19:11:18] Production.INFO: count ==2721 [2025-04-10 19:11:19] Production.ERROR: pbx CDR StartTime 2025-04-10 16:11:05 - End Time 2025-04-10 19:11:05 [2025-04-10 19:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878932', 'tblTempUsageDetail_20' ) start [2025-04-10 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878932', 'tblTempUsageDetail_20' ) end [2025-04-10 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878932', 'tblTempVendorCDR_20' ) start [2025-04-10 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878932', 'tblTempVendorCDR_20' ) end [2025-04-10 19:11:19] Production.INFO: ProcessCDR(1,14878932,1,1,2) [2025-04-10 19:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878932', 'tblTempUsageDetail_20' ) start [2025-04-10 19:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878932', 'tblTempUsageDetail_20' ) end [2025-04-10 19:11:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 19:11:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 19:11:24] Production.INFO: ==22056== Releasing lock... [2025-04-10 19:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 19:11:24] Production.INFO: 48.5 MB #Memory Used# [2025-04-10 19:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 16:12:05 [end_date_ymd] => 2025-04-10 19:12:05 [RateCDR] => 1 ) [2025-04-10 19:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 16:12:05' and `end` < '2025-04-10 19:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 19:12:18] Production.INFO: count ==2703 [2025-04-10 19:12:19] Production.ERROR: pbx CDR StartTime 2025-04-10 16:12:05 - End Time 2025-04-10 19:12:05 [2025-04-10 19:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878937', 'tblTempUsageDetail_20' ) start [2025-04-10 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878937', 'tblTempUsageDetail_20' ) end [2025-04-10 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878937', 'tblTempVendorCDR_20' ) start [2025-04-10 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878937', 'tblTempVendorCDR_20' ) end [2025-04-10 19:12:19] Production.INFO: ProcessCDR(1,14878937,1,1,2) [2025-04-10 19:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878937', 'tblTempUsageDetail_20' ) start [2025-04-10 19:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878937', 'tblTempUsageDetail_20' ) end [2025-04-10 19:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 19:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 19:12:22] Production.INFO: ==22208== Releasing lock... [2025-04-10 19:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 19:12:22] Production.INFO: 48.5 MB #Memory Used# [2025-04-10 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 16:13:05 [end_date_ymd] => 2025-04-10 19:13:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 16:13:05' and `end` < '2025-04-10 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-04-10 19:13:18] Production.INFO: count ==2695 [2025-04-10 19:13:19] Production.ERROR: pbx CDR StartTime 2025-04-10 16:13:05 - End Time 2025-04-10 19:13:05 [2025-04-10 19:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878942', 'tblTempUsageDetail_20' ) start [2025-04-10 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878942', 'tblTempUsageDetail_20' ) end [2025-04-10 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878942', 'tblTempVendorCDR_20' ) start [2025-04-10 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878942', 'tblTempVendorCDR_20' ) end [2025-04-10 19:13:19] Production.INFO: ProcessCDR(1,14878942,1,1,2) [2025-04-10 19:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878942', 'tblTempUsageDetail_20' ) start [2025-04-10 19:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878942', 'tblTempUsageDetail_20' ) end [2025-04-10 19:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 19:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 19:13:22] Production.INFO: ==22280== Releasing lock... [2025-04-10 19:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 19:13:22] Production.INFO: 48.25 MB #Memory Used# [2025-04-10 19:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 16:14:05 [end_date_ymd] => 2025-04-10 19:14:05 [RateCDR] => 1 ) [2025-04-10 19:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 16:14:05' and `end` < '2025-04-10 19:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 19:14:19] Production.INFO: count ==2683 [2025-04-10 19:14:19] Production.ERROR: pbx CDR StartTime 2025-04-10 16:14:05 - End Time 2025-04-10 19:14:05 [2025-04-10 19:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878947', 'tblTempUsageDetail_20' ) start [2025-04-10 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878947', 'tblTempUsageDetail_20' ) end [2025-04-10 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878947', 'tblTempVendorCDR_20' ) start [2025-04-10 19:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878947', 'tblTempVendorCDR_20' ) end [2025-04-10 19:14:20] Production.INFO: ProcessCDR(1,14878947,1,1,2) [2025-04-10 19:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878947', 'tblTempUsageDetail_20' ) start [2025-04-10 19:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878947', 'tblTempUsageDetail_20' ) end [2025-04-10 19:14:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 19:14:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 19:14:25] Production.INFO: ==22352== Releasing lock... [2025-04-10 19:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 19:14:25] Production.INFO: 48.25 MB #Memory Used# [2025-04-10 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 16:15:05 [end_date_ymd] => 2025-04-10 19:15:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 16:15:05' and `end` < '2025-04-10 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-04-10 19:15:18] Production.INFO: count ==2664 [2025-04-10 19:15:19] Production.ERROR: pbx CDR StartTime 2025-04-10 16:15:05 - End Time 2025-04-10 19:15:05 [2025-04-10 19:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878952', 'tblTempUsageDetail_20' ) start [2025-04-10 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878952', 'tblTempUsageDetail_20' ) end [2025-04-10 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878952', 'tblTempVendorCDR_20' ) start [2025-04-10 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878952', 'tblTempVendorCDR_20' ) end [2025-04-10 19:15:19] Production.INFO: ProcessCDR(1,14878952,1,1,2) [2025-04-10 19:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878952', 'tblTempUsageDetail_20' ) start [2025-04-10 19:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878952', 'tblTempUsageDetail_20' ) end [2025-04-10 19:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 19:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 19:15:22] Production.INFO: ==22543== Releasing lock... [2025-04-10 19:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 19:15:22] Production.INFO: 48 MB #Memory Used# [2025-04-10 19:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 16:16:06 [end_date_ymd] => 2025-04-10 19:16:06 [RateCDR] => 1 ) [2025-04-10 19:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 16:16:06' and `end` < '2025-04-10 19:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 19:16:19] Production.INFO: count ==2653 [2025-04-10 19:16:20] Production.ERROR: pbx CDR StartTime 2025-04-10 16:16:06 - End Time 2025-04-10 19:16:06 [2025-04-10 19:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878957', 'tblTempUsageDetail_20' ) start [2025-04-10 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878957', 'tblTempUsageDetail_20' ) end [2025-04-10 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878957', 'tblTempVendorCDR_20' ) start [2025-04-10 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878957', 'tblTempVendorCDR_20' ) end [2025-04-10 19:16:20] Production.INFO: ProcessCDR(1,14878957,1,1,2) [2025-04-10 19:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878957', 'tblTempUsageDetail_20' ) start [2025-04-10 19:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878957', 'tblTempUsageDetail_20' ) end [2025-04-10 19:16:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 19:16:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 19:16:23] Production.INFO: ==22620== Releasing lock... [2025-04-10 19:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 19:16:23] Production.INFO: 48.25 MB #Memory Used# [2025-04-10 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 16:17:05 [end_date_ymd] => 2025-04-10 19:17:05 [RateCDR] => 1 ) [2025-04-10 19:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 16:17:05' and `end` < '2025-04-10 19:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 19:17:18] Production.INFO: count ==2638 [2025-04-10 19:17:19] Production.ERROR: pbx CDR StartTime 2025-04-10 16:17:05 - End Time 2025-04-10 19:17:05 [2025-04-10 19:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878962', 'tblTempUsageDetail_20' ) start [2025-04-10 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878962', 'tblTempUsageDetail_20' ) end [2025-04-10 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878962', 'tblTempVendorCDR_20' ) start [2025-04-10 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878962', 'tblTempVendorCDR_20' ) end [2025-04-10 19:17:19] Production.INFO: ProcessCDR(1,14878962,1,1,2) [2025-04-10 19:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878962', 'tblTempUsageDetail_20' ) start [2025-04-10 19:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878962', 'tblTempUsageDetail_20' ) end [2025-04-10 19:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 19:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 19:17:22] Production.INFO: ==22697== Releasing lock... [2025-04-10 19:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 19:17:22] Production.INFO: 48 MB #Memory Used# [2025-04-10 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 16:18:05 [end_date_ymd] => 2025-04-10 19:18:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 16:18:05' and `end` < '2025-04-10 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-04-10 19:18:19] Production.INFO: count ==2639 [2025-04-10 19:18:19] Production.ERROR: pbx CDR StartTime 2025-04-10 16:18:05 - End Time 2025-04-10 19:18:05 [2025-04-10 19:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878967', 'tblTempUsageDetail_20' ) start [2025-04-10 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878967', 'tblTempUsageDetail_20' ) end [2025-04-10 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878967', 'tblTempVendorCDR_20' ) start [2025-04-10 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878967', 'tblTempVendorCDR_20' ) end [2025-04-10 19:18:19] Production.INFO: ProcessCDR(1,14878967,1,1,2) [2025-04-10 19:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878967', 'tblTempUsageDetail_20' ) start [2025-04-10 19:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878967', 'tblTempUsageDetail_20' ) end [2025-04-10 19:18:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 19:18:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 19:18:25] Production.INFO: ==22778== Releasing lock... [2025-04-10 19:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 19:18:25] Production.INFO: 48 MB #Memory Used# [2025-04-10 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 16:19:05 [end_date_ymd] => 2025-04-10 19:19:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 16:19:05' and `end` < '2025-04-10 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-04-10 19:19:18] Production.INFO: count ==2626 [2025-04-10 19:19:19] Production.ERROR: pbx CDR StartTime 2025-04-10 16:19:05 - End Time 2025-04-10 19:19:05 [2025-04-10 19:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878972', 'tblTempUsageDetail_20' ) start [2025-04-10 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878972', 'tblTempUsageDetail_20' ) end [2025-04-10 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878972', 'tblTempVendorCDR_20' ) start [2025-04-10 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878972', 'tblTempVendorCDR_20' ) end [2025-04-10 19:19:19] Production.INFO: ProcessCDR(1,14878972,1,1,2) [2025-04-10 19:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878972', 'tblTempUsageDetail_20' ) start [2025-04-10 19:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878972', 'tblTempUsageDetail_20' ) end [2025-04-10 19:19:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 19:19:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 19:19:23] Production.INFO: ==22851== Releasing lock... [2025-04-10 19:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 19:19:23] Production.INFO: 48 MB #Memory Used# [2025-04-10 19:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 16:20:06 [end_date_ymd] => 2025-04-10 19:20:06 [RateCDR] => 1 ) [2025-04-10 19:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 16:20:06' and `end` < '2025-04-10 19:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 19:20:20] Production.INFO: count ==2626 [2025-04-10 19:20:21] Production.ERROR: pbx CDR StartTime 2025-04-10 16:20:06 - End Time 2025-04-10 19:20:06 [2025-04-10 19:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878978', 'tblTempUsageDetail_20' ) start [2025-04-10 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878978', 'tblTempUsageDetail_20' ) end [2025-04-10 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878978', 'tblTempVendorCDR_20' ) start [2025-04-10 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878978', 'tblTempVendorCDR_20' ) end [2025-04-10 19:20:21] Production.INFO: ProcessCDR(1,14878978,1,1,2) [2025-04-10 19:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878978', 'tblTempUsageDetail_20' ) start [2025-04-10 19:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878978', 'tblTempUsageDetail_20' ) end [2025-04-10 19:20:26] Production.ERROR: pbx prc_insertCDR start [2025-04-10 19:20:26] Production.ERROR: pbx prc_insertCDR end [2025-04-10 19:20:26] Production.INFO: ==22923== Releasing lock... [2025-04-10 19:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 19:20:26] Production.INFO: 47.75 MB #Memory Used# [2025-04-10 19:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 16:21:04 [end_date_ymd] => 2025-04-10 19:21:04 [RateCDR] => 1 ) [2025-04-10 19:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 16:21:04' and `end` < '2025-04-10 19:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 19:21:18] Production.INFO: count ==2571 [2025-04-10 19:21:18] Production.ERROR: pbx CDR StartTime 2025-04-10 16:21:04 - End Time 2025-04-10 19:21:04 [2025-04-10 19:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 19:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878983', 'tblTempUsageDetail_20' ) start [2025-04-10 19:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878983', 'tblTempUsageDetail_20' ) end [2025-04-10 19:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878983', 'tblTempVendorCDR_20' ) start [2025-04-10 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878983', 'tblTempVendorCDR_20' ) end [2025-04-10 19:21:19] Production.INFO: ProcessCDR(1,14878983,1,1,2) [2025-04-10 19:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878983', 'tblTempUsageDetail_20' ) start [2025-04-10 19:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878983', 'tblTempUsageDetail_20' ) end [2025-04-10 19:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 19:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 19:21:22] Production.INFO: ==23003== Releasing lock... [2025-04-10 19:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 19:21:22] Production.INFO: 47.5 MB #Memory Used# [2025-04-10 19:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 16:22:06 [end_date_ymd] => 2025-04-10 19:22:06 [RateCDR] => 1 ) [2025-04-10 19:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 16:22:06' and `end` < '2025-04-10 19:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 19:22:19] Production.INFO: count ==2548 [2025-04-10 19:22:19] Production.ERROR: pbx CDR StartTime 2025-04-10 16:22:06 - End Time 2025-04-10 19:22:06 [2025-04-10 19:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878988', 'tblTempUsageDetail_20' ) start [2025-04-10 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878988', 'tblTempUsageDetail_20' ) end [2025-04-10 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878988', 'tblTempVendorCDR_20' ) start [2025-04-10 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878988', 'tblTempVendorCDR_20' ) end [2025-04-10 19:22:20] Production.INFO: ProcessCDR(1,14878988,1,1,2) [2025-04-10 19:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878988', 'tblTempUsageDetail_20' ) start [2025-04-10 19:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878988', 'tblTempUsageDetail_20' ) end [2025-04-10 19:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 19:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 19:22:23] Production.INFO: ==23076== Releasing lock... [2025-04-10 19:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 19:22:23] Production.INFO: 47.25 MB #Memory Used# [2025-04-10 19:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 16:23:05 [end_date_ymd] => 2025-04-10 19:23:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 16:23:05' and `end` < '2025-04-10 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-04-10 19:23:19] Production.INFO: count ==2524 [2025-04-10 19:23:20] Production.ERROR: pbx CDR StartTime 2025-04-10 16:23:05 - End Time 2025-04-10 19:23:05 [2025-04-10 19:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878993', 'tblTempUsageDetail_20' ) start [2025-04-10 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878993', 'tblTempUsageDetail_20' ) end [2025-04-10 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878993', 'tblTempVendorCDR_20' ) start [2025-04-10 19:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878993', 'tblTempVendorCDR_20' ) end [2025-04-10 19:23:20] Production.INFO: ProcessCDR(1,14878993,1,1,2) [2025-04-10 19:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878993', 'tblTempUsageDetail_20' ) start [2025-04-10 19:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878993', 'tblTempUsageDetail_20' ) end [2025-04-10 19:23:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 19:23:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 19:23:23] Production.INFO: ==23146== Releasing lock... [2025-04-10 19:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 19:23:23] Production.INFO: 47.25 MB #Memory Used# [2025-04-10 19:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 16:24:05 [end_date_ymd] => 2025-04-10 19:24:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 16:24:05' and `end` < '2025-04-10 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-04-10 19:24:19] Production.INFO: count ==2503 [2025-04-10 19:24:19] Production.ERROR: pbx CDR StartTime 2025-04-10 16:24:05 - End Time 2025-04-10 19:24:05 [2025-04-10 19:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878998', 'tblTempUsageDetail_20' ) start [2025-04-10 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14878998', 'tblTempUsageDetail_20' ) end [2025-04-10 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878998', 'tblTempVendorCDR_20' ) start [2025-04-10 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14878998', 'tblTempVendorCDR_20' ) end [2025-04-10 19:24:19] Production.INFO: ProcessCDR(1,14878998,1,1,2) [2025-04-10 19:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14878998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14878998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14878998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14878998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878998', 'tblTempUsageDetail_20' ) start [2025-04-10 19:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14878998', 'tblTempUsageDetail_20' ) end [2025-04-10 19:24:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 19:24:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 19:24:23] Production.INFO: ==23219== Releasing lock... [2025-04-10 19:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 19:24:23] Production.INFO: 47 MB #Memory Used# [2025-04-10 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 16:25:05 [end_date_ymd] => 2025-04-10 19:25:05 [RateCDR] => 1 ) [2025-04-10 19:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 16:25:05' and `end` < '2025-04-10 19:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 19:25:18] Production.INFO: count ==2487 [2025-04-10 19:25:19] Production.ERROR: pbx CDR StartTime 2025-04-10 16:25:05 - End Time 2025-04-10 19:25:05 [2025-04-10 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879003', 'tblTempUsageDetail_20' ) start [2025-04-10 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879003', 'tblTempUsageDetail_20' ) end [2025-04-10 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879003', 'tblTempVendorCDR_20' ) start [2025-04-10 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879003', 'tblTempVendorCDR_20' ) end [2025-04-10 19:25:19] Production.INFO: ProcessCDR(1,14879003,1,1,2) [2025-04-10 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879003', 'tblTempUsageDetail_20' ) start [2025-04-10 19:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879003', 'tblTempUsageDetail_20' ) end [2025-04-10 19:25:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 19:25:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 19:25:23] Production.INFO: ==23294== Releasing lock... [2025-04-10 19:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 19:25:23] Production.INFO: 47 MB #Memory Used# [2025-04-10 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 16:26:05 [end_date_ymd] => 2025-04-10 19:26:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 16:26:05' and `end` < '2025-04-10 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-04-10 19:26:19] Production.INFO: count ==2470 [2025-04-10 19:26:19] Production.ERROR: pbx CDR StartTime 2025-04-10 16:26:05 - End Time 2025-04-10 19:26:05 [2025-04-10 19:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879008', 'tblTempUsageDetail_20' ) start [2025-04-10 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879008', 'tblTempUsageDetail_20' ) end [2025-04-10 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879008', 'tblTempVendorCDR_20' ) start [2025-04-10 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879008', 'tblTempVendorCDR_20' ) end [2025-04-10 19:26:19] Production.INFO: ProcessCDR(1,14879008,1,1,2) [2025-04-10 19:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879008', 'tblTempUsageDetail_20' ) start [2025-04-10 19:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879008', 'tblTempUsageDetail_20' ) end [2025-04-10 19:26:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 19:26:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 19:26:23] Production.INFO: ==23371== Releasing lock... [2025-04-10 19:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 19:26:23] Production.INFO: 46.75 MB #Memory Used# [2025-04-10 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 16:27:05 [end_date_ymd] => 2025-04-10 19:27:05 [RateCDR] => 1 ) [2025-04-10 19:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 16:27:05' and `end` < '2025-04-10 19:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 19:27:19] Production.INFO: count ==2460 [2025-04-10 19:27:19] Production.ERROR: pbx CDR StartTime 2025-04-10 16:27:05 - End Time 2025-04-10 19:27:05 [2025-04-10 19:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879013', 'tblTempUsageDetail_20' ) start [2025-04-10 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879013', 'tblTempUsageDetail_20' ) end [2025-04-10 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879013', 'tblTempVendorCDR_20' ) start [2025-04-10 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879013', 'tblTempVendorCDR_20' ) end [2025-04-10 19:27:19] Production.INFO: ProcessCDR(1,14879013,1,1,2) [2025-04-10 19:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879013', 'tblTempUsageDetail_20' ) start [2025-04-10 19:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879013', 'tblTempUsageDetail_20' ) end [2025-04-10 19:27:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 19:27:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 19:27:23] Production.INFO: ==23444== Releasing lock... [2025-04-10 19:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 19:27:23] Production.INFO: 46.75 MB #Memory Used# [2025-04-10 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 16:28:05 [end_date_ymd] => 2025-04-10 19:28:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 16:28:05' and `end` < '2025-04-10 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-04-10 19:28:18] Production.INFO: count ==2460 [2025-04-10 19:28:19] Production.ERROR: pbx CDR StartTime 2025-04-10 16:28:05 - End Time 2025-04-10 19:28:05 [2025-04-10 19:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879018', 'tblTempUsageDetail_20' ) start [2025-04-10 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879018', 'tblTempUsageDetail_20' ) end [2025-04-10 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879018', 'tblTempVendorCDR_20' ) start [2025-04-10 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879018', 'tblTempVendorCDR_20' ) end [2025-04-10 19:28:19] Production.INFO: ProcessCDR(1,14879018,1,1,2) [2025-04-10 19:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879018', 'tblTempUsageDetail_20' ) start [2025-04-10 19:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879018', 'tblTempUsageDetail_20' ) end [2025-04-10 19:28:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 19:28:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 19:28:24] Production.INFO: ==23514== Releasing lock... [2025-04-10 19:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 19:28:24] Production.INFO: 46.75 MB #Memory Used# [2025-04-10 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 16:29:05 [end_date_ymd] => 2025-04-10 19:29:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 16:29:05' and `end` < '2025-04-10 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-04-10 19:29:19] Production.INFO: count ==2443 [2025-04-10 19:29:19] Production.ERROR: pbx CDR StartTime 2025-04-10 16:29:05 - End Time 2025-04-10 19:29:05 [2025-04-10 19:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879023', 'tblTempUsageDetail_20' ) start [2025-04-10 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879023', 'tblTempUsageDetail_20' ) end [2025-04-10 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879023', 'tblTempVendorCDR_20' ) start [2025-04-10 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879023', 'tblTempVendorCDR_20' ) end [2025-04-10 19:29:19] Production.INFO: ProcessCDR(1,14879023,1,1,2) [2025-04-10 19:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879023', 'tblTempUsageDetail_20' ) start [2025-04-10 19:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879023', 'tblTempUsageDetail_20' ) end [2025-04-10 19:29:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 19:29:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 19:29:23] Production.INFO: ==23584== Releasing lock... [2025-04-10 19:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 19:29:23] Production.INFO: 46.75 MB #Memory Used# [2025-04-10 19:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 16:30:06 [end_date_ymd] => 2025-04-10 19:30:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 16:30:06' and `end` < '2025-04-10 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-04-10 19:30:19] Production.INFO: count ==2430 [2025-04-10 19:30:19] Production.ERROR: pbx CDR StartTime 2025-04-10 16:30:06 - End Time 2025-04-10 19:30:06 [2025-04-10 19:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879029', 'tblTempUsageDetail_20' ) start [2025-04-10 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879029', 'tblTempUsageDetail_20' ) end [2025-04-10 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879029', 'tblTempVendorCDR_20' ) start [2025-04-10 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879029', 'tblTempVendorCDR_20' ) end [2025-04-10 19:30:19] Production.INFO: ProcessCDR(1,14879029,1,1,2) [2025-04-10 19:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879029', 'tblTempUsageDetail_20' ) start [2025-04-10 19:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879029', 'tblTempUsageDetail_20' ) end [2025-04-10 19:30:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 19:30:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 19:30:25] Production.INFO: ==23656== Releasing lock... [2025-04-10 19:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 19:30:25] Production.INFO: 46.75 MB #Memory Used# [2025-04-10 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 16:31:05 [end_date_ymd] => 2025-04-10 19:31:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 16:31:05' and `end` < '2025-04-10 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-04-10 19:31:18] Production.INFO: count ==2359 [2025-04-10 19:31:19] Production.ERROR: pbx CDR StartTime 2025-04-10 16:31:05 - End Time 2025-04-10 19:31:05 [2025-04-10 19:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879034', 'tblTempUsageDetail_20' ) start [2025-04-10 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879034', 'tblTempUsageDetail_20' ) end [2025-04-10 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879034', 'tblTempVendorCDR_20' ) start [2025-04-10 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879034', 'tblTempVendorCDR_20' ) end [2025-04-10 19:31:19] Production.INFO: ProcessCDR(1,14879034,1,1,2) [2025-04-10 19:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879034', 'tblTempUsageDetail_20' ) start [2025-04-10 19:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879034', 'tblTempUsageDetail_20' ) end [2025-04-10 19:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 19:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 19:31:22] Production.INFO: ==23780== Releasing lock... [2025-04-10 19:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 19:31:22] Production.INFO: 45.75 MB #Memory Used# [2025-04-10 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 16:32:05 [end_date_ymd] => 2025-04-10 19:32:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 16:32:05' and `end` < '2025-04-10 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-04-10 19:32:18] Production.INFO: count ==2350 [2025-04-10 19:32:19] Production.ERROR: pbx CDR StartTime 2025-04-10 16:32:05 - End Time 2025-04-10 19:32:05 [2025-04-10 19:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879039', 'tblTempUsageDetail_20' ) start [2025-04-10 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879039', 'tblTempUsageDetail_20' ) end [2025-04-10 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879039', 'tblTempVendorCDR_20' ) start [2025-04-10 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879039', 'tblTempVendorCDR_20' ) end [2025-04-10 19:32:19] Production.INFO: ProcessCDR(1,14879039,1,1,2) [2025-04-10 19:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879039', 'tblTempUsageDetail_20' ) start [2025-04-10 19:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879039', 'tblTempUsageDetail_20' ) end [2025-04-10 19:32:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 19:32:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 19:32:24] Production.INFO: ==23855== Releasing lock... [2025-04-10 19:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 19:32:24] Production.INFO: 46.25 MB #Memory Used# [2025-04-10 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 16:33:05 [end_date_ymd] => 2025-04-10 19:33:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 16:33:05' and `end` < '2025-04-10 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-04-10 19:33:18] Production.INFO: count ==2338 [2025-04-10 19:33:19] Production.ERROR: pbx CDR StartTime 2025-04-10 16:33:05 - End Time 2025-04-10 19:33:05 [2025-04-10 19:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879044', 'tblTempUsageDetail_20' ) start [2025-04-10 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879044', 'tblTempUsageDetail_20' ) end [2025-04-10 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879044', 'tblTempVendorCDR_20' ) start [2025-04-10 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879044', 'tblTempVendorCDR_20' ) end [2025-04-10 19:33:19] Production.INFO: ProcessCDR(1,14879044,1,1,2) [2025-04-10 19:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879044', 'tblTempUsageDetail_20' ) start [2025-04-10 19:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879044', 'tblTempUsageDetail_20' ) end [2025-04-10 19:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 19:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 19:33:22] Production.INFO: ==23932== Releasing lock... [2025-04-10 19:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 19:33:22] Production.INFO: 46 MB #Memory Used# [2025-04-10 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 16:34:05 [end_date_ymd] => 2025-04-10 19:34:05 [RateCDR] => 1 ) [2025-04-10 19:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 16:34:05' and `end` < '2025-04-10 19:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 19:34:18] Production.INFO: count ==2326 [2025-04-10 19:34:19] Production.ERROR: pbx CDR StartTime 2025-04-10 16:34:05 - End Time 2025-04-10 19:34:05 [2025-04-10 19:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879049', 'tblTempUsageDetail_20' ) start [2025-04-10 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879049', 'tblTempUsageDetail_20' ) end [2025-04-10 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879049', 'tblTempVendorCDR_20' ) start [2025-04-10 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879049', 'tblTempVendorCDR_20' ) end [2025-04-10 19:34:19] Production.INFO: ProcessCDR(1,14879049,1,1,2) [2025-04-10 19:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879049', 'tblTempUsageDetail_20' ) start [2025-04-10 19:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879049', 'tblTempUsageDetail_20' ) end [2025-04-10 19:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 19:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 19:34:22] Production.INFO: ==24009== Releasing lock... [2025-04-10 19:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 19:34:22] Production.INFO: 46 MB #Memory Used# [2025-04-10 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 16:35:05 [end_date_ymd] => 2025-04-10 19:35:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 16:35:05' and `end` < '2025-04-10 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-04-10 19:35:18] Production.INFO: count ==2318 [2025-04-10 19:35:19] Production.ERROR: pbx CDR StartTime 2025-04-10 16:35:05 - End Time 2025-04-10 19:35:05 [2025-04-10 19:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879054', 'tblTempUsageDetail_20' ) start [2025-04-10 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879054', 'tblTempUsageDetail_20' ) end [2025-04-10 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879054', 'tblTempVendorCDR_20' ) start [2025-04-10 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879054', 'tblTempVendorCDR_20' ) end [2025-04-10 19:35:19] Production.INFO: ProcessCDR(1,14879054,1,1,2) [2025-04-10 19:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879054', 'tblTempUsageDetail_20' ) start [2025-04-10 19:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879054', 'tblTempUsageDetail_20' ) end [2025-04-10 19:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 19:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 19:35:22] Production.INFO: ==24083== Releasing lock... [2025-04-10 19:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 19:35:22] Production.INFO: 45.5 MB #Memory Used# [2025-04-10 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 16:36:05 [end_date_ymd] => 2025-04-10 19:36:05 [RateCDR] => 1 ) [2025-04-10 19:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 16:36:05' and `end` < '2025-04-10 19:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 19:36:18] Production.INFO: count ==2310 [2025-04-10 19:36:19] Production.ERROR: pbx CDR StartTime 2025-04-10 16:36:05 - End Time 2025-04-10 19:36:05 [2025-04-10 19:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879059', 'tblTempUsageDetail_20' ) start [2025-04-10 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879059', 'tblTempUsageDetail_20' ) end [2025-04-10 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879059', 'tblTempVendorCDR_20' ) start [2025-04-10 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879059', 'tblTempVendorCDR_20' ) end [2025-04-10 19:36:19] Production.INFO: ProcessCDR(1,14879059,1,1,2) [2025-04-10 19:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879059', 'tblTempUsageDetail_20' ) start [2025-04-10 19:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879059', 'tblTempUsageDetail_20' ) end [2025-04-10 19:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 19:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 19:36:22] Production.INFO: ==24159== Releasing lock... [2025-04-10 19:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 19:36:22] Production.INFO: 45.5 MB #Memory Used# [2025-04-10 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 16:37:05 [end_date_ymd] => 2025-04-10 19:37:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 16:37:05' and `end` < '2025-04-10 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-04-10 19:37:18] Production.INFO: count ==2302 [2025-04-10 19:37:18] Production.ERROR: pbx CDR StartTime 2025-04-10 16:37:05 - End Time 2025-04-10 19:37:05 [2025-04-10 19:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879064', 'tblTempUsageDetail_20' ) start [2025-04-10 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879064', 'tblTempUsageDetail_20' ) end [2025-04-10 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879064', 'tblTempVendorCDR_20' ) start [2025-04-10 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879064', 'tblTempVendorCDR_20' ) end [2025-04-10 19:37:18] Production.INFO: ProcessCDR(1,14879064,1,1,2) [2025-04-10 19:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879064', 'tblTempUsageDetail_20' ) start [2025-04-10 19:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879064', 'tblTempUsageDetail_20' ) end [2025-04-10 19:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 19:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 19:37:22] Production.INFO: ==24228== Releasing lock... [2025-04-10 19:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 19:37:22] Production.INFO: 45.5 MB #Memory Used# [2025-04-10 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 16:38:05 [end_date_ymd] => 2025-04-10 19:38:05 [RateCDR] => 1 ) [2025-04-10 19:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 16:38:05' and `end` < '2025-04-10 19:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 19:38:18] Production.INFO: count ==2292 [2025-04-10 19:38:19] Production.ERROR: pbx CDR StartTime 2025-04-10 16:38:05 - End Time 2025-04-10 19:38:05 [2025-04-10 19:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879069', 'tblTempUsageDetail_20' ) start [2025-04-10 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879069', 'tblTempUsageDetail_20' ) end [2025-04-10 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879069', 'tblTempVendorCDR_20' ) start [2025-04-10 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879069', 'tblTempVendorCDR_20' ) end [2025-04-10 19:38:19] Production.INFO: ProcessCDR(1,14879069,1,1,2) [2025-04-10 19:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879069', 'tblTempUsageDetail_20' ) start [2025-04-10 19:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879069', 'tblTempUsageDetail_20' ) end [2025-04-10 19:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 19:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 19:38:22] Production.INFO: ==24302== Releasing lock... [2025-04-10 19:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 19:38:22] Production.INFO: 45.5 MB #Memory Used# [2025-04-10 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 16:39:05 [end_date_ymd] => 2025-04-10 19:39:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 16:39:05' and `end` < '2025-04-10 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-04-10 19:39:18] Production.INFO: count ==2285 [2025-04-10 19:39:18] Production.ERROR: pbx CDR StartTime 2025-04-10 16:39:05 - End Time 2025-04-10 19:39:05 [2025-04-10 19:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879074', 'tblTempUsageDetail_20' ) start [2025-04-10 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879074', 'tblTempUsageDetail_20' ) end [2025-04-10 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879074', 'tblTempVendorCDR_20' ) start [2025-04-10 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879074', 'tblTempVendorCDR_20' ) end [2025-04-10 19:39:18] Production.INFO: ProcessCDR(1,14879074,1,1,2) [2025-04-10 19:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879074', 'tblTempUsageDetail_20' ) start [2025-04-10 19:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879074', 'tblTempUsageDetail_20' ) end [2025-04-10 19:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 19:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 19:39:22] Production.INFO: ==24375== Releasing lock... [2025-04-10 19:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 19:39:22] Production.INFO: 45.25 MB #Memory Used# [2025-04-10 19:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 16:40:06 [end_date_ymd] => 2025-04-10 19:40:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 16:40:06' and `end` < '2025-04-10 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-04-10 19:40:20] Production.INFO: count ==2268 [2025-04-10 19:40:20] Production.ERROR: pbx CDR StartTime 2025-04-10 16:40:06 - End Time 2025-04-10 19:40:06 [2025-04-10 19:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879080', 'tblTempUsageDetail_20' ) start [2025-04-10 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879080', 'tblTempUsageDetail_20' ) end [2025-04-10 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879080', 'tblTempVendorCDR_20' ) start [2025-04-10 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879080', 'tblTempVendorCDR_20' ) end [2025-04-10 19:40:20] Production.INFO: ProcessCDR(1,14879080,1,1,2) [2025-04-10 19:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879080', 'tblTempUsageDetail_20' ) start [2025-04-10 19:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879080', 'tblTempUsageDetail_20' ) end [2025-04-10 19:40:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 19:40:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 19:40:24] Production.INFO: ==24449== Releasing lock... [2025-04-10 19:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 19:40:24] Production.INFO: 45 MB #Memory Used# [2025-04-10 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 16:41:05 [end_date_ymd] => 2025-04-10 19:41:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 16:41:05' and `end` < '2025-04-10 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-04-10 19:41:18] Production.INFO: count ==2196 [2025-04-10 19:41:19] Production.ERROR: pbx CDR StartTime 2025-04-10 16:41:05 - End Time 2025-04-10 19:41:05 [2025-04-10 19:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879085', 'tblTempUsageDetail_20' ) start [2025-04-10 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879085', 'tblTempUsageDetail_20' ) end [2025-04-10 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879085', 'tblTempVendorCDR_20' ) start [2025-04-10 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879085', 'tblTempVendorCDR_20' ) end [2025-04-10 19:41:19] Production.INFO: ProcessCDR(1,14879085,1,1,2) [2025-04-10 19:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879085', 'tblTempUsageDetail_20' ) start [2025-04-10 19:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879085', 'tblTempUsageDetail_20' ) end [2025-04-10 19:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 19:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 19:41:22] Production.INFO: ==24527== Releasing lock... [2025-04-10 19:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 19:41:22] Production.INFO: 45 MB #Memory Used# [2025-04-10 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 16:42:05 [end_date_ymd] => 2025-04-10 19:42:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 16:42:05' and `end` < '2025-04-10 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-04-10 19:42:19] Production.INFO: count ==2185 [2025-04-10 19:42:19] Production.ERROR: pbx CDR StartTime 2025-04-10 16:42:05 - End Time 2025-04-10 19:42:05 [2025-04-10 19:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879090', 'tblTempUsageDetail_20' ) start [2025-04-10 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879090', 'tblTempUsageDetail_20' ) end [2025-04-10 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879090', 'tblTempVendorCDR_20' ) start [2025-04-10 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879090', 'tblTempVendorCDR_20' ) end [2025-04-10 19:42:19] Production.INFO: ProcessCDR(1,14879090,1,1,2) [2025-04-10 19:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879090', 'tblTempUsageDetail_20' ) start [2025-04-10 19:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879090', 'tblTempUsageDetail_20' ) end [2025-04-10 19:42:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 19:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 19:42:23] Production.INFO: ==24600== Releasing lock... [2025-04-10 19:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 19:42:23] Production.INFO: 45 MB #Memory Used# [2025-04-10 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 16:43:05 [end_date_ymd] => 2025-04-10 19:43:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 16:43:05' and `end` < '2025-04-10 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-04-10 19:43:18] Production.INFO: count ==2167 [2025-04-10 19:43:18] Production.ERROR: pbx CDR StartTime 2025-04-10 16:43:05 - End Time 2025-04-10 19:43:05 [2025-04-10 19:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879095', 'tblTempUsageDetail_20' ) start [2025-04-10 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879095', 'tblTempUsageDetail_20' ) end [2025-04-10 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879095', 'tblTempVendorCDR_20' ) start [2025-04-10 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879095', 'tblTempVendorCDR_20' ) end [2025-04-10 19:43:18] Production.INFO: ProcessCDR(1,14879095,1,1,2) [2025-04-10 19:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879095', 'tblTempUsageDetail_20' ) start [2025-04-10 19:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879095', 'tblTempUsageDetail_20' ) end [2025-04-10 19:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 19:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 19:43:22] Production.INFO: ==24675== Releasing lock... [2025-04-10 19:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 19:43:22] Production.INFO: 44.75 MB #Memory Used# [2025-04-10 19:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 16:44:06 [end_date_ymd] => 2025-04-10 19:44:06 [RateCDR] => 1 ) [2025-04-10 19:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 16:44:06' and `end` < '2025-04-10 19: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-04-10 19:44:19] Production.INFO: count ==2151 [2025-04-10 19:44:19] Production.ERROR: pbx CDR StartTime 2025-04-10 16:44:06 - End Time 2025-04-10 19:44:06 [2025-04-10 19:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879100', 'tblTempUsageDetail_20' ) start [2025-04-10 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879100', 'tblTempUsageDetail_20' ) end [2025-04-10 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879100', 'tblTempVendorCDR_20' ) start [2025-04-10 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879100', 'tblTempVendorCDR_20' ) end [2025-04-10 19:44:19] Production.INFO: ProcessCDR(1,14879100,1,1,2) [2025-04-10 19:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879100', 'tblTempUsageDetail_20' ) start [2025-04-10 19:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879100', 'tblTempUsageDetail_20' ) end [2025-04-10 19:44:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 19:44:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 19:44:24] Production.INFO: ==24750== Releasing lock... [2025-04-10 19:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 19:44:24] Production.INFO: 44.5 MB #Memory Used# [2025-04-10 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 16:45:05 [end_date_ymd] => 2025-04-10 19:45:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 16:45:05' and `end` < '2025-04-10 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-04-10 19:45:18] Production.INFO: count ==2141 [2025-04-10 19:45:19] Production.ERROR: pbx CDR StartTime 2025-04-10 16:45:05 - End Time 2025-04-10 19:45:05 [2025-04-10 19:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879105', 'tblTempUsageDetail_20' ) start [2025-04-10 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879105', 'tblTempUsageDetail_20' ) end [2025-04-10 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879105', 'tblTempVendorCDR_20' ) start [2025-04-10 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879105', 'tblTempVendorCDR_20' ) end [2025-04-10 19:45:19] Production.INFO: ProcessCDR(1,14879105,1,1,2) [2025-04-10 19:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879105', 'tblTempUsageDetail_20' ) start [2025-04-10 19:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879105', 'tblTempUsageDetail_20' ) end [2025-04-10 19:45:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 19:45:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 19:45:24] Production.INFO: ==24829== Releasing lock... [2025-04-10 19:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 19:45:24] Production.INFO: 44.25 MB #Memory Used# [2025-04-10 19:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 16:46:05 [end_date_ymd] => 2025-04-10 19:46:05 [RateCDR] => 1 ) [2025-04-10 19:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 16:46:05' and `end` < '2025-04-10 19:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 19:46:18] Production.INFO: count ==2134 [2025-04-10 19:46:19] Production.ERROR: pbx CDR StartTime 2025-04-10 16:46:05 - End Time 2025-04-10 19:46:05 [2025-04-10 19:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879110', 'tblTempUsageDetail_20' ) start [2025-04-10 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879110', 'tblTempUsageDetail_20' ) end [2025-04-10 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879110', 'tblTempVendorCDR_20' ) start [2025-04-10 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879110', 'tblTempVendorCDR_20' ) end [2025-04-10 19:46:19] Production.INFO: ProcessCDR(1,14879110,1,1,2) [2025-04-10 19:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879110', 'tblTempUsageDetail_20' ) start [2025-04-10 19:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879110', 'tblTempUsageDetail_20' ) end [2025-04-10 19:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 19:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 19:46:22] Production.INFO: ==24946== Releasing lock... [2025-04-10 19:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 19:46:22] Production.INFO: 44 MB #Memory Used# [2025-04-10 19:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 16:47:05 [end_date_ymd] => 2025-04-10 19:47:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 16:47:05' and `end` < '2025-04-10 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-04-10 19:47:18] Production.INFO: count ==2124 [2025-04-10 19:47:19] Production.ERROR: pbx CDR StartTime 2025-04-10 16:47:05 - End Time 2025-04-10 19:47:05 [2025-04-10 19:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879115', 'tblTempUsageDetail_20' ) start [2025-04-10 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879115', 'tblTempUsageDetail_20' ) end [2025-04-10 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879115', 'tblTempVendorCDR_20' ) start [2025-04-10 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879115', 'tblTempVendorCDR_20' ) end [2025-04-10 19:47:19] Production.INFO: ProcessCDR(1,14879115,1,1,2) [2025-04-10 19:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879115', 'tblTempUsageDetail_20' ) start [2025-04-10 19:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879115', 'tblTempUsageDetail_20' ) end [2025-04-10 19:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 19:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 19:47:22] Production.INFO: ==25016== Releasing lock... [2025-04-10 19:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 19:47:22] Production.INFO: 44.25 MB #Memory Used# [2025-04-10 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 16:48:05 [end_date_ymd] => 2025-04-10 19:48:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 16:48:05' and `end` < '2025-04-10 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-04-10 19:48:19] Production.INFO: count ==2118 [2025-04-10 19:48:19] Production.ERROR: pbx CDR StartTime 2025-04-10 16:48:05 - End Time 2025-04-10 19:48:05 [2025-04-10 19:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879120', 'tblTempUsageDetail_20' ) start [2025-04-10 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879120', 'tblTempUsageDetail_20' ) end [2025-04-10 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879120', 'tblTempVendorCDR_20' ) start [2025-04-10 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879120', 'tblTempVendorCDR_20' ) end [2025-04-10 19:48:19] Production.INFO: ProcessCDR(1,14879120,1,1,2) [2025-04-10 19:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879120', 'tblTempUsageDetail_20' ) start [2025-04-10 19:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879120', 'tblTempUsageDetail_20' ) end [2025-04-10 19:48:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 19:48:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 19:48:23] Production.INFO: ==25089== Releasing lock... [2025-04-10 19:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 19:48:23] Production.INFO: 44 MB #Memory Used# [2025-04-10 19:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 16:49:05 [end_date_ymd] => 2025-04-10 19:49:05 [RateCDR] => 1 ) [2025-04-10 19:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 16:49:05' and `end` < '2025-04-10 19:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 19:49:19] Production.INFO: count ==2116 [2025-04-10 19:49:19] Production.ERROR: pbx CDR StartTime 2025-04-10 16:49:05 - End Time 2025-04-10 19:49:05 [2025-04-10 19:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879125', 'tblTempUsageDetail_20' ) start [2025-04-10 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879125', 'tblTempUsageDetail_20' ) end [2025-04-10 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879125', 'tblTempVendorCDR_20' ) start [2025-04-10 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879125', 'tblTempVendorCDR_20' ) end [2025-04-10 19:49:19] Production.INFO: ProcessCDR(1,14879125,1,1,2) [2025-04-10 19:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879125', 'tblTempUsageDetail_20' ) start [2025-04-10 19:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879125', 'tblTempUsageDetail_20' ) end [2025-04-10 19:49:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 19:49:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 19:49:24] Production.INFO: ==25163== Releasing lock... [2025-04-10 19:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 19:49:24] Production.INFO: 43.75 MB #Memory Used# [2025-04-10 19:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 16:50:06 [end_date_ymd] => 2025-04-10 19:50:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 16:50:06' and `end` < '2025-04-10 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-04-10 19:50:19] Production.INFO: count ==2107 [2025-04-10 19:50:20] Production.ERROR: pbx CDR StartTime 2025-04-10 16:50:06 - End Time 2025-04-10 19:50:06 [2025-04-10 19:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879130', 'tblTempUsageDetail_20' ) start [2025-04-10 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879130', 'tblTempUsageDetail_20' ) end [2025-04-10 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879130', 'tblTempVendorCDR_20' ) start [2025-04-10 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879130', 'tblTempVendorCDR_20' ) end [2025-04-10 19:50:20] Production.INFO: ProcessCDR(1,14879130,1,1,2) [2025-04-10 19:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879130', 'tblTempUsageDetail_20' ) start [2025-04-10 19:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879130', 'tblTempUsageDetail_20' ) end [2025-04-10 19:50:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 19:50:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 19:50:25] Production.INFO: ==25244== Releasing lock... [2025-04-10 19:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 19:50:25] Production.INFO: 44 MB #Memory Used# [2025-04-10 19:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 16:51:05 [end_date_ymd] => 2025-04-10 19:51:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 16:51:05' and `end` < '2025-04-10 19:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 19:51:19] Production.INFO: count ==2026 [2025-04-10 19:51:19] Production.ERROR: pbx CDR StartTime 2025-04-10 16:51:05 - End Time 2025-04-10 19:51:05 [2025-04-10 19:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879136', 'tblTempUsageDetail_20' ) start [2025-04-10 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879136', 'tblTempUsageDetail_20' ) end [2025-04-10 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879136', 'tblTempVendorCDR_20' ) start [2025-04-10 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879136', 'tblTempVendorCDR_20' ) end [2025-04-10 19:51:19] Production.INFO: ProcessCDR(1,14879136,1,1,2) [2025-04-10 19:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879136', 'tblTempUsageDetail_20' ) start [2025-04-10 19:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879136', 'tblTempUsageDetail_20' ) end [2025-04-10 19:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 19:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 19:51:22] Production.INFO: ==25319== Releasing lock... [2025-04-10 19:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 19:51:22] Production.INFO: 43.25 MB #Memory Used# [2025-04-10 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 16:52:05 [end_date_ymd] => 2025-04-10 19:52:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 16:52:05' and `end` < '2025-04-10 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-04-10 19:52:18] Production.INFO: count ==2005 [2025-04-10 19:52:19] Production.ERROR: pbx CDR StartTime 2025-04-10 16:52:05 - End Time 2025-04-10 19:52:05 [2025-04-10 19:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879141', 'tblTempUsageDetail_20' ) start [2025-04-10 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879141', 'tblTempUsageDetail_20' ) end [2025-04-10 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879141', 'tblTempVendorCDR_20' ) start [2025-04-10 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879141', 'tblTempVendorCDR_20' ) end [2025-04-10 19:52:19] Production.INFO: ProcessCDR(1,14879141,1,1,2) [2025-04-10 19:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879141', 'tblTempUsageDetail_20' ) start [2025-04-10 19:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879141', 'tblTempUsageDetail_20' ) end [2025-04-10 19:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 19:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 19:52:22] Production.INFO: ==25390== Releasing lock... [2025-04-10 19:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 19:52:22] Production.INFO: 43 MB #Memory Used# [2025-04-10 19:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 16:53:05 [end_date_ymd] => 2025-04-10 19:53:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 16:53:05' and `end` < '2025-04-10 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-04-10 19:53:18] Production.INFO: count ==1990 [2025-04-10 19:53:19] Production.ERROR: pbx CDR StartTime 2025-04-10 16:53:05 - End Time 2025-04-10 19:53:05 [2025-04-10 19:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879146', 'tblTempUsageDetail_20' ) start [2025-04-10 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879146', 'tblTempUsageDetail_20' ) end [2025-04-10 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879146', 'tblTempVendorCDR_20' ) start [2025-04-10 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879146', 'tblTempVendorCDR_20' ) end [2025-04-10 19:53:19] Production.INFO: ProcessCDR(1,14879146,1,1,2) [2025-04-10 19:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879146', 'tblTempUsageDetail_20' ) start [2025-04-10 19:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879146', 'tblTempUsageDetail_20' ) end [2025-04-10 19:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 19:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 19:53:22] Production.INFO: ==25468== Releasing lock... [2025-04-10 19:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 19:53:22] Production.INFO: 43 MB #Memory Used# [2025-04-10 19:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 16:54:05 [end_date_ymd] => 2025-04-10 19:54:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 16:54:05' and `end` < '2025-04-10 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-04-10 19:54:18] Production.INFO: count ==1991 [2025-04-10 19:54:18] Production.ERROR: pbx CDR StartTime 2025-04-10 16:54:05 - End Time 2025-04-10 19:54:05 [2025-04-10 19:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879151', 'tblTempUsageDetail_20' ) start [2025-04-10 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879151', 'tblTempUsageDetail_20' ) end [2025-04-10 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879151', 'tblTempVendorCDR_20' ) start [2025-04-10 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879151', 'tblTempVendorCDR_20' ) end [2025-04-10 19:54:18] Production.INFO: ProcessCDR(1,14879151,1,1,2) [2025-04-10 19:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879151', 'tblTempUsageDetail_20' ) start [2025-04-10 19:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879151', 'tblTempUsageDetail_20' ) end [2025-04-10 19:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 19:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 19:54:22] Production.INFO: ==25542== Releasing lock... [2025-04-10 19:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 19:54:22] Production.INFO: 43 MB #Memory Used# [2025-04-10 19:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 16:55:06 [end_date_ymd] => 2025-04-10 19:55:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 16:55:06' and `end` < '2025-04-10 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-04-10 19:55:19] Production.INFO: count ==1977 [2025-04-10 19:55:19] Production.ERROR: pbx CDR StartTime 2025-04-10 16:55:06 - End Time 2025-04-10 19:55:06 [2025-04-10 19:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879156', 'tblTempUsageDetail_20' ) start [2025-04-10 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879156', 'tblTempUsageDetail_20' ) end [2025-04-10 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879156', 'tblTempVendorCDR_20' ) start [2025-04-10 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879156', 'tblTempVendorCDR_20' ) end [2025-04-10 19:55:19] Production.INFO: ProcessCDR(1,14879156,1,1,2) [2025-04-10 19:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879156', 'tblTempUsageDetail_20' ) start [2025-04-10 19:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879156', 'tblTempUsageDetail_20' ) end [2025-04-10 19:55:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 19:55:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 19:55:23] Production.INFO: ==25612== Releasing lock... [2025-04-10 19:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 19:55:23] Production.INFO: 42.75 MB #Memory Used# [2025-04-10 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 16:56:05 [end_date_ymd] => 2025-04-10 19:56:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 16:56:05' and `end` < '2025-04-10 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-04-10 19:56:18] Production.INFO: count ==1962 [2025-04-10 19:56:18] Production.ERROR: pbx CDR StartTime 2025-04-10 16:56:05 - End Time 2025-04-10 19:56:05 [2025-04-10 19:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879161', 'tblTempUsageDetail_20' ) start [2025-04-10 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879161', 'tblTempUsageDetail_20' ) end [2025-04-10 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879161', 'tblTempVendorCDR_20' ) start [2025-04-10 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879161', 'tblTempVendorCDR_20' ) end [2025-04-10 19:56:18] Production.INFO: ProcessCDR(1,14879161,1,1,2) [2025-04-10 19:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879161', 'tblTempUsageDetail_20' ) start [2025-04-10 19:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879161', 'tblTempUsageDetail_20' ) end [2025-04-10 19:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 19:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 19:56:23] Production.INFO: ==25689== Releasing lock... [2025-04-10 19:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 19:56:23] Production.INFO: 42.75 MB #Memory Used# [2025-04-10 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 16:57:05 [end_date_ymd] => 2025-04-10 19:57:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 16:57:05' and `end` < '2025-04-10 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-04-10 19:57:18] Production.INFO: count ==1954 [2025-04-10 19:57:18] Production.ERROR: pbx CDR StartTime 2025-04-10 16:57:05 - End Time 2025-04-10 19:57:05 [2025-04-10 19:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879166', 'tblTempUsageDetail_20' ) start [2025-04-10 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879166', 'tblTempUsageDetail_20' ) end [2025-04-10 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879166', 'tblTempVendorCDR_20' ) start [2025-04-10 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879166', 'tblTempVendorCDR_20' ) end [2025-04-10 19:57:18] Production.INFO: ProcessCDR(1,14879166,1,1,2) [2025-04-10 19:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879166', 'tblTempUsageDetail_20' ) start [2025-04-10 19:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879166', 'tblTempUsageDetail_20' ) end [2025-04-10 19:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 19:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 19:57:22] Production.INFO: ==25761== Releasing lock... [2025-04-10 19:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 19:57:22] Production.INFO: 42.5 MB #Memory Used# [2025-04-10 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 16:58:05 [end_date_ymd] => 2025-04-10 19:58:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 16:58:05' and `end` < '2025-04-10 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-04-10 19:58:18] Production.INFO: count ==1948 [2025-04-10 19:58:18] Production.ERROR: pbx CDR StartTime 2025-04-10 16:58:05 - End Time 2025-04-10 19:58:05 [2025-04-10 19:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879171', 'tblTempUsageDetail_20' ) start [2025-04-10 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879171', 'tblTempUsageDetail_20' ) end [2025-04-10 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879171', 'tblTempVendorCDR_20' ) start [2025-04-10 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879171', 'tblTempVendorCDR_20' ) end [2025-04-10 19:58:18] Production.INFO: ProcessCDR(1,14879171,1,1,2) [2025-04-10 19:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879171', 'tblTempUsageDetail_20' ) start [2025-04-10 19:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879171', 'tblTempUsageDetail_20' ) end [2025-04-10 19:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 19:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 19:58:21] Production.INFO: ==25837== Releasing lock... [2025-04-10 19:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 19:58:21] Production.INFO: 42.75 MB #Memory Used# [2025-04-10 19:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 16:59:05 [end_date_ymd] => 2025-04-10 19:59:05 [RateCDR] => 1 ) [2025-04-10 19:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 16:59:05' and `end` < '2025-04-10 19:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 19:59:18] Production.INFO: count ==1934 [2025-04-10 19:59:19] Production.ERROR: pbx CDR StartTime 2025-04-10 16:59:05 - End Time 2025-04-10 19:59:05 [2025-04-10 19:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879176', 'tblTempUsageDetail_20' ) start [2025-04-10 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879176', 'tblTempUsageDetail_20' ) end [2025-04-10 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879176', 'tblTempVendorCDR_20' ) start [2025-04-10 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879176', 'tblTempVendorCDR_20' ) end [2025-04-10 19:59:19] Production.INFO: ProcessCDR(1,14879176,1,1,2) [2025-04-10 19:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 19:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 19:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879176', 'tblTempUsageDetail_20' ) start [2025-04-10 19:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879176', 'tblTempUsageDetail_20' ) end [2025-04-10 19:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 19:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 19:59:22] Production.INFO: ==25908== Releasing lock... [2025-04-10 19:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 19:59:22] Production.INFO: 42.5 MB #Memory Used# [2025-04-10 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 17:00:06 [end_date_ymd] => 2025-04-10 20:00:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 17:00:06' and `end` < '2025-04-10 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-04-10 20:00:19] Production.INFO: count ==1898 [2025-04-10 20:00:19] Production.ERROR: pbx CDR StartTime 2025-04-10 17:00:06 - End Time 2025-04-10 20:00:06 [2025-04-10 20:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879182', 'tblTempUsageDetail_20' ) start [2025-04-10 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879182', 'tblTempUsageDetail_20' ) end [2025-04-10 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879182', 'tblTempVendorCDR_20' ) start [2025-04-10 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879182', 'tblTempVendorCDR_20' ) end [2025-04-10 20:00:19] Production.INFO: ProcessCDR(1,14879182,1,1,2) [2025-04-10 20:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879182', 'tblTempUsageDetail_20' ) start [2025-04-10 20:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879182', 'tblTempUsageDetail_20' ) end [2025-04-10 20:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 20:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 20:00:23] Production.INFO: ==26003== Releasing lock... [2025-04-10 20:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 20:00:23] Production.INFO: 42.5 MB #Memory Used# [2025-04-10 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 17:01:05 [end_date_ymd] => 2025-04-10 20:01:05 [RateCDR] => 1 ) [2025-04-10 20:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 17:01:05' and `end` < '2025-04-10 20:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 20:01:18] Production.INFO: count ==1855 [2025-04-10 20:01:18] Production.ERROR: pbx CDR StartTime 2025-04-10 17:01:05 - End Time 2025-04-10 20:01:05 [2025-04-10 20:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879187', 'tblTempUsageDetail_20' ) start [2025-04-10 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879187', 'tblTempUsageDetail_20' ) end [2025-04-10 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879187', 'tblTempVendorCDR_20' ) start [2025-04-10 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879187', 'tblTempVendorCDR_20' ) end [2025-04-10 20:01:18] Production.INFO: ProcessCDR(1,14879187,1,1,2) [2025-04-10 20:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879187', 'tblTempUsageDetail_20' ) start [2025-04-10 20:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879187', 'tblTempUsageDetail_20' ) end [2025-04-10 20:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 20:01:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 20:01:24] Production.INFO: ==26129== Releasing lock... [2025-04-10 20:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 20:01:24] Production.INFO: 42 MB #Memory Used# [2025-04-10 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 17:02:05 [end_date_ymd] => 2025-04-10 20:02:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 17:02:05' and `end` < '2025-04-10 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-04-10 20:02:18] Production.INFO: count ==1855 [2025-04-10 20:02:19] Production.ERROR: pbx CDR StartTime 2025-04-10 17:02:05 - End Time 2025-04-10 20:02:05 [2025-04-10 20:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879192', 'tblTempUsageDetail_20' ) start [2025-04-10 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879192', 'tblTempUsageDetail_20' ) end [2025-04-10 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879192', 'tblTempVendorCDR_20' ) start [2025-04-10 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879192', 'tblTempVendorCDR_20' ) end [2025-04-10 20:02:19] Production.INFO: ProcessCDR(1,14879192,1,1,2) [2025-04-10 20:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879192', 'tblTempUsageDetail_20' ) start [2025-04-10 20:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879192', 'tblTempUsageDetail_20' ) end [2025-04-10 20:02:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 20:02:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 20:02:24] Production.INFO: ==26243== Releasing lock... [2025-04-10 20:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 20:02:24] Production.INFO: 42 MB #Memory Used# [2025-04-10 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 17:03:05 [end_date_ymd] => 2025-04-10 20:03:05 [RateCDR] => 1 ) [2025-04-10 20:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 17:03:05' and `end` < '2025-04-10 20:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 20:03:18] Production.INFO: count ==1852 [2025-04-10 20:03:19] Production.ERROR: pbx CDR StartTime 2025-04-10 17:03:05 - End Time 2025-04-10 20:03:05 [2025-04-10 20:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879197', 'tblTempUsageDetail_20' ) start [2025-04-10 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879197', 'tblTempUsageDetail_20' ) end [2025-04-10 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879197', 'tblTempVendorCDR_20' ) start [2025-04-10 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879197', 'tblTempVendorCDR_20' ) end [2025-04-10 20:03:19] Production.INFO: ProcessCDR(1,14879197,1,1,2) [2025-04-10 20:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879197', 'tblTempUsageDetail_20' ) start [2025-04-10 20:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879197', 'tblTempUsageDetail_20' ) end [2025-04-10 20:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 20:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 20:03:22] Production.INFO: ==26320== Releasing lock... [2025-04-10 20:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 20:03:22] Production.INFO: 42 MB #Memory Used# [2025-04-10 20:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 17:04:06 [end_date_ymd] => 2025-04-10 20:04:06 [RateCDR] => 1 ) [2025-04-10 20: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-04-10 17:04:06' and `end` < '2025-04-10 20: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-04-10 20:04:19] Production.INFO: count ==1837 [2025-04-10 20:04:19] Production.ERROR: pbx CDR StartTime 2025-04-10 17:04:06 - End Time 2025-04-10 20:04:06 [2025-04-10 20:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879202', 'tblTempUsageDetail_20' ) start [2025-04-10 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879202', 'tblTempUsageDetail_20' ) end [2025-04-10 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879202', 'tblTempVendorCDR_20' ) start [2025-04-10 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879202', 'tblTempVendorCDR_20' ) end [2025-04-10 20:04:19] Production.INFO: ProcessCDR(1,14879202,1,1,2) [2025-04-10 20:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879202', 'tblTempUsageDetail_20' ) start [2025-04-10 20:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879202', 'tblTempUsageDetail_20' ) end [2025-04-10 20:04:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 20:04:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 20:04:23] Production.INFO: ==26389== Releasing lock... [2025-04-10 20:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 20:04:23] Production.INFO: 41.75 MB #Memory Used# [2025-04-10 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 17:05:05 [end_date_ymd] => 2025-04-10 20:05:05 [RateCDR] => 1 ) [2025-04-10 20:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 17:05:05' and `end` < '2025-04-10 20:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 20:05:18] Production.INFO: count ==1834 [2025-04-10 20:05:18] Production.ERROR: pbx CDR StartTime 2025-04-10 17:05:05 - End Time 2025-04-10 20:05:05 [2025-04-10 20:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879207', 'tblTempUsageDetail_20' ) start [2025-04-10 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879207', 'tblTempUsageDetail_20' ) end [2025-04-10 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879207', 'tblTempVendorCDR_20' ) start [2025-04-10 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879207', 'tblTempVendorCDR_20' ) end [2025-04-10 20:05:18] Production.INFO: ProcessCDR(1,14879207,1,1,2) [2025-04-10 20:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879207', 'tblTempUsageDetail_20' ) start [2025-04-10 20:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879207', 'tblTempUsageDetail_20' ) end [2025-04-10 20:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 20:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 20:05:22] Production.INFO: ==26463== Releasing lock... [2025-04-10 20:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 20:05:22] Production.INFO: 42 MB #Memory Used# [2025-04-10 20:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 17:06:06 [end_date_ymd] => 2025-04-10 20:06:06 [RateCDR] => 1 ) [2025-04-10 20: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-04-10 17:06:06' and `end` < '2025-04-10 20: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-04-10 20:06:19] Production.INFO: count ==1830 [2025-04-10 20:06:19] Production.ERROR: pbx CDR StartTime 2025-04-10 17:06:06 - End Time 2025-04-10 20:06:06 [2025-04-10 20:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879212', 'tblTempUsageDetail_20' ) start [2025-04-10 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879212', 'tblTempUsageDetail_20' ) end [2025-04-10 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879212', 'tblTempVendorCDR_20' ) start [2025-04-10 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879212', 'tblTempVendorCDR_20' ) end [2025-04-10 20:06:19] Production.INFO: ProcessCDR(1,14879212,1,1,2) [2025-04-10 20:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879212', 'tblTempUsageDetail_20' ) start [2025-04-10 20:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879212', 'tblTempUsageDetail_20' ) end [2025-04-10 20:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 20:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 20:06:22] Production.INFO: ==26539== Releasing lock... [2025-04-10 20:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 20:06:22] Production.INFO: 42 MB #Memory Used# [2025-04-10 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 17:07:05 [end_date_ymd] => 2025-04-10 20:07:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 17:07:05' and `end` < '2025-04-10 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-04-10 20:07:18] Production.INFO: count ==1822 [2025-04-10 20:07:18] Production.ERROR: pbx CDR StartTime 2025-04-10 17:07:05 - End Time 2025-04-10 20:07:05 [2025-04-10 20:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879217', 'tblTempUsageDetail_20' ) start [2025-04-10 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879217', 'tblTempUsageDetail_20' ) end [2025-04-10 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879217', 'tblTempVendorCDR_20' ) start [2025-04-10 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879217', 'tblTempVendorCDR_20' ) end [2025-04-10 20:07:18] Production.INFO: ProcessCDR(1,14879217,1,1,2) [2025-04-10 20:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879217', 'tblTempUsageDetail_20' ) start [2025-04-10 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879217', 'tblTempUsageDetail_20' ) end [2025-04-10 20:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 20:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 20:07:22] Production.INFO: ==26612== Releasing lock... [2025-04-10 20:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 20:07:22] Production.INFO: 41.75 MB #Memory Used# [2025-04-10 20:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 17:08:06 [end_date_ymd] => 2025-04-10 20:08:06 [RateCDR] => 1 ) [2025-04-10 20:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 17:08:06' and `end` < '2025-04-10 20:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 20:08:19] Production.INFO: count ==1819 [2025-04-10 20:08:19] Production.ERROR: pbx CDR StartTime 2025-04-10 17:08:06 - End Time 2025-04-10 20:08:06 [2025-04-10 20:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879222', 'tblTempUsageDetail_20' ) start [2025-04-10 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879222', 'tblTempUsageDetail_20' ) end [2025-04-10 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879222', 'tblTempVendorCDR_20' ) start [2025-04-10 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879222', 'tblTempVendorCDR_20' ) end [2025-04-10 20:08:19] Production.INFO: ProcessCDR(1,14879222,1,1,2) [2025-04-10 20:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879222', 'tblTempUsageDetail_20' ) start [2025-04-10 20:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879222', 'tblTempUsageDetail_20' ) end [2025-04-10 20:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 20:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 20:08:22] Production.INFO: ==26686== Releasing lock... [2025-04-10 20:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 20:08:22] Production.INFO: 41.75 MB #Memory Used# [2025-04-10 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 17:09:05 [end_date_ymd] => 2025-04-10 20:09:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 17:09:05' and `end` < '2025-04-10 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-04-10 20:09:18] Production.INFO: count ==1819 [2025-04-10 20:09:18] Production.ERROR: pbx CDR StartTime 2025-04-10 17:09:05 - End Time 2025-04-10 20:09:05 [2025-04-10 20:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879227', 'tblTempUsageDetail_20' ) start [2025-04-10 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879227', 'tblTempUsageDetail_20' ) end [2025-04-10 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879227', 'tblTempVendorCDR_20' ) start [2025-04-10 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879227', 'tblTempVendorCDR_20' ) end [2025-04-10 20:09:18] Production.INFO: ProcessCDR(1,14879227,1,1,2) [2025-04-10 20:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879227', 'tblTempUsageDetail_20' ) start [2025-04-10 20:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879227', 'tblTempUsageDetail_20' ) end [2025-04-10 20:09:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 20:09:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 20:09:23] Production.INFO: ==26758== Releasing lock... [2025-04-10 20:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 20:09:23] Production.INFO: 41.75 MB #Memory Used# [2025-04-10 20:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 17:10:06 [end_date_ymd] => 2025-04-10 20:10:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 17:10:06' and `end` < '2025-04-10 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-04-10 20:10:19] Production.INFO: count ==1816 [2025-04-10 20:10:19] Production.ERROR: pbx CDR StartTime 2025-04-10 17:10:06 - End Time 2025-04-10 20:10:06 [2025-04-10 20:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879233', 'tblTempUsageDetail_20' ) start [2025-04-10 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879233', 'tblTempUsageDetail_20' ) end [2025-04-10 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879233', 'tblTempVendorCDR_20' ) start [2025-04-10 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879233', 'tblTempVendorCDR_20' ) end [2025-04-10 20:10:19] Production.INFO: ProcessCDR(1,14879233,1,1,2) [2025-04-10 20:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879233', 'tblTempUsageDetail_20' ) start [2025-04-10 20:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879233', 'tblTempUsageDetail_20' ) end [2025-04-10 20:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 20:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 20:10:23] Production.INFO: ==26832== Releasing lock... [2025-04-10 20:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 20:10:23] Production.INFO: 41.5 MB #Memory Used# [2025-04-10 20:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 17:11:05 [end_date_ymd] => 2025-04-10 20:11:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 17:11:05' and `end` < '2025-04-10 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-04-10 20:11:18] Production.INFO: count ==1764 [2025-04-10 20:11:18] Production.ERROR: pbx CDR StartTime 2025-04-10 17:11:05 - End Time 2025-04-10 20:11:05 [2025-04-10 20:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879238', 'tblTempUsageDetail_20' ) start [2025-04-10 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879238', 'tblTempUsageDetail_20' ) end [2025-04-10 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879238', 'tblTempVendorCDR_20' ) start [2025-04-10 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879238', 'tblTempVendorCDR_20' ) end [2025-04-10 20:11:18] Production.INFO: ProcessCDR(1,14879238,1,1,2) [2025-04-10 20:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879238', 'tblTempUsageDetail_20' ) start [2025-04-10 20:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879238', 'tblTempUsageDetail_20' ) end [2025-04-10 20:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 20:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 20:11:21] Production.INFO: ==26904== Releasing lock... [2025-04-10 20:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 20:11:21] Production.INFO: 41.25 MB #Memory Used# [2025-04-10 20:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 17:12:06 [end_date_ymd] => 2025-04-10 20:12:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 17:12:06' and `end` < '2025-04-10 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-04-10 20:12:18] Production.INFO: count ==1757 [2025-04-10 20:12:19] Production.ERROR: pbx CDR StartTime 2025-04-10 17:12:06 - End Time 2025-04-10 20:12:06 [2025-04-10 20:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879243', 'tblTempUsageDetail_20' ) start [2025-04-10 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879243', 'tblTempUsageDetail_20' ) end [2025-04-10 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879243', 'tblTempVendorCDR_20' ) start [2025-04-10 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879243', 'tblTempVendorCDR_20' ) end [2025-04-10 20:12:19] Production.INFO: ProcessCDR(1,14879243,1,1,2) [2025-04-10 20:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879243', 'tblTempUsageDetail_20' ) start [2025-04-10 20:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879243', 'tblTempUsageDetail_20' ) end [2025-04-10 20:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 20:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 20:12:22] Production.INFO: ==26984== Releasing lock... [2025-04-10 20:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 20:12:22] Production.INFO: 41 MB #Memory Used# [2025-04-10 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 17:13:05 [end_date_ymd] => 2025-04-10 20:13:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 17:13:05' and `end` < '2025-04-10 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-04-10 20:13:18] Production.INFO: count ==1753 [2025-04-10 20:13:18] Production.ERROR: pbx CDR StartTime 2025-04-10 17:13:05 - End Time 2025-04-10 20:13:05 [2025-04-10 20:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879248', 'tblTempUsageDetail_20' ) start [2025-04-10 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879248', 'tblTempUsageDetail_20' ) end [2025-04-10 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879248', 'tblTempVendorCDR_20' ) start [2025-04-10 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879248', 'tblTempVendorCDR_20' ) end [2025-04-10 20:13:18] Production.INFO: ProcessCDR(1,14879248,1,1,2) [2025-04-10 20:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879248', 'tblTempUsageDetail_20' ) start [2025-04-10 20:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879248', 'tblTempUsageDetail_20' ) end [2025-04-10 20:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 20:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 20:13:21] Production.INFO: ==27056== Releasing lock... [2025-04-10 20:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 20:13:21] Production.INFO: 41.25 MB #Memory Used# [2025-04-10 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 17:14:05 [end_date_ymd] => 2025-04-10 20:14:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 17:14:05' and `end` < '2025-04-10 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-04-10 20:14:18] Production.INFO: count ==1749 [2025-04-10 20:14:19] Production.ERROR: pbx CDR StartTime 2025-04-10 17:14:05 - End Time 2025-04-10 20:14:05 [2025-04-10 20:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879253', 'tblTempUsageDetail_20' ) start [2025-04-10 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879253', 'tblTempUsageDetail_20' ) end [2025-04-10 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879253', 'tblTempVendorCDR_20' ) start [2025-04-10 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879253', 'tblTempVendorCDR_20' ) end [2025-04-10 20:14:19] Production.INFO: ProcessCDR(1,14879253,1,1,2) [2025-04-10 20:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879253', 'tblTempUsageDetail_20' ) start [2025-04-10 20:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879253', 'tblTempUsageDetail_20' ) end [2025-04-10 20:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 20:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 20:14:22] Production.INFO: ==27132== Releasing lock... [2025-04-10 20:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 20:14:22] Production.INFO: 41 MB #Memory Used# [2025-04-10 20:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 17:15:06 [end_date_ymd] => 2025-04-10 20:15:06 [RateCDR] => 1 ) [2025-04-10 20: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-04-10 17:15:06' and `end` < '2025-04-10 20: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-04-10 20:15:19] Production.INFO: count ==1740 [2025-04-10 20:15:19] Production.ERROR: pbx CDR StartTime 2025-04-10 17:15:06 - End Time 2025-04-10 20:15:06 [2025-04-10 20:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879258', 'tblTempUsageDetail_20' ) start [2025-04-10 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879258', 'tblTempUsageDetail_20' ) end [2025-04-10 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879258', 'tblTempVendorCDR_20' ) start [2025-04-10 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879258', 'tblTempVendorCDR_20' ) end [2025-04-10 20:15:19] Production.INFO: ProcessCDR(1,14879258,1,1,2) [2025-04-10 20:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879258', 'tblTempUsageDetail_20' ) start [2025-04-10 20:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879258', 'tblTempUsageDetail_20' ) end [2025-04-10 20:15:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 20:15:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 20:15:23] Production.INFO: ==27205== Releasing lock... [2025-04-10 20:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 20:15:23] Production.INFO: 41 MB #Memory Used# [2025-04-10 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 17:16:05 [end_date_ymd] => 2025-04-10 20:16:05 [RateCDR] => 1 ) [2025-04-10 20:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 17:16:05' and `end` < '2025-04-10 20:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 20:16:18] Production.INFO: count ==1742 [2025-04-10 20:16:19] Production.ERROR: pbx CDR StartTime 2025-04-10 17:16:05 - End Time 2025-04-10 20:16:05 [2025-04-10 20:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879263', 'tblTempUsageDetail_20' ) start [2025-04-10 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879263', 'tblTempUsageDetail_20' ) end [2025-04-10 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879263', 'tblTempVendorCDR_20' ) start [2025-04-10 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879263', 'tblTempVendorCDR_20' ) end [2025-04-10 20:16:19] Production.INFO: ProcessCDR(1,14879263,1,1,2) [2025-04-10 20:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879263', 'tblTempUsageDetail_20' ) start [2025-04-10 20:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879263', 'tblTempUsageDetail_20' ) end [2025-04-10 20:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 20:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 20:16:22] Production.INFO: ==27280== Releasing lock... [2025-04-10 20:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 20:16:22] Production.INFO: 41 MB #Memory Used# [2025-04-10 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 17:17:05 [end_date_ymd] => 2025-04-10 20:17:05 [RateCDR] => 1 ) [2025-04-10 20:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 17:17:05' and `end` < '2025-04-10 20:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 20:17:18] Production.INFO: count ==1721 [2025-04-10 20:17:19] Production.ERROR: pbx CDR StartTime 2025-04-10 17:17:05 - End Time 2025-04-10 20:17:05 [2025-04-10 20:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879268', 'tblTempUsageDetail_20' ) start [2025-04-10 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879268', 'tblTempUsageDetail_20' ) end [2025-04-10 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879268', 'tblTempVendorCDR_20' ) start [2025-04-10 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879268', 'tblTempVendorCDR_20' ) end [2025-04-10 20:17:19] Production.INFO: ProcessCDR(1,14879268,1,1,2) [2025-04-10 20:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879268', 'tblTempUsageDetail_20' ) start [2025-04-10 20:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879268', 'tblTempUsageDetail_20' ) end [2025-04-10 20:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 20:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 20:17:22] Production.INFO: ==27389== Releasing lock... [2025-04-10 20:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 20:17:22] Production.INFO: 40.75 MB #Memory Used# [2025-04-10 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 17:18:05 [end_date_ymd] => 2025-04-10 20:18:05 [RateCDR] => 1 ) [2025-04-10 20:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 17:18:05' and `end` < '2025-04-10 20:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 20:18:18] Production.INFO: count ==1715 [2025-04-10 20:18:18] Production.ERROR: pbx CDR StartTime 2025-04-10 17:18:05 - End Time 2025-04-10 20:18:05 [2025-04-10 20:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879273', 'tblTempUsageDetail_20' ) start [2025-04-10 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879273', 'tblTempUsageDetail_20' ) end [2025-04-10 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879273', 'tblTempVendorCDR_20' ) start [2025-04-10 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879273', 'tblTempVendorCDR_20' ) end [2025-04-10 20:18:18] Production.INFO: ProcessCDR(1,14879273,1,1,2) [2025-04-10 20:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879273', 'tblTempUsageDetail_20' ) start [2025-04-10 20:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879273', 'tblTempUsageDetail_20' ) end [2025-04-10 20:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 20:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 20:18:22] Production.INFO: ==27461== Releasing lock... [2025-04-10 20:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 20:18:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-10 20:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 17:19:05 [end_date_ymd] => 2025-04-10 20:19:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 17:19:05' and `end` < '2025-04-10 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-04-10 20:19:18] Production.INFO: count ==1710 [2025-04-10 20:19:18] Production.ERROR: pbx CDR StartTime 2025-04-10 17:19:05 - End Time 2025-04-10 20:19:05 [2025-04-10 20:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879278', 'tblTempUsageDetail_20' ) start [2025-04-10 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879278', 'tblTempUsageDetail_20' ) end [2025-04-10 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879278', 'tblTempVendorCDR_20' ) start [2025-04-10 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879278', 'tblTempVendorCDR_20' ) end [2025-04-10 20:19:18] Production.INFO: ProcessCDR(1,14879278,1,1,2) [2025-04-10 20:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879278', 'tblTempUsageDetail_20' ) start [2025-04-10 20:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879278', 'tblTempUsageDetail_20' ) end [2025-04-10 20:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 20:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 20:19:21] Production.INFO: ==27532== Releasing lock... [2025-04-10 20:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 20:19:21] Production.INFO: 40.5 MB #Memory Used# [2025-04-10 20:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 17:20:06 [end_date_ymd] => 2025-04-10 20:20:06 [RateCDR] => 1 ) [2025-04-10 20:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 17:20:06' and `end` < '2025-04-10 20:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 20:20:19] Production.INFO: count ==1708 [2025-04-10 20:20:19] Production.ERROR: pbx CDR StartTime 2025-04-10 17:20:06 - End Time 2025-04-10 20:20:06 [2025-04-10 20:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879284', 'tblTempUsageDetail_20' ) start [2025-04-10 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879284', 'tblTempUsageDetail_20' ) end [2025-04-10 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879284', 'tblTempVendorCDR_20' ) start [2025-04-10 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879284', 'tblTempVendorCDR_20' ) end [2025-04-10 20:20:19] Production.INFO: ProcessCDR(1,14879284,1,1,2) [2025-04-10 20:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879284', 'tblTempUsageDetail_20' ) start [2025-04-10 20:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879284', 'tblTempUsageDetail_20' ) end [2025-04-10 20:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 20:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 20:20:23] Production.INFO: ==27607== Releasing lock... [2025-04-10 20:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 20:20:23] Production.INFO: 40.5 MB #Memory Used# [2025-04-10 20:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 17:21:04 [end_date_ymd] => 2025-04-10 20:21:04 [RateCDR] => 1 ) [2025-04-10 20:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 17:21:04' and `end` < '2025-04-10 20:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 20:21:17] Production.INFO: count ==1620 [2025-04-10 20:21:18] Production.ERROR: pbx CDR StartTime 2025-04-10 17:21:04 - End Time 2025-04-10 20:21:04 [2025-04-10 20:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879289', 'tblTempUsageDetail_20' ) start [2025-04-10 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879289', 'tblTempUsageDetail_20' ) end [2025-04-10 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879289', 'tblTempVendorCDR_20' ) start [2025-04-10 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879289', 'tblTempVendorCDR_20' ) end [2025-04-10 20:21:18] Production.INFO: ProcessCDR(1,14879289,1,1,2) [2025-04-10 20:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879289', 'tblTempUsageDetail_20' ) start [2025-04-10 20:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879289', 'tblTempUsageDetail_20' ) end [2025-04-10 20:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 20:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 20:21:22] Production.INFO: ==27678== Releasing lock... [2025-04-10 20:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 20:21:22] Production.INFO: 40 MB #Memory Used# [2025-04-10 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 17:22:05 [end_date_ymd] => 2025-04-10 20:22:05 [RateCDR] => 1 ) [2025-04-10 20:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 17:22:05' and `end` < '2025-04-10 20:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 20:22:18] Production.INFO: count ==1619 [2025-04-10 20:22:18] Production.ERROR: pbx CDR StartTime 2025-04-10 17:22:05 - End Time 2025-04-10 20:22:05 [2025-04-10 20:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879294', 'tblTempUsageDetail_20' ) start [2025-04-10 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879294', 'tblTempUsageDetail_20' ) end [2025-04-10 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879294', 'tblTempVendorCDR_20' ) start [2025-04-10 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879294', 'tblTempVendorCDR_20' ) end [2025-04-10 20:22:18] Production.INFO: ProcessCDR(1,14879294,1,1,2) [2025-04-10 20:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879294', 'tblTempUsageDetail_20' ) start [2025-04-10 20:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879294', 'tblTempUsageDetail_20' ) end [2025-04-10 20:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 20:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 20:22:21] Production.INFO: ==27755== Releasing lock... [2025-04-10 20:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 20:22:21] Production.INFO: 40 MB #Memory Used# [2025-04-10 20:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 17:23:06 [end_date_ymd] => 2025-04-10 20:23:06 [RateCDR] => 1 ) [2025-04-10 20: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-04-10 17:23:06' and `end` < '2025-04-10 20: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-04-10 20:23:19] Production.INFO: count ==1618 [2025-04-10 20:23:19] Production.ERROR: pbx CDR StartTime 2025-04-10 17:23:06 - End Time 2025-04-10 20:23:06 [2025-04-10 20:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879299', 'tblTempUsageDetail_20' ) start [2025-04-10 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879299', 'tblTempUsageDetail_20' ) end [2025-04-10 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879299', 'tblTempVendorCDR_20' ) start [2025-04-10 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879299', 'tblTempVendorCDR_20' ) end [2025-04-10 20:23:19] Production.INFO: ProcessCDR(1,14879299,1,1,2) [2025-04-10 20:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879299', 'tblTempUsageDetail_20' ) start [2025-04-10 20:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879299', 'tblTempUsageDetail_20' ) end [2025-04-10 20:23:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 20:23:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 20:23:24] Production.INFO: ==27828== Releasing lock... [2025-04-10 20:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 20:23:24] Production.INFO: 40 MB #Memory Used# [2025-04-10 20:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 17:24:05 [end_date_ymd] => 2025-04-10 20:24:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 17:24:05' and `end` < '2025-04-10 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-04-10 20:24:18] Production.INFO: count ==1614 [2025-04-10 20:24:19] Production.ERROR: pbx CDR StartTime 2025-04-10 17:24:05 - End Time 2025-04-10 20:24:05 [2025-04-10 20:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879304', 'tblTempUsageDetail_20' ) start [2025-04-10 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879304', 'tblTempUsageDetail_20' ) end [2025-04-10 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879304', 'tblTempVendorCDR_20' ) start [2025-04-10 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879304', 'tblTempVendorCDR_20' ) end [2025-04-10 20:24:19] Production.INFO: ProcessCDR(1,14879304,1,1,2) [2025-04-10 20:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879304', 'tblTempUsageDetail_20' ) start [2025-04-10 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879304', 'tblTempUsageDetail_20' ) end [2025-04-10 20:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 20:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 20:24:22] Production.INFO: ==27900== Releasing lock... [2025-04-10 20:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 20:24:22] Production.INFO: 40 MB #Memory Used# [2025-04-10 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 17:25:05 [end_date_ymd] => 2025-04-10 20:25:05 [RateCDR] => 1 ) [2025-04-10 20:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 17:25:05' and `end` < '2025-04-10 20:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 20:25:18] Production.INFO: count ==1606 [2025-04-10 20:25:18] Production.ERROR: pbx CDR StartTime 2025-04-10 17:25:05 - End Time 2025-04-10 20:25:05 [2025-04-10 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879309', 'tblTempUsageDetail_20' ) start [2025-04-10 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879309', 'tblTempUsageDetail_20' ) end [2025-04-10 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879309', 'tblTempVendorCDR_20' ) start [2025-04-10 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879309', 'tblTempVendorCDR_20' ) end [2025-04-10 20:25:18] Production.INFO: ProcessCDR(1,14879309,1,1,2) [2025-04-10 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879309', 'tblTempUsageDetail_20' ) start [2025-04-10 20:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879309', 'tblTempUsageDetail_20' ) end [2025-04-10 20:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 20:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 20:25:22] Production.INFO: ==27974== Releasing lock... [2025-04-10 20:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 20:25:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-10 20:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 17:26:05 [end_date_ymd] => 2025-04-10 20:26:05 [RateCDR] => 1 ) [2025-04-10 20:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 17:26:05' and `end` < '2025-04-10 20:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 20:26:18] Production.INFO: count ==1598 [2025-04-10 20:26:18] Production.ERROR: pbx CDR StartTime 2025-04-10 17:26:05 - End Time 2025-04-10 20:26:05 [2025-04-10 20:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879314', 'tblTempUsageDetail_20' ) start [2025-04-10 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879314', 'tblTempUsageDetail_20' ) end [2025-04-10 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879314', 'tblTempVendorCDR_20' ) start [2025-04-10 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879314', 'tblTempVendorCDR_20' ) end [2025-04-10 20:26:19] Production.INFO: ProcessCDR(1,14879314,1,1,2) [2025-04-10 20:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879314', 'tblTempUsageDetail_20' ) start [2025-04-10 20:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879314', 'tblTempUsageDetail_20' ) end [2025-04-10 20:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 20:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 20:26:22] Production.INFO: ==28050== Releasing lock... [2025-04-10 20:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 20:26:22] Production.INFO: 40 MB #Memory Used# [2025-04-10 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 17:27:05 [end_date_ymd] => 2025-04-10 20:27:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 17:27:05' and `end` < '2025-04-10 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-04-10 20:27:18] Production.INFO: count ==1591 [2025-04-10 20:27:18] Production.ERROR: pbx CDR StartTime 2025-04-10 17:27:05 - End Time 2025-04-10 20:27:05 [2025-04-10 20:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879319', 'tblTempUsageDetail_20' ) start [2025-04-10 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879319', 'tblTempUsageDetail_20' ) end [2025-04-10 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879319', 'tblTempVendorCDR_20' ) start [2025-04-10 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879319', 'tblTempVendorCDR_20' ) end [2025-04-10 20:27:19] Production.INFO: ProcessCDR(1,14879319,1,1,2) [2025-04-10 20:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879319', 'tblTempUsageDetail_20' ) start [2025-04-10 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879319', 'tblTempUsageDetail_20' ) end [2025-04-10 20:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 20:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 20:27:22] Production.INFO: ==28123== Releasing lock... [2025-04-10 20:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 20:27:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-10 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 17:28:05 [end_date_ymd] => 2025-04-10 20:28:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 17:28:05' and `end` < '2025-04-10 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-04-10 20:28:18] Production.INFO: count ==1584 [2025-04-10 20:28:18] Production.ERROR: pbx CDR StartTime 2025-04-10 17:28:05 - End Time 2025-04-10 20:28:05 [2025-04-10 20:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879324', 'tblTempUsageDetail_20' ) start [2025-04-10 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879324', 'tblTempUsageDetail_20' ) end [2025-04-10 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879324', 'tblTempVendorCDR_20' ) start [2025-04-10 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879324', 'tblTempVendorCDR_20' ) end [2025-04-10 20:28:18] Production.INFO: ProcessCDR(1,14879324,1,1,2) [2025-04-10 20:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879324', 'tblTempUsageDetail_20' ) start [2025-04-10 20:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879324', 'tblTempUsageDetail_20' ) end [2025-04-10 20:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 20:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 20:28:22] Production.INFO: ==28192== Releasing lock... [2025-04-10 20:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 20:28:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-10 20:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 17:29:05 [end_date_ymd] => 2025-04-10 20:29:05 [RateCDR] => 1 ) [2025-04-10 20:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 17:29:05' and `end` < '2025-04-10 20:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 20:29:18] Production.INFO: count ==1579 [2025-04-10 20:29:18] Production.ERROR: pbx CDR StartTime 2025-04-10 17:29:05 - End Time 2025-04-10 20:29:05 [2025-04-10 20:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879329', 'tblTempUsageDetail_20' ) start [2025-04-10 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879329', 'tblTempUsageDetail_20' ) end [2025-04-10 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879329', 'tblTempVendorCDR_20' ) start [2025-04-10 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879329', 'tblTempVendorCDR_20' ) end [2025-04-10 20:29:18] Production.INFO: ProcessCDR(1,14879329,1,1,2) [2025-04-10 20:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879329', 'tblTempUsageDetail_20' ) start [2025-04-10 20:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879329', 'tblTempUsageDetail_20' ) end [2025-04-10 20:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 20:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 20:29:22] Production.INFO: ==28265== Releasing lock... [2025-04-10 20:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 20:29:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-10 20:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 17:30:06 [end_date_ymd] => 2025-04-10 20:30:06 [RateCDR] => 1 ) [2025-04-10 20:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 17:30:06' and `end` < '2025-04-10 20:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 20:30:19] Production.INFO: count ==1574 [2025-04-10 20:30:19] Production.ERROR: pbx CDR StartTime 2025-04-10 17:30:06 - End Time 2025-04-10 20:30:06 [2025-04-10 20:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879335', 'tblTempUsageDetail_20' ) start [2025-04-10 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879335', 'tblTempUsageDetail_20' ) end [2025-04-10 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879335', 'tblTempVendorCDR_20' ) start [2025-04-10 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879335', 'tblTempVendorCDR_20' ) end [2025-04-10 20:30:19] Production.INFO: ProcessCDR(1,14879335,1,1,2) [2025-04-10 20:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879335', 'tblTempUsageDetail_20' ) start [2025-04-10 20:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879335', 'tblTempUsageDetail_20' ) end [2025-04-10 20:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 20:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 20:30:23] Production.INFO: ==28339== Releasing lock... [2025-04-10 20:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 20:30:23] Production.INFO: 39.5 MB #Memory Used# [2025-04-10 20:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 17:31:06 [end_date_ymd] => 2025-04-10 20:31:06 [RateCDR] => 1 ) [2025-04-10 20: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-04-10 17:31:06' and `end` < '2025-04-10 20: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-04-10 20:31:19] Production.INFO: count ==1548 [2025-04-10 20:31:19] Production.ERROR: pbx CDR StartTime 2025-04-10 17:31:06 - End Time 2025-04-10 20:31:06 [2025-04-10 20:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879340', 'tblTempUsageDetail_20' ) start [2025-04-10 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879340', 'tblTempUsageDetail_20' ) end [2025-04-10 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879340', 'tblTempVendorCDR_20' ) start [2025-04-10 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879340', 'tblTempVendorCDR_20' ) end [2025-04-10 20:31:19] Production.INFO: ProcessCDR(1,14879340,1,1,2) [2025-04-10 20:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879340', 'tblTempUsageDetail_20' ) start [2025-04-10 20:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879340', 'tblTempUsageDetail_20' ) end [2025-04-10 20:31:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 20:31:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 20:31:24] Production.INFO: ==28418== Releasing lock... [2025-04-10 20:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 20:31:24] Production.INFO: 39.25 MB #Memory Used# [2025-04-10 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 17:32:05 [end_date_ymd] => 2025-04-10 20:32:05 [RateCDR] => 1 ) [2025-04-10 20:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 17:32:05' and `end` < '2025-04-10 20:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 20:32:18] Production.INFO: count ==1541 [2025-04-10 20:32:18] Production.ERROR: pbx CDR StartTime 2025-04-10 17:32:05 - End Time 2025-04-10 20:32:05 [2025-04-10 20:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879345', 'tblTempUsageDetail_20' ) start [2025-04-10 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879345', 'tblTempUsageDetail_20' ) end [2025-04-10 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879345', 'tblTempVendorCDR_20' ) start [2025-04-10 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879345', 'tblTempVendorCDR_20' ) end [2025-04-10 20:32:18] Production.INFO: ProcessCDR(1,14879345,1,1,2) [2025-04-10 20:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879345', 'tblTempUsageDetail_20' ) start [2025-04-10 20:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879345', 'tblTempUsageDetail_20' ) end [2025-04-10 20:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 20:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 20:32:21] Production.INFO: ==28529== Releasing lock... [2025-04-10 20:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 20:32:21] Production.INFO: 39.25 MB #Memory Used# [2025-04-10 20:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 17:33:05 [end_date_ymd] => 2025-04-10 20:33:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 17:33:05' and `end` < '2025-04-10 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-04-10 20:33:18] Production.INFO: count ==1538 [2025-04-10 20:33:18] Production.ERROR: pbx CDR StartTime 2025-04-10 17:33:05 - End Time 2025-04-10 20:33:05 [2025-04-10 20:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879350', 'tblTempUsageDetail_20' ) start [2025-04-10 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879350', 'tblTempUsageDetail_20' ) end [2025-04-10 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879350', 'tblTempVendorCDR_20' ) start [2025-04-10 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879350', 'tblTempVendorCDR_20' ) end [2025-04-10 20:33:18] Production.INFO: ProcessCDR(1,14879350,1,1,2) [2025-04-10 20:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879350', 'tblTempUsageDetail_20' ) start [2025-04-10 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879350', 'tblTempUsageDetail_20' ) end [2025-04-10 20:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 20:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 20:33:22] Production.INFO: ==28600== Releasing lock... [2025-04-10 20:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 20:33:22] Production.INFO: 39 MB #Memory Used# [2025-04-10 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 17:34:05 [end_date_ymd] => 2025-04-10 20:34:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 17:34:05' and `end` < '2025-04-10 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-04-10 20:34:18] Production.INFO: count ==1535 [2025-04-10 20:34:18] Production.ERROR: pbx CDR StartTime 2025-04-10 17:34:05 - End Time 2025-04-10 20:34:05 [2025-04-10 20:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879355', 'tblTempUsageDetail_20' ) start [2025-04-10 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879355', 'tblTempUsageDetail_20' ) end [2025-04-10 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879355', 'tblTempVendorCDR_20' ) start [2025-04-10 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879355', 'tblTempVendorCDR_20' ) end [2025-04-10 20:34:18] Production.INFO: ProcessCDR(1,14879355,1,1,2) [2025-04-10 20:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879355', 'tblTempUsageDetail_20' ) start [2025-04-10 20:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879355', 'tblTempUsageDetail_20' ) end [2025-04-10 20:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 20:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 20:34:22] Production.INFO: ==28670== Releasing lock... [2025-04-10 20:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 20:34:22] Production.INFO: 39 MB #Memory Used# [2025-04-10 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 17:35:05 [end_date_ymd] => 2025-04-10 20:35:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 17:35:05' and `end` < '2025-04-10 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-04-10 20:35:18] Production.INFO: count ==1523 [2025-04-10 20:35:19] Production.ERROR: pbx CDR StartTime 2025-04-10 17:35:05 - End Time 2025-04-10 20:35:05 [2025-04-10 20:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879360', 'tblTempUsageDetail_20' ) start [2025-04-10 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879360', 'tblTempUsageDetail_20' ) end [2025-04-10 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879360', 'tblTempVendorCDR_20' ) start [2025-04-10 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879360', 'tblTempVendorCDR_20' ) end [2025-04-10 20:35:19] Production.INFO: ProcessCDR(1,14879360,1,1,2) [2025-04-10 20:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879360', 'tblTempUsageDetail_20' ) start [2025-04-10 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879360', 'tblTempUsageDetail_20' ) end [2025-04-10 20:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 20:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 20:35:22] Production.INFO: ==28741== Releasing lock... [2025-04-10 20:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 20:35:22] Production.INFO: 39 MB #Memory Used# [2025-04-10 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 17:36:05 [end_date_ymd] => 2025-04-10 20:36:05 [RateCDR] => 1 ) [2025-04-10 20:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 17:36:05' and `end` < '2025-04-10 20:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 20:36:18] Production.INFO: count ==1519 [2025-04-10 20:36:18] Production.ERROR: pbx CDR StartTime 2025-04-10 17:36:05 - End Time 2025-04-10 20:36:05 [2025-04-10 20:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879365', 'tblTempUsageDetail_20' ) start [2025-04-10 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879365', 'tblTempUsageDetail_20' ) end [2025-04-10 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879365', 'tblTempVendorCDR_20' ) start [2025-04-10 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879365', 'tblTempVendorCDR_20' ) end [2025-04-10 20:36:18] Production.INFO: ProcessCDR(1,14879365,1,1,2) [2025-04-10 20:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879365', 'tblTempUsageDetail_20' ) start [2025-04-10 20:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879365', 'tblTempUsageDetail_20' ) end [2025-04-10 20:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 20:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 20:36:21] Production.INFO: ==28812== Releasing lock... [2025-04-10 20:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 20:36:21] Production.INFO: 39 MB #Memory Used# [2025-04-10 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 17:37:05 [end_date_ymd] => 2025-04-10 20:37:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 17:37:05' and `end` < '2025-04-10 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-04-10 20:37:18] Production.INFO: count ==1517 [2025-04-10 20:37:18] Production.ERROR: pbx CDR StartTime 2025-04-10 17:37:05 - End Time 2025-04-10 20:37:05 [2025-04-10 20:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879370', 'tblTempUsageDetail_20' ) start [2025-04-10 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879370', 'tblTempUsageDetail_20' ) end [2025-04-10 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879370', 'tblTempVendorCDR_20' ) start [2025-04-10 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879370', 'tblTempVendorCDR_20' ) end [2025-04-10 20:37:18] Production.INFO: ProcessCDR(1,14879370,1,1,2) [2025-04-10 20:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879370', 'tblTempUsageDetail_20' ) start [2025-04-10 20:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879370', 'tblTempUsageDetail_20' ) end [2025-04-10 20:37:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 20:37:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 20:37:23] Production.INFO: ==28886== Releasing lock... [2025-04-10 20:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 20:37:23] Production.INFO: 39 MB #Memory Used# [2025-04-10 20:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 17:38:05 [end_date_ymd] => 2025-04-10 20:38:05 [RateCDR] => 1 ) [2025-04-10 20:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 17:38:05' and `end` < '2025-04-10 20:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 20:38:18] Production.INFO: count ==1516 [2025-04-10 20:38:18] Production.ERROR: pbx CDR StartTime 2025-04-10 17:38:05 - End Time 2025-04-10 20:38:05 [2025-04-10 20:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879375', 'tblTempUsageDetail_20' ) start [2025-04-10 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879375', 'tblTempUsageDetail_20' ) end [2025-04-10 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879375', 'tblTempVendorCDR_20' ) start [2025-04-10 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879375', 'tblTempVendorCDR_20' ) end [2025-04-10 20:38:18] Production.INFO: ProcessCDR(1,14879375,1,1,2) [2025-04-10 20:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879375', 'tblTempUsageDetail_20' ) start [2025-04-10 20:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879375', 'tblTempUsageDetail_20' ) end [2025-04-10 20:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 20:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 20:38:21] Production.INFO: ==28963== Releasing lock... [2025-04-10 20:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 20:38:21] Production.INFO: 39 MB #Memory Used# [2025-04-10 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 17:39:05 [end_date_ymd] => 2025-04-10 20:39:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 17:39:05' and `end` < '2025-04-10 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-04-10 20:39:18] Production.INFO: count ==1504 [2025-04-10 20:39:18] Production.ERROR: pbx CDR StartTime 2025-04-10 17:39:05 - End Time 2025-04-10 20:39:05 [2025-04-10 20:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879380', 'tblTempUsageDetail_20' ) start [2025-04-10 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879380', 'tblTempUsageDetail_20' ) end [2025-04-10 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879380', 'tblTempVendorCDR_20' ) start [2025-04-10 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879380', 'tblTempVendorCDR_20' ) end [2025-04-10 20:39:18] Production.INFO: ProcessCDR(1,14879380,1,1,2) [2025-04-10 20:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879380', 'tblTempUsageDetail_20' ) start [2025-04-10 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879380', 'tblTempUsageDetail_20' ) end [2025-04-10 20:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 20:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 20:39:22] Production.INFO: ==29040== Releasing lock... [2025-04-10 20:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 20:39:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-10 20:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 17:40:06 [end_date_ymd] => 2025-04-10 20:40:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 17:40:06' and `end` < '2025-04-10 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-04-10 20:40:19] Production.INFO: count ==1507 [2025-04-10 20:40:19] Production.ERROR: pbx CDR StartTime 2025-04-10 17:40:06 - End Time 2025-04-10 20:40:06 [2025-04-10 20:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879386', 'tblTempUsageDetail_20' ) start [2025-04-10 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879386', 'tblTempUsageDetail_20' ) end [2025-04-10 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879386', 'tblTempVendorCDR_20' ) start [2025-04-10 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879386', 'tblTempVendorCDR_20' ) end [2025-04-10 20:40:19] Production.INFO: ProcessCDR(1,14879386,1,1,2) [2025-04-10 20:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879386', 'tblTempUsageDetail_20' ) start [2025-04-10 20:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879386', 'tblTempUsageDetail_20' ) end [2025-04-10 20:40:25] Production.ERROR: pbx prc_insertCDR start [2025-04-10 20:40:25] Production.ERROR: pbx prc_insertCDR end [2025-04-10 20:40:25] Production.INFO: ==29118== Releasing lock... [2025-04-10 20:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 20:40:25] Production.INFO: 39 MB #Memory Used# [2025-04-10 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 17:41:05 [end_date_ymd] => 2025-04-10 20:41:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 17:41:05' and `end` < '2025-04-10 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-04-10 20:41:18] Production.INFO: count ==1452 [2025-04-10 20:41:18] Production.ERROR: pbx CDR StartTime 2025-04-10 17:41:05 - End Time 2025-04-10 20:41:05 [2025-04-10 20:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879391', 'tblTempUsageDetail_20' ) start [2025-04-10 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879391', 'tblTempUsageDetail_20' ) end [2025-04-10 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879391', 'tblTempVendorCDR_20' ) start [2025-04-10 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879391', 'tblTempVendorCDR_20' ) end [2025-04-10 20:41:18] Production.INFO: ProcessCDR(1,14879391,1,1,2) [2025-04-10 20:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879391', 'tblTempUsageDetail_20' ) start [2025-04-10 20:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879391', 'tblTempUsageDetail_20' ) end [2025-04-10 20:41:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 20:41:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 20:41:23] Production.INFO: ==29194== Releasing lock... [2025-04-10 20:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 20:41:23] Production.INFO: 38.5 MB #Memory Used# [2025-04-10 20:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 17:42:06 [end_date_ymd] => 2025-04-10 20:42:06 [RateCDR] => 1 ) [2025-04-10 20:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 17:42:06' and `end` < '2025-04-10 20:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 20:42:19] Production.INFO: count ==1450 [2025-04-10 20:42:19] Production.ERROR: pbx CDR StartTime 2025-04-10 17:42:06 - End Time 2025-04-10 20:42:06 [2025-04-10 20:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879396', 'tblTempUsageDetail_20' ) start [2025-04-10 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879396', 'tblTempUsageDetail_20' ) end [2025-04-10 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879396', 'tblTempVendorCDR_20' ) start [2025-04-10 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879396', 'tblTempVendorCDR_20' ) end [2025-04-10 20:42:19] Production.INFO: ProcessCDR(1,14879396,1,1,2) [2025-04-10 20:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879396', 'tblTempUsageDetail_20' ) start [2025-04-10 20:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879396', 'tblTempUsageDetail_20' ) end [2025-04-10 20:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 20:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 20:42:23] Production.INFO: ==29266== Releasing lock... [2025-04-10 20:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 20:42:23] Production.INFO: 38.5 MB #Memory Used# [2025-04-10 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 17:43:05 [end_date_ymd] => 2025-04-10 20:43:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 17:43:05' and `end` < '2025-04-10 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-04-10 20:43:18] Production.INFO: count ==1447 [2025-04-10 20:43:18] Production.ERROR: pbx CDR StartTime 2025-04-10 17:43:05 - End Time 2025-04-10 20:43:05 [2025-04-10 20:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879401', 'tblTempUsageDetail_20' ) start [2025-04-10 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879401', 'tblTempUsageDetail_20' ) end [2025-04-10 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879401', 'tblTempVendorCDR_20' ) start [2025-04-10 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879401', 'tblTempVendorCDR_20' ) end [2025-04-10 20:43:18] Production.INFO: ProcessCDR(1,14879401,1,1,2) [2025-04-10 20:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879401', 'tblTempUsageDetail_20' ) start [2025-04-10 20:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879401', 'tblTempUsageDetail_20' ) end [2025-04-10 20:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 20:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 20:43:21] Production.INFO: ==29337== Releasing lock... [2025-04-10 20:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 20:43:21] Production.INFO: 38.5 MB #Memory Used# [2025-04-10 20:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 17:44:05 [end_date_ymd] => 2025-04-10 20:44:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 17:44:05' and `end` < '2025-04-10 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-04-10 20:44:18] Production.INFO: count ==1445 [2025-04-10 20:44:18] Production.ERROR: pbx CDR StartTime 2025-04-10 17:44:05 - End Time 2025-04-10 20:44:05 [2025-04-10 20:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879406', 'tblTempUsageDetail_20' ) start [2025-04-10 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879406', 'tblTempUsageDetail_20' ) end [2025-04-10 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879406', 'tblTempVendorCDR_20' ) start [2025-04-10 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879406', 'tblTempVendorCDR_20' ) end [2025-04-10 20:44:18] Production.INFO: ProcessCDR(1,14879406,1,1,2) [2025-04-10 20:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879406', 'tblTempUsageDetail_20' ) start [2025-04-10 20:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879406', 'tblTempUsageDetail_20' ) end [2025-04-10 20:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 20:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 20:44:21] Production.INFO: ==29409== Releasing lock... [2025-04-10 20:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 20:44:21] Production.INFO: 38.5 MB #Memory Used# [2025-04-10 20:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 17:45:04 [end_date_ymd] => 2025-04-10 20:45:04 [RateCDR] => 1 ) [2025-04-10 20:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 17:45:04' and `end` < '2025-04-10 20:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 20:45:18] Production.INFO: count ==1435 [2025-04-10 20:45:18] Production.ERROR: pbx CDR StartTime 2025-04-10 17:45:04 - End Time 2025-04-10 20:45:04 [2025-04-10 20:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879411', 'tblTempUsageDetail_20' ) start [2025-04-10 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879411', 'tblTempUsageDetail_20' ) end [2025-04-10 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879411', 'tblTempVendorCDR_20' ) start [2025-04-10 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879411', 'tblTempVendorCDR_20' ) end [2025-04-10 20:45:18] Production.INFO: ProcessCDR(1,14879411,1,1,2) [2025-04-10 20:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879411', 'tblTempUsageDetail_20' ) start [2025-04-10 20:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879411', 'tblTempUsageDetail_20' ) end [2025-04-10 20:45:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 20:45:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 20:45:23] Production.INFO: ==29479== Releasing lock... [2025-04-10 20:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 20:45:23] Production.INFO: 38.25 MB #Memory Used# [2025-04-10 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 17:46:05 [end_date_ymd] => 2025-04-10 20:46:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 17:46:05' and `end` < '2025-04-10 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-04-10 20:46:18] Production.INFO: count ==1412 [2025-04-10 20:46:19] Production.ERROR: pbx CDR StartTime 2025-04-10 17:46:05 - End Time 2025-04-10 20:46:05 [2025-04-10 20:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879416', 'tblTempUsageDetail_20' ) start [2025-04-10 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879416', 'tblTempUsageDetail_20' ) end [2025-04-10 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879416', 'tblTempVendorCDR_20' ) start [2025-04-10 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879416', 'tblTempVendorCDR_20' ) end [2025-04-10 20:46:19] Production.INFO: ProcessCDR(1,14879416,1,1,2) [2025-04-10 20:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879416', 'tblTempUsageDetail_20' ) start [2025-04-10 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879416', 'tblTempUsageDetail_20' ) end [2025-04-10 20:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 20:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 20:46:22] Production.INFO: ==29553== Releasing lock... [2025-04-10 20:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 20:46:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-10 20:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 17:47:05 [end_date_ymd] => 2025-04-10 20:47:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 17:47:05' and `end` < '2025-04-10 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-04-10 20:47:18] Production.INFO: count ==1400 [2025-04-10 20:47:18] Production.ERROR: pbx CDR StartTime 2025-04-10 17:47:05 - End Time 2025-04-10 20:47:05 [2025-04-10 20:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879421', 'tblTempUsageDetail_20' ) start [2025-04-10 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879421', 'tblTempUsageDetail_20' ) end [2025-04-10 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879421', 'tblTempVendorCDR_20' ) start [2025-04-10 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879421', 'tblTempVendorCDR_20' ) end [2025-04-10 20:47:18] Production.INFO: ProcessCDR(1,14879421,1,1,2) [2025-04-10 20:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879421', 'tblTempUsageDetail_20' ) start [2025-04-10 20:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879421', 'tblTempUsageDetail_20' ) end [2025-04-10 20:47:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 20:47:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 20:47:23] Production.INFO: ==29621== Releasing lock... [2025-04-10 20:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 20:47:23] Production.INFO: 38 MB #Memory Used# [2025-04-10 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 17:48:05 [end_date_ymd] => 2025-04-10 20:48:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 17:48:05' and `end` < '2025-04-10 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-04-10 20:48:18] Production.INFO: count ==1395 [2025-04-10 20:48:18] Production.ERROR: pbx CDR StartTime 2025-04-10 17:48:05 - End Time 2025-04-10 20:48:05 [2025-04-10 20:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879426', 'tblTempUsageDetail_20' ) start [2025-04-10 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879426', 'tblTempUsageDetail_20' ) end [2025-04-10 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879426', 'tblTempVendorCDR_20' ) start [2025-04-10 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879426', 'tblTempVendorCDR_20' ) end [2025-04-10 20:48:18] Production.INFO: ProcessCDR(1,14879426,1,1,2) [2025-04-10 20:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879426', 'tblTempUsageDetail_20' ) start [2025-04-10 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879426', 'tblTempUsageDetail_20' ) end [2025-04-10 20:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 20:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 20:48:22] Production.INFO: ==29733== Releasing lock... [2025-04-10 20:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 20:48:22] Production.INFO: 38 MB #Memory Used# [2025-04-10 20:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 17:49:04 [end_date_ymd] => 2025-04-10 20:49:04 [RateCDR] => 1 ) [2025-04-10 20: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-04-10 17:49:04' and `end` < '2025-04-10 20: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-04-10 20:49:17] Production.INFO: count ==1389 [2025-04-10 20:49:17] Production.ERROR: pbx CDR StartTime 2025-04-10 17:49:04 - End Time 2025-04-10 20:49:04 [2025-04-10 20:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 20:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879431', 'tblTempUsageDetail_20' ) start [2025-04-10 20:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879431', 'tblTempUsageDetail_20' ) end [2025-04-10 20:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879431', 'tblTempVendorCDR_20' ) start [2025-04-10 20:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879431', 'tblTempVendorCDR_20' ) end [2025-04-10 20:49:17] Production.INFO: ProcessCDR(1,14879431,1,1,2) [2025-04-10 20:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879431', 'tblTempUsageDetail_20' ) start [2025-04-10 20:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879431', 'tblTempUsageDetail_20' ) end [2025-04-10 20:49:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 20:49:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 20:49:23] Production.INFO: ==29805== Releasing lock... [2025-04-10 20:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 20:49:23] Production.INFO: 38 MB #Memory Used# [2025-04-10 20:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 17:50:06 [end_date_ymd] => 2025-04-10 20:50:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 17:50:06' and `end` < '2025-04-10 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-04-10 20:50:19] Production.INFO: count ==1390 [2025-04-10 20:50:19] Production.ERROR: pbx CDR StartTime 2025-04-10 17:50:06 - End Time 2025-04-10 20:50:06 [2025-04-10 20:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879437', 'tblTempUsageDetail_20' ) start [2025-04-10 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879437', 'tblTempUsageDetail_20' ) end [2025-04-10 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879437', 'tblTempVendorCDR_20' ) start [2025-04-10 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879437', 'tblTempVendorCDR_20' ) end [2025-04-10 20:50:19] Production.INFO: ProcessCDR(1,14879437,1,1,2) [2025-04-10 20:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879437', 'tblTempUsageDetail_20' ) start [2025-04-10 20:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879437', 'tblTempUsageDetail_20' ) end [2025-04-10 20:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 20:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 20:50:22] Production.INFO: ==29878== Releasing lock... [2025-04-10 20:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 20:50:22] Production.INFO: 38 MB #Memory Used# [2025-04-10 20:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 17:51:06 [end_date_ymd] => 2025-04-10 20:51:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 17:51:06' and `end` < '2025-04-10 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-04-10 20:51:19] Production.INFO: count ==1327 [2025-04-10 20:51:19] Production.ERROR: pbx CDR StartTime 2025-04-10 17:51:06 - End Time 2025-04-10 20:51:06 [2025-04-10 20:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879442', 'tblTempUsageDetail_20' ) start [2025-04-10 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879442', 'tblTempUsageDetail_20' ) end [2025-04-10 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879442', 'tblTempVendorCDR_20' ) start [2025-04-10 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879442', 'tblTempVendorCDR_20' ) end [2025-04-10 20:51:19] Production.INFO: ProcessCDR(1,14879442,1,1,2) [2025-04-10 20:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879442', 'tblTempUsageDetail_20' ) start [2025-04-10 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879442', 'tblTempUsageDetail_20' ) end [2025-04-10 20:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 20:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 20:51:22] Production.INFO: ==29952== Releasing lock... [2025-04-10 20:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 20:51:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-10 20:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 17:52:05 [end_date_ymd] => 2025-04-10 20:52:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 17:52:05' and `end` < '2025-04-10 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-04-10 20:52:18] Production.INFO: count ==1325 [2025-04-10 20:52:18] Production.ERROR: pbx CDR StartTime 2025-04-10 17:52:05 - End Time 2025-04-10 20:52:05 [2025-04-10 20:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879447', 'tblTempUsageDetail_20' ) start [2025-04-10 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879447', 'tblTempUsageDetail_20' ) end [2025-04-10 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879447', 'tblTempVendorCDR_20' ) start [2025-04-10 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879447', 'tblTempVendorCDR_20' ) end [2025-04-10 20:52:18] Production.INFO: ProcessCDR(1,14879447,1,1,2) [2025-04-10 20:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879447', 'tblTempUsageDetail_20' ) start [2025-04-10 20:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879447', 'tblTempUsageDetail_20' ) end [2025-04-10 20:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 20:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 20:52:22] Production.INFO: ==30021== Releasing lock... [2025-04-10 20:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 20:52:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-10 20:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 17:53:06 [end_date_ymd] => 2025-04-10 20:53:06 [RateCDR] => 1 ) [2025-04-10 20:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 17:53:06' and `end` < '2025-04-10 20:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 20:53:19] Production.INFO: count ==1321 [2025-04-10 20:53:19] Production.ERROR: pbx CDR StartTime 2025-04-10 17:53:06 - End Time 2025-04-10 20:53:06 [2025-04-10 20:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879452', 'tblTempUsageDetail_20' ) start [2025-04-10 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879452', 'tblTempUsageDetail_20' ) end [2025-04-10 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879452', 'tblTempVendorCDR_20' ) start [2025-04-10 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879452', 'tblTempVendorCDR_20' ) end [2025-04-10 20:53:19] Production.INFO: ProcessCDR(1,14879452,1,1,2) [2025-04-10 20:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879452', 'tblTempUsageDetail_20' ) start [2025-04-10 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879452', 'tblTempUsageDetail_20' ) end [2025-04-10 20:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 20:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 20:53:22] Production.INFO: ==30098== Releasing lock... [2025-04-10 20:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 20:53:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-10 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 17:54:05 [end_date_ymd] => 2025-04-10 20:54:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 17:54:05' and `end` < '2025-04-10 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-04-10 20:54:18] Production.INFO: count ==1320 [2025-04-10 20:54:18] Production.ERROR: pbx CDR StartTime 2025-04-10 17:54:05 - End Time 2025-04-10 20:54:05 [2025-04-10 20:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879457', 'tblTempUsageDetail_20' ) start [2025-04-10 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879457', 'tblTempUsageDetail_20' ) end [2025-04-10 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879457', 'tblTempVendorCDR_20' ) start [2025-04-10 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879457', 'tblTempVendorCDR_20' ) end [2025-04-10 20:54:18] Production.INFO: ProcessCDR(1,14879457,1,1,2) [2025-04-10 20:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879457', 'tblTempUsageDetail_20' ) start [2025-04-10 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879457', 'tblTempUsageDetail_20' ) end [2025-04-10 20:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 20:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 20:54:22] Production.INFO: ==30174== Releasing lock... [2025-04-10 20:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 20:54:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-10 20:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 17:55:06 [end_date_ymd] => 2025-04-10 20:55:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 17:55:06' and `end` < '2025-04-10 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-04-10 20:55:19] Production.INFO: count ==1315 [2025-04-10 20:55:19] Production.ERROR: pbx CDR StartTime 2025-04-10 17:55:06 - End Time 2025-04-10 20:55:06 [2025-04-10 20:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879462', 'tblTempUsageDetail_20' ) start [2025-04-10 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879462', 'tblTempUsageDetail_20' ) end [2025-04-10 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879462', 'tblTempVendorCDR_20' ) start [2025-04-10 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879462', 'tblTempVendorCDR_20' ) end [2025-04-10 20:55:19] Production.INFO: ProcessCDR(1,14879462,1,1,2) [2025-04-10 20:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879462', 'tblTempUsageDetail_20' ) start [2025-04-10 20:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879462', 'tblTempUsageDetail_20' ) end [2025-04-10 20:55:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 20:55:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 20:55:23] Production.INFO: ==30248== Releasing lock... [2025-04-10 20:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 20:55:23] Production.INFO: 37.5 MB #Memory Used# [2025-04-10 20:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 17:56:06 [end_date_ymd] => 2025-04-10 20:56:06 [RateCDR] => 1 ) [2025-04-10 20: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-04-10 17:56:06' and `end` < '2025-04-10 20: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-04-10 20:56:19] Production.INFO: count ==1298 [2025-04-10 20:56:19] Production.ERROR: pbx CDR StartTime 2025-04-10 17:56:06 - End Time 2025-04-10 20:56:06 [2025-04-10 20:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879467', 'tblTempUsageDetail_20' ) start [2025-04-10 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879467', 'tblTempUsageDetail_20' ) end [2025-04-10 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879467', 'tblTempVendorCDR_20' ) start [2025-04-10 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879467', 'tblTempVendorCDR_20' ) end [2025-04-10 20:56:19] Production.INFO: ProcessCDR(1,14879467,1,1,2) [2025-04-10 20:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879467', 'tblTempUsageDetail_20' ) start [2025-04-10 20:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879467', 'tblTempUsageDetail_20' ) end [2025-04-10 20:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 20:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 20:56:22] Production.INFO: ==30320== Releasing lock... [2025-04-10 20:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 20:56:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-10 20:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 17:57:06 [end_date_ymd] => 2025-04-10 20:57:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 17:57:06' and `end` < '2025-04-10 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-04-10 20:57:19] Production.INFO: count ==1289 [2025-04-10 20:57:19] Production.ERROR: pbx CDR StartTime 2025-04-10 17:57:06 - End Time 2025-04-10 20:57:06 [2025-04-10 20:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879472', 'tblTempUsageDetail_20' ) start [2025-04-10 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879472', 'tblTempUsageDetail_20' ) end [2025-04-10 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879472', 'tblTempVendorCDR_20' ) start [2025-04-10 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879472', 'tblTempVendorCDR_20' ) end [2025-04-10 20:57:19] Production.INFO: ProcessCDR(1,14879472,1,1,2) [2025-04-10 20:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879472', 'tblTempUsageDetail_20' ) start [2025-04-10 20:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879472', 'tblTempUsageDetail_20' ) end [2025-04-10 20:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 20:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 20:57:22] Production.INFO: ==30389== Releasing lock... [2025-04-10 20:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 20:57:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-10 20:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 17:58:05 [end_date_ymd] => 2025-04-10 20:58:05 [RateCDR] => 1 ) [2025-04-10 20: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-04-10 17:58:05' and `end` < '2025-04-10 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-04-10 20:58:18] Production.INFO: count ==1288 [2025-04-10 20:58:19] Production.ERROR: pbx CDR StartTime 2025-04-10 17:58:05 - End Time 2025-04-10 20:58:05 [2025-04-10 20:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879477', 'tblTempUsageDetail_20' ) start [2025-04-10 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879477', 'tblTempUsageDetail_20' ) end [2025-04-10 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879477', 'tblTempVendorCDR_20' ) start [2025-04-10 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879477', 'tblTempVendorCDR_20' ) end [2025-04-10 20:58:19] Production.INFO: ProcessCDR(1,14879477,1,1,2) [2025-04-10 20:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879477', 'tblTempUsageDetail_20' ) start [2025-04-10 20:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879477', 'tblTempUsageDetail_20' ) end [2025-04-10 20:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 20:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 20:58:22] Production.INFO: ==30461== Releasing lock... [2025-04-10 20:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 20:58:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-10 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 17:59:05 [end_date_ymd] => 2025-04-10 20:59:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 17:59:05' and `end` < '2025-04-10 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-04-10 20:59:18] Production.INFO: count ==1270 [2025-04-10 20:59:18] Production.ERROR: pbx CDR StartTime 2025-04-10 17:59:05 - End Time 2025-04-10 20:59:05 [2025-04-10 20:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879482', 'tblTempUsageDetail_20' ) start [2025-04-10 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879482', 'tblTempUsageDetail_20' ) end [2025-04-10 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879482', 'tblTempVendorCDR_20' ) start [2025-04-10 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879482', 'tblTempVendorCDR_20' ) end [2025-04-10 20:59:18] Production.INFO: ProcessCDR(1,14879482,1,1,2) [2025-04-10 20:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 20:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 20:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879482', 'tblTempUsageDetail_20' ) start [2025-04-10 20:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879482', 'tblTempUsageDetail_20' ) end [2025-04-10 20:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 20:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 20:59:22] Production.INFO: ==30534== Releasing lock... [2025-04-10 20:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 20:59:22] Production.INFO: 37 MB #Memory Used# [2025-04-10 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 18:00:06 [end_date_ymd] => 2025-04-10 21:00:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 18:00:06' and `end` < '2025-04-10 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-04-10 21:00:19] Production.INFO: count ==1256 [2025-04-10 21:00:19] Production.ERROR: pbx CDR StartTime 2025-04-10 18:00:06 - End Time 2025-04-10 21:00:06 [2025-04-10 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879487', 'tblTempUsageDetail_20' ) start [2025-04-10 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879487', 'tblTempUsageDetail_20' ) end [2025-04-10 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879487', 'tblTempVendorCDR_20' ) start [2025-04-10 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879487', 'tblTempVendorCDR_20' ) end [2025-04-10 21:00:19] Production.INFO: ProcessCDR(1,14879487,1,1,2) [2025-04-10 21:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879487', 'tblTempUsageDetail_20' ) start [2025-04-10 21:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879487', 'tblTempUsageDetail_20' ) end [2025-04-10 21:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 21:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 21:00:23] Production.INFO: ==30606== Releasing lock... [2025-04-10 21:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 21:00:23] Production.INFO: 37 MB #Memory Used# [2025-04-10 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 18:01:05 [end_date_ymd] => 2025-04-10 21:01:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 18:01:05' and `end` < '2025-04-10 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-04-10 21:01:18] Production.INFO: count ==1193 [2025-04-10 21:01:18] Production.ERROR: pbx CDR StartTime 2025-04-10 18:01:05 - End Time 2025-04-10 21:01:05 [2025-04-10 21:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879493', 'tblTempUsageDetail_20' ) start [2025-04-10 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879493', 'tblTempUsageDetail_20' ) end [2025-04-10 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879493', 'tblTempVendorCDR_20' ) start [2025-04-10 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879493', 'tblTempVendorCDR_20' ) end [2025-04-10 21:01:18] Production.INFO: ProcessCDR(1,14879493,1,1,2) [2025-04-10 21:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879493', 'tblTempUsageDetail_20' ) start [2025-04-10 21:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879493', 'tblTempUsageDetail_20' ) end [2025-04-10 21:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 21:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 21:01:21] Production.INFO: ==30695== Releasing lock... [2025-04-10 21:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 21:01:21] Production.INFO: 36.5 MB #Memory Used# [2025-04-10 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 18:02:05 [end_date_ymd] => 2025-04-10 21:02:05 [RateCDR] => 1 ) [2025-04-10 21:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 18:02:05' and `end` < '2025-04-10 21:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 21:02:18] Production.INFO: count ==1187 [2025-04-10 21:02:18] Production.ERROR: pbx CDR StartTime 2025-04-10 18:02:05 - End Time 2025-04-10 21:02:05 [2025-04-10 21:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879498', 'tblTempUsageDetail_20' ) start [2025-04-10 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879498', 'tblTempUsageDetail_20' ) end [2025-04-10 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879498', 'tblTempVendorCDR_20' ) start [2025-04-10 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879498', 'tblTempVendorCDR_20' ) end [2025-04-10 21:02:18] Production.INFO: ProcessCDR(1,14879498,1,1,2) [2025-04-10 21:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879498', 'tblTempUsageDetail_20' ) start [2025-04-10 21:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879498', 'tblTempUsageDetail_20' ) end [2025-04-10 21:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 21:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 21:02:22] Production.INFO: ==30766== Releasing lock... [2025-04-10 21:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 21:02:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-10 21:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 18:03:04 [end_date_ymd] => 2025-04-10 21:03:04 [RateCDR] => 1 ) [2025-04-10 21:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 18:03:04' and `end` < '2025-04-10 21:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 21:03:17] Production.INFO: count ==1187 [2025-04-10 21:03:17] Production.ERROR: pbx CDR StartTime 2025-04-10 18:03:04 - End Time 2025-04-10 21:03:04 [2025-04-10 21:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 21:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879503', 'tblTempUsageDetail_20' ) start [2025-04-10 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879503', 'tblTempUsageDetail_20' ) end [2025-04-10 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879503', 'tblTempVendorCDR_20' ) start [2025-04-10 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879503', 'tblTempVendorCDR_20' ) end [2025-04-10 21:03:18] Production.INFO: ProcessCDR(1,14879503,1,1,2) [2025-04-10 21:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879503', 'tblTempUsageDetail_20' ) start [2025-04-10 21:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879503', 'tblTempUsageDetail_20' ) end [2025-04-10 21:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 21:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 21:03:21] Production.INFO: ==30876== Releasing lock... [2025-04-10 21:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 21:03:21] Production.INFO: 36.5 MB #Memory Used# [2025-04-10 21:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 18:04:05 [end_date_ymd] => 2025-04-10 21:04:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 18:04:05' and `end` < '2025-04-10 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-04-10 21:04:18] Production.INFO: count ==1180 [2025-04-10 21:04:18] Production.ERROR: pbx CDR StartTime 2025-04-10 18:04:05 - End Time 2025-04-10 21:04:05 [2025-04-10 21:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879508', 'tblTempUsageDetail_20' ) start [2025-04-10 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879508', 'tblTempUsageDetail_20' ) end [2025-04-10 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879508', 'tblTempVendorCDR_20' ) start [2025-04-10 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879508', 'tblTempVendorCDR_20' ) end [2025-04-10 21:04:18] Production.INFO: ProcessCDR(1,14879508,1,1,2) [2025-04-10 21:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879508', 'tblTempUsageDetail_20' ) start [2025-04-10 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879508', 'tblTempUsageDetail_20' ) end [2025-04-10 21:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 21:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 21:04:22] Production.INFO: ==30947== Releasing lock... [2025-04-10 21:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 21:04:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-10 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 18:05:05 [end_date_ymd] => 2025-04-10 21:05:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 18:05:05' and `end` < '2025-04-10 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-04-10 21:05:17] Production.INFO: count ==1179 [2025-04-10 21:05:18] Production.ERROR: pbx CDR StartTime 2025-04-10 18:05:05 - End Time 2025-04-10 21:05:05 [2025-04-10 21:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879513', 'tblTempUsageDetail_20' ) start [2025-04-10 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879513', 'tblTempUsageDetail_20' ) end [2025-04-10 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879513', 'tblTempVendorCDR_20' ) start [2025-04-10 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879513', 'tblTempVendorCDR_20' ) end [2025-04-10 21:05:18] Production.INFO: ProcessCDR(1,14879513,1,1,2) [2025-04-10 21:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879513', 'tblTempUsageDetail_20' ) start [2025-04-10 21:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879513', 'tblTempUsageDetail_20' ) end [2025-04-10 21:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 21:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 21:05:21] Production.INFO: ==31017== Releasing lock... [2025-04-10 21:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 21:05:21] Production.INFO: 36.5 MB #Memory Used# [2025-04-10 21:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 18:06:06 [end_date_ymd] => 2025-04-10 21:06:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 18:06:06' and `end` < '2025-04-10 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-04-10 21:06:19] Production.INFO: count ==1177 [2025-04-10 21:06:19] Production.ERROR: pbx CDR StartTime 2025-04-10 18:06:06 - End Time 2025-04-10 21:06:06 [2025-04-10 21:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879518', 'tblTempUsageDetail_20' ) start [2025-04-10 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879518', 'tblTempUsageDetail_20' ) end [2025-04-10 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879518', 'tblTempVendorCDR_20' ) start [2025-04-10 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879518', 'tblTempVendorCDR_20' ) end [2025-04-10 21:06:19] Production.INFO: ProcessCDR(1,14879518,1,1,2) [2025-04-10 21:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879518', 'tblTempUsageDetail_20' ) start [2025-04-10 21:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879518', 'tblTempUsageDetail_20' ) end [2025-04-10 21:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 21:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 21:06:22] Production.INFO: ==31093== Releasing lock... [2025-04-10 21:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 21:06:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-10 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 18:07:05 [end_date_ymd] => 2025-04-10 21:07:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 18:07:05' and `end` < '2025-04-10 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-04-10 21:07:18] Production.INFO: count ==1176 [2025-04-10 21:07:18] Production.ERROR: pbx CDR StartTime 2025-04-10 18:07:05 - End Time 2025-04-10 21:07:05 [2025-04-10 21:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879523', 'tblTempUsageDetail_20' ) start [2025-04-10 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879523', 'tblTempUsageDetail_20' ) end [2025-04-10 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879523', 'tblTempVendorCDR_20' ) start [2025-04-10 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879523', 'tblTempVendorCDR_20' ) end [2025-04-10 21:07:18] Production.INFO: ProcessCDR(1,14879523,1,1,2) [2025-04-10 21:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879523', 'tblTempUsageDetail_20' ) start [2025-04-10 21:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879523', 'tblTempUsageDetail_20' ) end [2025-04-10 21:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 21:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 21:07:21] Production.INFO: ==31166== Releasing lock... [2025-04-10 21:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 21:07:21] Production.INFO: 36.5 MB #Memory Used# [2025-04-10 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 18:08:05 [end_date_ymd] => 2025-04-10 21:08:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 18:08:05' and `end` < '2025-04-10 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-04-10 21:08:18] Production.INFO: count ==1174 [2025-04-10 21:08:18] Production.ERROR: pbx CDR StartTime 2025-04-10 18:08:05 - End Time 2025-04-10 21:08:05 [2025-04-10 21:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879528', 'tblTempUsageDetail_20' ) start [2025-04-10 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879528', 'tblTempUsageDetail_20' ) end [2025-04-10 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879528', 'tblTempVendorCDR_20' ) start [2025-04-10 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879528', 'tblTempVendorCDR_20' ) end [2025-04-10 21:08:18] Production.INFO: ProcessCDR(1,14879528,1,1,2) [2025-04-10 21:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879528', 'tblTempUsageDetail_20' ) start [2025-04-10 21:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879528', 'tblTempUsageDetail_20' ) end [2025-04-10 21:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 21:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 21:08:21] Production.INFO: ==31236== Releasing lock... [2025-04-10 21:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 21:08:21] Production.INFO: 36.5 MB #Memory Used# [2025-04-10 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 18:09:05 [end_date_ymd] => 2025-04-10 21:09:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 18:09:05' and `end` < '2025-04-10 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-04-10 21:09:18] Production.INFO: count ==1168 [2025-04-10 21:09:18] Production.ERROR: pbx CDR StartTime 2025-04-10 18:09:05 - End Time 2025-04-10 21:09:05 [2025-04-10 21:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879533', 'tblTempUsageDetail_20' ) start [2025-04-10 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879533', 'tblTempUsageDetail_20' ) end [2025-04-10 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879533', 'tblTempVendorCDR_20' ) start [2025-04-10 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879533', 'tblTempVendorCDR_20' ) end [2025-04-10 21:09:18] Production.INFO: ProcessCDR(1,14879533,1,1,2) [2025-04-10 21:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879533', 'tblTempUsageDetail_20' ) start [2025-04-10 21:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879533', 'tblTempUsageDetail_20' ) end [2025-04-10 21:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 21:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 21:09:22] Production.INFO: ==31310== Releasing lock... [2025-04-10 21:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 21:09:22] Production.INFO: 36.25 MB #Memory Used# [2025-04-10 21:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 18:10:06 [end_date_ymd] => 2025-04-10 21:10:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 18:10:06' and `end` < '2025-04-10 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-04-10 21:10:19] Production.INFO: count ==1165 [2025-04-10 21:10:19] Production.ERROR: pbx CDR StartTime 2025-04-10 18:10:06 - End Time 2025-04-10 21:10:06 [2025-04-10 21:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879539', 'tblTempUsageDetail_20' ) start [2025-04-10 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879539', 'tblTempUsageDetail_20' ) end [2025-04-10 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879539', 'tblTempVendorCDR_20' ) start [2025-04-10 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879539', 'tblTempVendorCDR_20' ) end [2025-04-10 21:10:19] Production.INFO: ProcessCDR(1,14879539,1,1,2) [2025-04-10 21:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879539', 'tblTempUsageDetail_20' ) start [2025-04-10 21:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879539', 'tblTempUsageDetail_20' ) end [2025-04-10 21:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 21:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 21:10:22] Production.INFO: ==31388== Releasing lock... [2025-04-10 21:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 21:10:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-10 21:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 18:11:06 [end_date_ymd] => 2025-04-10 21:11:06 [RateCDR] => 1 ) [2025-04-10 21: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-04-10 18:11:06' and `end` < '2025-04-10 21: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-04-10 21:11:19] Production.INFO: count ==1103 [2025-04-10 21:11:19] Production.ERROR: pbx CDR StartTime 2025-04-10 18:11:06 - End Time 2025-04-10 21:11:06 [2025-04-10 21:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879544', 'tblTempUsageDetail_20' ) start [2025-04-10 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879544', 'tblTempUsageDetail_20' ) end [2025-04-10 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879544', 'tblTempVendorCDR_20' ) start [2025-04-10 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879544', 'tblTempVendorCDR_20' ) end [2025-04-10 21:11:19] Production.INFO: ProcessCDR(1,14879544,1,1,2) [2025-04-10 21:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879544', 'tblTempUsageDetail_20' ) start [2025-04-10 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879544', 'tblTempUsageDetail_20' ) end [2025-04-10 21:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 21:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 21:11:22] Production.INFO: ==31462== Releasing lock... [2025-04-10 21:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 21:11:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-10 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 18:12:05 [end_date_ymd] => 2025-04-10 21:12:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 18:12:05' and `end` < '2025-04-10 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-04-10 21:12:18] Production.INFO: count ==1102 [2025-04-10 21:12:19] Production.ERROR: pbx CDR StartTime 2025-04-10 18:12:05 - End Time 2025-04-10 21:12:05 [2025-04-10 21:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879549', 'tblTempUsageDetail_20' ) start [2025-04-10 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879549', 'tblTempUsageDetail_20' ) end [2025-04-10 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879549', 'tblTempVendorCDR_20' ) start [2025-04-10 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879549', 'tblTempVendorCDR_20' ) end [2025-04-10 21:12:19] Production.INFO: ProcessCDR(1,14879549,1,1,2) [2025-04-10 21:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879549', 'tblTempUsageDetail_20' ) start [2025-04-10 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879549', 'tblTempUsageDetail_20' ) end [2025-04-10 21:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 21:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 21:12:22] Production.INFO: ==31532== Releasing lock... [2025-04-10 21:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 21:12:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-10 21:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 18:13:05 [end_date_ymd] => 2025-04-10 21:13:05 [RateCDR] => 1 ) [2025-04-10 21:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 18:13:05' and `end` < '2025-04-10 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-04-10 21:13:18] Production.INFO: count ==1102 [2025-04-10 21:13:19] Production.ERROR: pbx CDR StartTime 2025-04-10 18:13:05 - End Time 2025-04-10 21:13:05 [2025-04-10 21:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879554', 'tblTempUsageDetail_20' ) start [2025-04-10 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879554', 'tblTempUsageDetail_20' ) end [2025-04-10 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879554', 'tblTempVendorCDR_20' ) start [2025-04-10 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879554', 'tblTempVendorCDR_20' ) end [2025-04-10 21:13:19] Production.INFO: ProcessCDR(1,14879554,1,1,2) [2025-04-10 21:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879554', 'tblTempUsageDetail_20' ) start [2025-04-10 21:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879554', 'tblTempUsageDetail_20' ) end [2025-04-10 21:13:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 21:13:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 21:13:24] Production.INFO: ==31603== Releasing lock... [2025-04-10 21:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 21:13:24] Production.INFO: 35.75 MB #Memory Used# [2025-04-10 21:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 18:14:05 [end_date_ymd] => 2025-04-10 21:14:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 18:14:05' and `end` < '2025-04-10 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-04-10 21:14:18] Production.INFO: count ==1099 [2025-04-10 21:14:18] Production.ERROR: pbx CDR StartTime 2025-04-10 18:14:05 - End Time 2025-04-10 21:14:05 [2025-04-10 21:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879559', 'tblTempUsageDetail_20' ) start [2025-04-10 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879559', 'tblTempUsageDetail_20' ) end [2025-04-10 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879559', 'tblTempVendorCDR_20' ) start [2025-04-10 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879559', 'tblTempVendorCDR_20' ) end [2025-04-10 21:14:18] Production.INFO: ProcessCDR(1,14879559,1,1,2) [2025-04-10 21:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879559', 'tblTempUsageDetail_20' ) start [2025-04-10 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879559', 'tblTempUsageDetail_20' ) end [2025-04-10 21:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 21:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 21:14:22] Production.INFO: ==31674== Releasing lock... [2025-04-10 21:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 21:14:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-10 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 18:15:05 [end_date_ymd] => 2025-04-10 21:15:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 18:15:05' and `end` < '2025-04-10 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-04-10 21:15:18] Production.INFO: count ==1092 [2025-04-10 21:15:19] Production.ERROR: pbx CDR StartTime 2025-04-10 18:15:05 - End Time 2025-04-10 21:15:05 [2025-04-10 21:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879564', 'tblTempUsageDetail_20' ) start [2025-04-10 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879564', 'tblTempUsageDetail_20' ) end [2025-04-10 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879564', 'tblTempVendorCDR_20' ) start [2025-04-10 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879564', 'tblTempVendorCDR_20' ) end [2025-04-10 21:15:19] Production.INFO: ProcessCDR(1,14879564,1,1,2) [2025-04-10 21:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879564', 'tblTempUsageDetail_20' ) start [2025-04-10 21:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879564', 'tblTempUsageDetail_20' ) end [2025-04-10 21:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 21:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 21:15:22] Production.INFO: ==31743== Releasing lock... [2025-04-10 21:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 21:15:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-10 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 18:16:05 [end_date_ymd] => 2025-04-10 21:16:05 [RateCDR] => 1 ) [2025-04-10 21:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 18:16:05' and `end` < '2025-04-10 21:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 21:16:18] Production.INFO: count ==1095 [2025-04-10 21:16:18] Production.ERROR: pbx CDR StartTime 2025-04-10 18:16:05 - End Time 2025-04-10 21:16:05 [2025-04-10 21:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879569', 'tblTempUsageDetail_20' ) start [2025-04-10 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879569', 'tblTempUsageDetail_20' ) end [2025-04-10 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879569', 'tblTempVendorCDR_20' ) start [2025-04-10 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879569', 'tblTempVendorCDR_20' ) end [2025-04-10 21:16:18] Production.INFO: ProcessCDR(1,14879569,1,1,2) [2025-04-10 21:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879569', 'tblTempUsageDetail_20' ) start [2025-04-10 21:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879569', 'tblTempUsageDetail_20' ) end [2025-04-10 21:16:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 21:16:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 21:16:23] Production.INFO: ==31816== Releasing lock... [2025-04-10 21:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 21:16:23] Production.INFO: 35.75 MB #Memory Used# [2025-04-10 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 18:17:05 [end_date_ymd] => 2025-04-10 21:17:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 18:17:05' and `end` < '2025-04-10 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-04-10 21:17:18] Production.INFO: count ==1091 [2025-04-10 21:17:19] Production.ERROR: pbx CDR StartTime 2025-04-10 18:17:05 - End Time 2025-04-10 21:17:05 [2025-04-10 21:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879574', 'tblTempUsageDetail_20' ) start [2025-04-10 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879574', 'tblTempUsageDetail_20' ) end [2025-04-10 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879574', 'tblTempVendorCDR_20' ) start [2025-04-10 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879574', 'tblTempVendorCDR_20' ) end [2025-04-10 21:17:19] Production.INFO: ProcessCDR(1,14879574,1,1,2) [2025-04-10 21:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879574', 'tblTempUsageDetail_20' ) start [2025-04-10 21:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879574', 'tblTempUsageDetail_20' ) end [2025-04-10 21:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 21:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 21:17:22] Production.INFO: ==31888== Releasing lock... [2025-04-10 21:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 21:17:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-10 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 18:18:05 [end_date_ymd] => 2025-04-10 21:18:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 18:18:05' and `end` < '2025-04-10 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-04-10 21:18:18] Production.INFO: count ==1087 [2025-04-10 21:18:18] Production.ERROR: pbx CDR StartTime 2025-04-10 18:18:05 - End Time 2025-04-10 21:18:05 [2025-04-10 21:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879579', 'tblTempUsageDetail_20' ) start [2025-04-10 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879579', 'tblTempUsageDetail_20' ) end [2025-04-10 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879579', 'tblTempVendorCDR_20' ) start [2025-04-10 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879579', 'tblTempVendorCDR_20' ) end [2025-04-10 21:18:18] Production.INFO: ProcessCDR(1,14879579,1,1,2) [2025-04-10 21:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879579', 'tblTempUsageDetail_20' ) start [2025-04-10 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879579', 'tblTempUsageDetail_20' ) end [2025-04-10 21:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 21:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 21:18:22] Production.INFO: ==31970== Releasing lock... [2025-04-10 21:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 21:18:22] Production.INFO: 36 MB #Memory Used# [2025-04-10 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 18:19:05 [end_date_ymd] => 2025-04-10 21:19:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 18:19:05' and `end` < '2025-04-10 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-04-10 21:19:18] Production.INFO: count ==1086 [2025-04-10 21:19:19] Production.ERROR: pbx CDR StartTime 2025-04-10 18:19:05 - End Time 2025-04-10 21:19:05 [2025-04-10 21:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879584', 'tblTempUsageDetail_20' ) start [2025-04-10 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879584', 'tblTempUsageDetail_20' ) end [2025-04-10 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879584', 'tblTempVendorCDR_20' ) start [2025-04-10 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879584', 'tblTempVendorCDR_20' ) end [2025-04-10 21:19:19] Production.INFO: ProcessCDR(1,14879584,1,1,2) [2025-04-10 21:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879584', 'tblTempUsageDetail_20' ) start [2025-04-10 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879584', 'tblTempUsageDetail_20' ) end [2025-04-10 21:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 21:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 21:19:22] Production.INFO: ==32082== Releasing lock... [2025-04-10 21:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 21:19:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-10 21:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 18:20:05 [end_date_ymd] => 2025-04-10 21:20:05 [RateCDR] => 1 ) [2025-04-10 21:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 18:20:05' and `end` < '2025-04-10 21:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 21:20:18] Production.INFO: count ==1078 [2025-04-10 21:20:18] Production.ERROR: pbx CDR StartTime 2025-04-10 18:20:05 - End Time 2025-04-10 21:20:05 [2025-04-10 21:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879590', 'tblTempUsageDetail_20' ) start [2025-04-10 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879590', 'tblTempUsageDetail_20' ) end [2025-04-10 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879590', 'tblTempVendorCDR_20' ) start [2025-04-10 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879590', 'tblTempVendorCDR_20' ) end [2025-04-10 21:20:18] Production.INFO: ProcessCDR(1,14879590,1,1,2) [2025-04-10 21:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879590', 'tblTempUsageDetail_20' ) start [2025-04-10 21:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879590', 'tblTempUsageDetail_20' ) end [2025-04-10 21:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 21:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 21:20:22] Production.INFO: ==32159== Releasing lock... [2025-04-10 21:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 21:20:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-10 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 18:21:05 [end_date_ymd] => 2025-04-10 21:21:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 18:21:05' and `end` < '2025-04-10 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-04-10 21:21:18] Production.INFO: count ==1046 [2025-04-10 21:21:18] Production.ERROR: pbx CDR StartTime 2025-04-10 18:21:05 - End Time 2025-04-10 21:21:05 [2025-04-10 21:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879595', 'tblTempUsageDetail_20' ) start [2025-04-10 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879595', 'tblTempUsageDetail_20' ) end [2025-04-10 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879595', 'tblTempVendorCDR_20' ) start [2025-04-10 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879595', 'tblTempVendorCDR_20' ) end [2025-04-10 21:21:18] Production.INFO: ProcessCDR(1,14879595,1,1,2) [2025-04-10 21:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879595', 'tblTempUsageDetail_20' ) start [2025-04-10 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879595', 'tblTempUsageDetail_20' ) end [2025-04-10 21:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 21:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 21:21:22] Production.INFO: ==32235== Releasing lock... [2025-04-10 21:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 21:21:22] Production.INFO: 35.5 MB #Memory Used# [2025-04-10 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 18:22:05 [end_date_ymd] => 2025-04-10 21:22:05 [RateCDR] => 1 ) [2025-04-10 21:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 18:22:05' and `end` < '2025-04-10 21:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 21:22:18] Production.INFO: count ==1044 [2025-04-10 21:22:18] Production.ERROR: pbx CDR StartTime 2025-04-10 18:22:05 - End Time 2025-04-10 21:22:05 [2025-04-10 21:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879600', 'tblTempUsageDetail_20' ) start [2025-04-10 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879600', 'tblTempUsageDetail_20' ) end [2025-04-10 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879600', 'tblTempVendorCDR_20' ) start [2025-04-10 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879600', 'tblTempVendorCDR_20' ) end [2025-04-10 21:22:18] Production.INFO: ProcessCDR(1,14879600,1,1,2) [2025-04-10 21:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879600', 'tblTempUsageDetail_20' ) start [2025-04-10 21:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879600', 'tblTempUsageDetail_20' ) end [2025-04-10 21:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 21:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 21:22:22] Production.INFO: ==32306== Releasing lock... [2025-04-10 21:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 21:22:22] Production.INFO: 35.5 MB #Memory Used# [2025-04-10 21:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 18:23:05 [end_date_ymd] => 2025-04-10 21:23:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 18:23:05' and `end` < '2025-04-10 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-04-10 21:23:18] Production.INFO: count ==1041 [2025-04-10 21:23:18] Production.ERROR: pbx CDR StartTime 2025-04-10 18:23:05 - End Time 2025-04-10 21:23:05 [2025-04-10 21:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879605', 'tblTempUsageDetail_20' ) start [2025-04-10 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879605', 'tblTempUsageDetail_20' ) end [2025-04-10 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879605', 'tblTempVendorCDR_20' ) start [2025-04-10 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879605', 'tblTempVendorCDR_20' ) end [2025-04-10 21:23:18] Production.INFO: ProcessCDR(1,14879605,1,1,2) [2025-04-10 21:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879605', 'tblTempUsageDetail_20' ) start [2025-04-10 21:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879605', 'tblTempUsageDetail_20' ) end [2025-04-10 21:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 21:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 21:23:21] Production.INFO: ==32380== Releasing lock... [2025-04-10 21:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 21:23:21] Production.INFO: 35.5 MB #Memory Used# [2025-04-10 21:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 18:24:06 [end_date_ymd] => 2025-04-10 21:24:06 [RateCDR] => 1 ) [2025-04-10 21:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 18:24:06' and `end` < '2025-04-10 21:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 21:24:18] Production.INFO: count ==1041 [2025-04-10 21:24:19] Production.ERROR: pbx CDR StartTime 2025-04-10 18:24:06 - End Time 2025-04-10 21:24:06 [2025-04-10 21:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879610', 'tblTempUsageDetail_20' ) start [2025-04-10 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879610', 'tblTempUsageDetail_20' ) end [2025-04-10 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879610', 'tblTempVendorCDR_20' ) start [2025-04-10 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879610', 'tblTempVendorCDR_20' ) end [2025-04-10 21:24:19] Production.INFO: ProcessCDR(1,14879610,1,1,2) [2025-04-10 21:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879610', 'tblTempUsageDetail_20' ) start [2025-04-10 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879610', 'tblTempUsageDetail_20' ) end [2025-04-10 21:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 21:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 21:24:22] Production.INFO: ==32450== Releasing lock... [2025-04-10 21:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 21:24:22] Production.INFO: 35.5 MB #Memory Used# [2025-04-10 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 18:25:05 [end_date_ymd] => 2025-04-10 21:25:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 18:25:05' and `end` < '2025-04-10 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-04-10 21:25:18] Production.INFO: count ==1039 [2025-04-10 21:25:18] Production.ERROR: pbx CDR StartTime 2025-04-10 18:25:05 - End Time 2025-04-10 21:25:05 [2025-04-10 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879615', 'tblTempUsageDetail_20' ) start [2025-04-10 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879615', 'tblTempUsageDetail_20' ) end [2025-04-10 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879615', 'tblTempVendorCDR_20' ) start [2025-04-10 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879615', 'tblTempVendorCDR_20' ) end [2025-04-10 21:25:18] Production.INFO: ProcessCDR(1,14879615,1,1,2) [2025-04-10 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879615', 'tblTempUsageDetail_20' ) start [2025-04-10 21:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879615', 'tblTempUsageDetail_20' ) end [2025-04-10 21:25:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 21:25:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 21:25:23] Production.INFO: ==32522== Releasing lock... [2025-04-10 21:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 21:25:23] Production.INFO: 35.25 MB #Memory Used# [2025-04-10 21:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 18:26:06 [end_date_ymd] => 2025-04-10 21:26:06 [RateCDR] => 1 ) [2025-04-10 21:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 18:26:06' and `end` < '2025-04-10 21:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 21:26:19] Production.INFO: count ==1037 [2025-04-10 21:26:19] Production.ERROR: pbx CDR StartTime 2025-04-10 18:26:06 - End Time 2025-04-10 21:26:06 [2025-04-10 21:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879620', 'tblTempUsageDetail_20' ) start [2025-04-10 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879620', 'tblTempUsageDetail_20' ) end [2025-04-10 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879620', 'tblTempVendorCDR_20' ) start [2025-04-10 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879620', 'tblTempVendorCDR_20' ) end [2025-04-10 21:26:19] Production.INFO: ProcessCDR(1,14879620,1,1,2) [2025-04-10 21:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879620', 'tblTempUsageDetail_20' ) start [2025-04-10 21:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879620', 'tblTempUsageDetail_20' ) end [2025-04-10 21:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 21:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 21:26:22] Production.INFO: ==32601== Releasing lock... [2025-04-10 21:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 21:26:22] Production.INFO: 35.25 MB #Memory Used# [2025-04-10 21:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 18:27:06 [end_date_ymd] => 2025-04-10 21:27:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 18:27:06' and `end` < '2025-04-10 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-04-10 21:27:18] Production.INFO: count ==1037 [2025-04-10 21:27:18] Production.ERROR: pbx CDR StartTime 2025-04-10 18:27:06 - End Time 2025-04-10 21:27:06 [2025-04-10 21:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879625', 'tblTempUsageDetail_20' ) start [2025-04-10 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879625', 'tblTempUsageDetail_20' ) end [2025-04-10 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879625', 'tblTempVendorCDR_20' ) start [2025-04-10 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879625', 'tblTempVendorCDR_20' ) end [2025-04-10 21:27:18] Production.INFO: ProcessCDR(1,14879625,1,1,2) [2025-04-10 21:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879625', 'tblTempUsageDetail_20' ) start [2025-04-10 21:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879625', 'tblTempUsageDetail_20' ) end [2025-04-10 21:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 21:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 21:27:22] Production.INFO: ==32671== Releasing lock... [2025-04-10 21:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 21:27:22] Production.INFO: 35.25 MB #Memory Used# [2025-04-10 21:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 18:28:06 [end_date_ymd] => 2025-04-10 21:28:06 [RateCDR] => 1 ) [2025-04-10 21:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 18:28:06' and `end` < '2025-04-10 21:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 21:28:19] Production.INFO: count ==1037 [2025-04-10 21:28:19] Production.ERROR: pbx CDR StartTime 2025-04-10 18:28:06 - End Time 2025-04-10 21:28:06 [2025-04-10 21:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879630', 'tblTempUsageDetail_20' ) start [2025-04-10 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879630', 'tblTempUsageDetail_20' ) end [2025-04-10 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879630', 'tblTempVendorCDR_20' ) start [2025-04-10 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879630', 'tblTempVendorCDR_20' ) end [2025-04-10 21:28:19] Production.INFO: ProcessCDR(1,14879630,1,1,2) [2025-04-10 21:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879630', 'tblTempUsageDetail_20' ) start [2025-04-10 21:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879630', 'tblTempUsageDetail_20' ) end [2025-04-10 21:28:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 21:28:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 21:28:23] Production.INFO: ==32742== Releasing lock... [2025-04-10 21:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 21:28:23] Production.INFO: 35.25 MB #Memory Used# [2025-04-10 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 18:29:05 [end_date_ymd] => 2025-04-10 21:29:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 18:29:05' and `end` < '2025-04-10 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-04-10 21:29:18] Production.INFO: count ==1036 [2025-04-10 21:29:18] Production.ERROR: pbx CDR StartTime 2025-04-10 18:29:05 - End Time 2025-04-10 21:29:05 [2025-04-10 21:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879635', 'tblTempUsageDetail_20' ) start [2025-04-10 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879635', 'tblTempUsageDetail_20' ) end [2025-04-10 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879635', 'tblTempVendorCDR_20' ) start [2025-04-10 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879635', 'tblTempVendorCDR_20' ) end [2025-04-10 21:29:18] Production.INFO: ProcessCDR(1,14879635,1,1,2) [2025-04-10 21:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879635', 'tblTempUsageDetail_20' ) start [2025-04-10 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879635', 'tblTempUsageDetail_20' ) end [2025-04-10 21:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 21:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 21:29:22] Production.INFO: ==366== Releasing lock... [2025-04-10 21:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 21:29:22] Production.INFO: 35.25 MB #Memory Used# [2025-04-10 21:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 18:30:07 [end_date_ymd] => 2025-04-10 21:30:07 [RateCDR] => 1 ) [2025-04-10 21: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-04-10 18:30:07' and `end` < '2025-04-10 21: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-04-10 21:30:20] Production.INFO: count ==1033 [2025-04-10 21:30:20] Production.ERROR: pbx CDR StartTime 2025-04-10 18:30:07 - End Time 2025-04-10 21:30:07 [2025-04-10 21:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 21:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879641', 'tblTempUsageDetail_20' ) start [2025-04-10 21:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879641', 'tblTempUsageDetail_20' ) end [2025-04-10 21:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879641', 'tblTempVendorCDR_20' ) start [2025-04-10 21:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879641', 'tblTempVendorCDR_20' ) end [2025-04-10 21:30:20] Production.INFO: ProcessCDR(1,14879641,1,1,2) [2025-04-10 21:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879641', 'tblTempUsageDetail_20' ) start [2025-04-10 21:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879641', 'tblTempUsageDetail_20' ) end [2025-04-10 21:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 21:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 21:30:23] Production.INFO: ==441== Releasing lock... [2025-04-10 21:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 21:30:23] Production.INFO: 35.25 MB #Memory Used# [2025-04-10 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 18:31:05 [end_date_ymd] => 2025-04-10 21:31:05 [RateCDR] => 1 ) [2025-04-10 21:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 18:31:05' and `end` < '2025-04-10 21:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 21:31:18] Production.INFO: count ==955 [2025-04-10 21:31:18] Production.ERROR: pbx CDR StartTime 2025-04-10 18:31:05 - End Time 2025-04-10 21:31:05 [2025-04-10 21:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879646', 'tblTempUsageDetail_20' ) start [2025-04-10 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879646', 'tblTempUsageDetail_20' ) end [2025-04-10 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879646', 'tblTempVendorCDR_20' ) start [2025-04-10 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879646', 'tblTempVendorCDR_20' ) end [2025-04-10 21:31:18] Production.INFO: ProcessCDR(1,14879646,1,1,2) [2025-04-10 21:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879646', 'tblTempUsageDetail_20' ) start [2025-04-10 21:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879646', 'tblTempUsageDetail_20' ) end [2025-04-10 21:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 21:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 21:31:21] Production.INFO: ==516== Releasing lock... [2025-04-10 21:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 21:31:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-10 21:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 18:32:05 [end_date_ymd] => 2025-04-10 21:32:05 [RateCDR] => 1 ) [2025-04-10 21:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 18:32:05' and `end` < '2025-04-10 21:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 21:32:18] Production.INFO: count ==954 [2025-04-10 21:32:18] Production.ERROR: pbx CDR StartTime 2025-04-10 18:32:05 - End Time 2025-04-10 21:32:05 [2025-04-10 21:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879651', 'tblTempUsageDetail_20' ) start [2025-04-10 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879651', 'tblTempUsageDetail_20' ) end [2025-04-10 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879651', 'tblTempVendorCDR_20' ) start [2025-04-10 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879651', 'tblTempVendorCDR_20' ) end [2025-04-10 21:32:18] Production.INFO: ProcessCDR(1,14879651,1,1,2) [2025-04-10 21:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879651', 'tblTempUsageDetail_20' ) start [2025-04-10 21:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879651', 'tblTempUsageDetail_20' ) end [2025-04-10 21:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 21:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 21:32:22] Production.INFO: ==590== Releasing lock... [2025-04-10 21:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 21:32:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-10 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 18:33:05 [end_date_ymd] => 2025-04-10 21:33:05 [RateCDR] => 1 ) [2025-04-10 21:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 18:33:05' and `end` < '2025-04-10 21:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 21:33:18] Production.INFO: count ==953 [2025-04-10 21:33:18] Production.ERROR: pbx CDR StartTime 2025-04-10 18:33:05 - End Time 2025-04-10 21:33:05 [2025-04-10 21:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879656', 'tblTempUsageDetail_20' ) start [2025-04-10 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879656', 'tblTempUsageDetail_20' ) end [2025-04-10 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879656', 'tblTempVendorCDR_20' ) start [2025-04-10 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879656', 'tblTempVendorCDR_20' ) end [2025-04-10 21:33:18] Production.INFO: ProcessCDR(1,14879656,1,1,2) [2025-04-10 21:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879656', 'tblTempUsageDetail_20' ) start [2025-04-10 21:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879656', 'tblTempUsageDetail_20' ) end [2025-04-10 21:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 21:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 21:33:22] Production.INFO: ==677== Releasing lock... [2025-04-10 21:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 21:33:22] Production.INFO: 34.75 MB #Memory Used# [2025-04-10 21:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 18:34:06 [end_date_ymd] => 2025-04-10 21:34:06 [RateCDR] => 1 ) [2025-04-10 21:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 18:34:06' and `end` < '2025-04-10 21:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 21:34:19] Production.INFO: count ==954 [2025-04-10 21:34:19] Production.ERROR: pbx CDR StartTime 2025-04-10 18:34:06 - End Time 2025-04-10 21:34:06 [2025-04-10 21:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879661', 'tblTempUsageDetail_20' ) start [2025-04-10 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879661', 'tblTempUsageDetail_20' ) end [2025-04-10 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879661', 'tblTempVendorCDR_20' ) start [2025-04-10 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879661', 'tblTempVendorCDR_20' ) end [2025-04-10 21:34:19] Production.INFO: ProcessCDR(1,14879661,1,1,2) [2025-04-10 21:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879661', 'tblTempUsageDetail_20' ) start [2025-04-10 21:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879661', 'tblTempUsageDetail_20' ) end [2025-04-10 21:34:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 21:34:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 21:34:23] Production.INFO: ==809== Releasing lock... [2025-04-10 21:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 21:34:23] Production.INFO: 34.75 MB #Memory Used# [2025-04-10 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 18:35:05 [end_date_ymd] => 2025-04-10 21:35:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 18:35:05' and `end` < '2025-04-10 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-04-10 21:35:18] Production.INFO: count ==954 [2025-04-10 21:35:18] Production.ERROR: pbx CDR StartTime 2025-04-10 18:35:05 - End Time 2025-04-10 21:35:05 [2025-04-10 21:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879666', 'tblTempUsageDetail_20' ) start [2025-04-10 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879666', 'tblTempUsageDetail_20' ) end [2025-04-10 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879666', 'tblTempVendorCDR_20' ) start [2025-04-10 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879666', 'tblTempVendorCDR_20' ) end [2025-04-10 21:35:18] Production.INFO: ProcessCDR(1,14879666,1,1,2) [2025-04-10 21:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879666', 'tblTempUsageDetail_20' ) start [2025-04-10 21:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879666', 'tblTempUsageDetail_20' ) end [2025-04-10 21:35:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 21:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 21:35:23] Production.INFO: ==880== Releasing lock... [2025-04-10 21:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 21:35:23] Production.INFO: 34.75 MB #Memory Used# [2025-04-10 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 18:36:05 [end_date_ymd] => 2025-04-10 21:36:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 18:36:05' and `end` < '2025-04-10 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-04-10 21:36:18] Production.INFO: count ==951 [2025-04-10 21:36:18] Production.ERROR: pbx CDR StartTime 2025-04-10 18:36:05 - End Time 2025-04-10 21:36:05 [2025-04-10 21:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879671', 'tblTempUsageDetail_20' ) start [2025-04-10 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879671', 'tblTempUsageDetail_20' ) end [2025-04-10 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879671', 'tblTempVendorCDR_20' ) start [2025-04-10 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879671', 'tblTempVendorCDR_20' ) end [2025-04-10 21:36:18] Production.INFO: ProcessCDR(1,14879671,1,1,2) [2025-04-10 21:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879671', 'tblTempUsageDetail_20' ) start [2025-04-10 21:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879671', 'tblTempUsageDetail_20' ) end [2025-04-10 21:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 21:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 21:36:21] Production.INFO: ==951== Releasing lock... [2025-04-10 21:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 21:36:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-10 21:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 18:37:05 [end_date_ymd] => 2025-04-10 21:37:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 18:37:05' and `end` < '2025-04-10 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-04-10 21:37:18] Production.INFO: count ==944 [2025-04-10 21:37:18] Production.ERROR: pbx CDR StartTime 2025-04-10 18:37:05 - End Time 2025-04-10 21:37:05 [2025-04-10 21:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879676', 'tblTempUsageDetail_20' ) start [2025-04-10 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879676', 'tblTempUsageDetail_20' ) end [2025-04-10 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879676', 'tblTempVendorCDR_20' ) start [2025-04-10 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879676', 'tblTempVendorCDR_20' ) end [2025-04-10 21:37:18] Production.INFO: ProcessCDR(1,14879676,1,1,2) [2025-04-10 21:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879676', 'tblTempUsageDetail_20' ) start [2025-04-10 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879676', 'tblTempUsageDetail_20' ) end [2025-04-10 21:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 21:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 21:37:21] Production.INFO: ==1023== Releasing lock... [2025-04-10 21:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 21:37:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-10 21:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 18:38:06 [end_date_ymd] => 2025-04-10 21:38:06 [RateCDR] => 1 ) [2025-04-10 21: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-04-10 18:38:06' and `end` < '2025-04-10 21: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-04-10 21:38:18] Production.INFO: count ==941 [2025-04-10 21:38:19] Production.ERROR: pbx CDR StartTime 2025-04-10 18:38:06 - End Time 2025-04-10 21:38:06 [2025-04-10 21:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879681', 'tblTempUsageDetail_20' ) start [2025-04-10 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879681', 'tblTempUsageDetail_20' ) end [2025-04-10 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879681', 'tblTempVendorCDR_20' ) start [2025-04-10 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879681', 'tblTempVendorCDR_20' ) end [2025-04-10 21:38:19] Production.INFO: ProcessCDR(1,14879681,1,1,2) [2025-04-10 21:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879681', 'tblTempUsageDetail_20' ) start [2025-04-10 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879681', 'tblTempUsageDetail_20' ) end [2025-04-10 21:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 21:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 21:38:22] Production.INFO: ==1094== Releasing lock... [2025-04-10 21:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 21:38:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-10 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 18:39:05 [end_date_ymd] => 2025-04-10 21:39:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 18:39:05' and `end` < '2025-04-10 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-04-10 21:39:18] Production.INFO: count ==936 [2025-04-10 21:39:18] Production.ERROR: pbx CDR StartTime 2025-04-10 18:39:05 - End Time 2025-04-10 21:39:05 [2025-04-10 21:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879686', 'tblTempUsageDetail_20' ) start [2025-04-10 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879686', 'tblTempUsageDetail_20' ) end [2025-04-10 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879686', 'tblTempVendorCDR_20' ) start [2025-04-10 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879686', 'tblTempVendorCDR_20' ) end [2025-04-10 21:39:18] Production.INFO: ProcessCDR(1,14879686,1,1,2) [2025-04-10 21:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879686', 'tblTempUsageDetail_20' ) start [2025-04-10 21:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879686', 'tblTempUsageDetail_20' ) end [2025-04-10 21:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 21:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 21:39:21] Production.INFO: ==1169== Releasing lock... [2025-04-10 21:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 21:39:21] Production.INFO: 34.5 MB #Memory Used# [2025-04-10 21:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 18:40:07 [end_date_ymd] => 2025-04-10 21:40:07 [RateCDR] => 1 ) [2025-04-10 21: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-04-10 18:40:07' and `end` < '2025-04-10 21: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-04-10 21:40:20] Production.INFO: count ==936 [2025-04-10 21:40:20] Production.ERROR: pbx CDR StartTime 2025-04-10 18:40:07 - End Time 2025-04-10 21:40:07 [2025-04-10 21:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879692', 'tblTempUsageDetail_20' ) start [2025-04-10 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879692', 'tblTempUsageDetail_20' ) end [2025-04-10 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879692', 'tblTempVendorCDR_20' ) start [2025-04-10 21:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879692', 'tblTempVendorCDR_20' ) end [2025-04-10 21:40:20] Production.INFO: ProcessCDR(1,14879692,1,1,2) [2025-04-10 21:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879692', 'tblTempUsageDetail_20' ) start [2025-04-10 21:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879692', 'tblTempUsageDetail_20' ) end [2025-04-10 21:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 21:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 21:40:23] Production.INFO: ==1251== Releasing lock... [2025-04-10 21:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 21:40:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-10 21:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 18:41:04 [end_date_ymd] => 2025-04-10 21:41:04 [RateCDR] => 1 ) [2025-04-10 21:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 18:41:04' and `end` < '2025-04-10 21:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 21:41:17] Production.INFO: count ==907 [2025-04-10 21:41:17] Production.ERROR: pbx CDR StartTime 2025-04-10 18:41:04 - End Time 2025-04-10 21:41:04 [2025-04-10 21:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 21:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879697', 'tblTempUsageDetail_20' ) start [2025-04-10 21:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879697', 'tblTempUsageDetail_20' ) end [2025-04-10 21:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879697', 'tblTempVendorCDR_20' ) start [2025-04-10 21:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879697', 'tblTempVendorCDR_20' ) end [2025-04-10 21:41:17] Production.INFO: ProcessCDR(1,14879697,1,1,2) [2025-04-10 21:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879697', 'tblTempUsageDetail_20' ) start [2025-04-10 21:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879697', 'tblTempUsageDetail_20' ) end [2025-04-10 21:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 21:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 21:41:21] Production.INFO: ==1329== Releasing lock... [2025-04-10 21:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 21:41:21] Production.INFO: 34 MB #Memory Used# [2025-04-10 21:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 18:42:06 [end_date_ymd] => 2025-04-10 21:42:06 [RateCDR] => 1 ) [2025-04-10 21:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 18:42:06' and `end` < '2025-04-10 21:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 21:42:19] Production.INFO: count ==906 [2025-04-10 21:42:19] Production.ERROR: pbx CDR StartTime 2025-04-10 18:42:06 - End Time 2025-04-10 21:42:06 [2025-04-10 21:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879702', 'tblTempUsageDetail_20' ) start [2025-04-10 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879702', 'tblTempUsageDetail_20' ) end [2025-04-10 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879702', 'tblTempVendorCDR_20' ) start [2025-04-10 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879702', 'tblTempVendorCDR_20' ) end [2025-04-10 21:42:19] Production.INFO: ProcessCDR(1,14879702,1,1,2) [2025-04-10 21:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879702', 'tblTempUsageDetail_20' ) start [2025-04-10 21:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879702', 'tblTempUsageDetail_20' ) end [2025-04-10 21:42:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 21:42:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 21:42:24] Production.INFO: ==1403== Releasing lock... [2025-04-10 21:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 21:42:24] Production.INFO: 34 MB #Memory Used# [2025-04-10 21:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 18:43:05 [end_date_ymd] => 2025-04-10 21:43:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 18:43:05' and `end` < '2025-04-10 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-04-10 21:43:18] Production.INFO: count ==903 [2025-04-10 21:43:18] Production.ERROR: pbx CDR StartTime 2025-04-10 18:43:05 - End Time 2025-04-10 21:43:05 [2025-04-10 21:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879707', 'tblTempUsageDetail_20' ) start [2025-04-10 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879707', 'tblTempUsageDetail_20' ) end [2025-04-10 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879707', 'tblTempVendorCDR_20' ) start [2025-04-10 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879707', 'tblTempVendorCDR_20' ) end [2025-04-10 21:43:18] Production.INFO: ProcessCDR(1,14879707,1,1,2) [2025-04-10 21:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879707', 'tblTempUsageDetail_20' ) start [2025-04-10 21:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879707', 'tblTempUsageDetail_20' ) end [2025-04-10 21:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 21:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 21:43:21] Production.INFO: ==1479== Releasing lock... [2025-04-10 21:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 21:43:21] Production.INFO: 34 MB #Memory Used# [2025-04-10 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 18:44:05 [end_date_ymd] => 2025-04-10 21:44:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 18:44:05' and `end` < '2025-04-10 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-04-10 21:44:18] Production.INFO: count ==902 [2025-04-10 21:44:18] Production.ERROR: pbx CDR StartTime 2025-04-10 18:44:05 - End Time 2025-04-10 21:44:05 [2025-04-10 21:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879712', 'tblTempUsageDetail_20' ) start [2025-04-10 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879712', 'tblTempUsageDetail_20' ) end [2025-04-10 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879712', 'tblTempVendorCDR_20' ) start [2025-04-10 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879712', 'tblTempVendorCDR_20' ) end [2025-04-10 21:44:18] Production.INFO: ProcessCDR(1,14879712,1,1,2) [2025-04-10 21:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879712', 'tblTempUsageDetail_20' ) start [2025-04-10 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879712', 'tblTempUsageDetail_20' ) end [2025-04-10 21:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 21:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 21:44:22] Production.INFO: ==1589== Releasing lock... [2025-04-10 21:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 21:44:22] Production.INFO: 34 MB #Memory Used# [2025-04-10 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 18:45:05 [end_date_ymd] => 2025-04-10 21:45:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 18:45:05' and `end` < '2025-04-10 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-04-10 21:45:18] Production.INFO: count ==902 [2025-04-10 21:45:18] Production.ERROR: pbx CDR StartTime 2025-04-10 18:45:05 - End Time 2025-04-10 21:45:05 [2025-04-10 21:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879717', 'tblTempUsageDetail_20' ) start [2025-04-10 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879717', 'tblTempUsageDetail_20' ) end [2025-04-10 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879717', 'tblTempVendorCDR_20' ) start [2025-04-10 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879717', 'tblTempVendorCDR_20' ) end [2025-04-10 21:45:18] Production.INFO: ProcessCDR(1,14879717,1,1,2) [2025-04-10 21:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879717', 'tblTempUsageDetail_20' ) start [2025-04-10 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879717', 'tblTempUsageDetail_20' ) end [2025-04-10 21:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 21:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 21:45:21] Production.INFO: ==1661== Releasing lock... [2025-04-10 21:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 21:45:21] Production.INFO: 34 MB #Memory Used# [2025-04-10 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 18:46:05 [end_date_ymd] => 2025-04-10 21:46:05 [RateCDR] => 1 ) [2025-04-10 21:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 18:46:05' and `end` < '2025-04-10 21:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 21:46:18] Production.INFO: count ==901 [2025-04-10 21:46:18] Production.ERROR: pbx CDR StartTime 2025-04-10 18:46:05 - End Time 2025-04-10 21:46:05 [2025-04-10 21:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879722', 'tblTempUsageDetail_20' ) start [2025-04-10 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879722', 'tblTempUsageDetail_20' ) end [2025-04-10 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879722', 'tblTempVendorCDR_20' ) start [2025-04-10 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879722', 'tblTempVendorCDR_20' ) end [2025-04-10 21:46:18] Production.INFO: ProcessCDR(1,14879722,1,1,2) [2025-04-10 21:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879722', 'tblTempUsageDetail_20' ) start [2025-04-10 21:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879722', 'tblTempUsageDetail_20' ) end [2025-04-10 21:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 21:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 21:46:21] Production.INFO: ==1733== Releasing lock... [2025-04-10 21:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 21:46:21] Production.INFO: 34 MB #Memory Used# [2025-04-10 21:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 18:47:06 [end_date_ymd] => 2025-04-10 21:47:06 [RateCDR] => 1 ) [2025-04-10 21: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-04-10 18:47:06' and `end` < '2025-04-10 21: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-04-10 21:47:19] Production.INFO: count ==901 [2025-04-10 21:47:19] Production.ERROR: pbx CDR StartTime 2025-04-10 18:47:06 - End Time 2025-04-10 21:47:06 [2025-04-10 21:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879727', 'tblTempUsageDetail_20' ) start [2025-04-10 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879727', 'tblTempUsageDetail_20' ) end [2025-04-10 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879727', 'tblTempVendorCDR_20' ) start [2025-04-10 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879727', 'tblTempVendorCDR_20' ) end [2025-04-10 21:47:19] Production.INFO: ProcessCDR(1,14879727,1,1,2) [2025-04-10 21:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879727', 'tblTempUsageDetail_20' ) start [2025-04-10 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879727', 'tblTempUsageDetail_20' ) end [2025-04-10 21:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 21:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 21:47:22] Production.INFO: ==1810== Releasing lock... [2025-04-10 21:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 21:47:22] Production.INFO: 34 MB #Memory Used# [2025-04-10 21:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 18:48:06 [end_date_ymd] => 2025-04-10 21:48:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 18:48:06' and `end` < '2025-04-10 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-04-10 21:48:19] Production.INFO: count ==899 [2025-04-10 21:48:19] Production.ERROR: pbx CDR StartTime 2025-04-10 18:48:06 - End Time 2025-04-10 21:48:06 [2025-04-10 21:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879732', 'tblTempUsageDetail_20' ) start [2025-04-10 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879732', 'tblTempUsageDetail_20' ) end [2025-04-10 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879732', 'tblTempVendorCDR_20' ) start [2025-04-10 21:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879732', 'tblTempVendorCDR_20' ) end [2025-04-10 21:48:19] Production.INFO: ProcessCDR(1,14879732,1,1,2) [2025-04-10 21:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879732', 'tblTempUsageDetail_20' ) start [2025-04-10 21:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879732', 'tblTempUsageDetail_20' ) end [2025-04-10 21:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 21:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 21:48:22] Production.INFO: ==1884== Releasing lock... [2025-04-10 21:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 21:48:22] Production.INFO: 34 MB #Memory Used# [2025-04-10 21:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 18:49:04 [end_date_ymd] => 2025-04-10 21:49:04 [RateCDR] => 1 ) [2025-04-10 21: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-04-10 18:49:04' and `end` < '2025-04-10 21:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 21:49:17] Production.INFO: count ==900 [2025-04-10 21:49:17] Production.ERROR: pbx CDR StartTime 2025-04-10 18:49:04 - End Time 2025-04-10 21:49:04 [2025-04-10 21:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 21:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879737', 'tblTempUsageDetail_20' ) start [2025-04-10 21:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879737', 'tblTempUsageDetail_20' ) end [2025-04-10 21:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879737', 'tblTempVendorCDR_20' ) start [2025-04-10 21:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879737', 'tblTempVendorCDR_20' ) end [2025-04-10 21:49:17] Production.INFO: ProcessCDR(1,14879737,1,1,2) [2025-04-10 21:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879737', 'tblTempUsageDetail_20' ) start [2025-04-10 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879737', 'tblTempUsageDetail_20' ) end [2025-04-10 21:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 21:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 21:49:21] Production.INFO: ==1953== Releasing lock... [2025-04-10 21:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 21:49:21] Production.INFO: 34.25 MB #Memory Used# [2025-04-10 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 18:50:06 [end_date_ymd] => 2025-04-10 21:50:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 18:50:06' and `end` < '2025-04-10 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-04-10 21:50:19] Production.INFO: count ==897 [2025-04-10 21:50:19] Production.ERROR: pbx CDR StartTime 2025-04-10 18:50:06 - End Time 2025-04-10 21:50:06 [2025-04-10 21:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879743', 'tblTempUsageDetail_20' ) start [2025-04-10 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879743', 'tblTempUsageDetail_20' ) end [2025-04-10 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879743', 'tblTempVendorCDR_20' ) start [2025-04-10 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879743', 'tblTempVendorCDR_20' ) end [2025-04-10 21:50:19] Production.INFO: ProcessCDR(1,14879743,1,1,2) [2025-04-10 21:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879743', 'tblTempUsageDetail_20' ) start [2025-04-10 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879743', 'tblTempUsageDetail_20' ) end [2025-04-10 21:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 21:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 21:50:22] Production.INFO: ==2065== Releasing lock... [2025-04-10 21:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 21:50:22] Production.INFO: 34 MB #Memory Used# [2025-04-10 21:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 18:51:05 [end_date_ymd] => 2025-04-10 21:51:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 18:51:05' and `end` < '2025-04-10 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-04-10 21:51:18] Production.INFO: count ==872 [2025-04-10 21:51:18] Production.ERROR: pbx CDR StartTime 2025-04-10 18:51:05 - End Time 2025-04-10 21:51:05 [2025-04-10 21:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879748', 'tblTempUsageDetail_20' ) start [2025-04-10 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879748', 'tblTempUsageDetail_20' ) end [2025-04-10 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879748', 'tblTempVendorCDR_20' ) start [2025-04-10 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879748', 'tblTempVendorCDR_20' ) end [2025-04-10 21:51:18] Production.INFO: ProcessCDR(1,14879748,1,1,2) [2025-04-10 21:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879748', 'tblTempUsageDetail_20' ) start [2025-04-10 21:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879748', 'tblTempUsageDetail_20' ) end [2025-04-10 21:51:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 21:51:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 21:51:23] Production.INFO: ==2142== Releasing lock... [2025-04-10 21:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 21:51:23] Production.INFO: 33.75 MB #Memory Used# [2025-04-10 21:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 18:52:06 [end_date_ymd] => 2025-04-10 21:52:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 18:52:06' and `end` < '2025-04-10 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-04-10 21:52:19] Production.INFO: count ==870 [2025-04-10 21:52:19] Production.ERROR: pbx CDR StartTime 2025-04-10 18:52:06 - End Time 2025-04-10 21:52:06 [2025-04-10 21:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879753', 'tblTempUsageDetail_20' ) start [2025-04-10 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879753', 'tblTempUsageDetail_20' ) end [2025-04-10 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879753', 'tblTempVendorCDR_20' ) start [2025-04-10 21:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879753', 'tblTempVendorCDR_20' ) end [2025-04-10 21:52:19] Production.INFO: ProcessCDR(1,14879753,1,1,2) [2025-04-10 21:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879753', 'tblTempUsageDetail_20' ) start [2025-04-10 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879753', 'tblTempUsageDetail_20' ) end [2025-04-10 21:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 21:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 21:52:22] Production.INFO: ==2215== Releasing lock... [2025-04-10 21:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 21:52:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-10 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 18:53:05 [end_date_ymd] => 2025-04-10 21:53:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 18:53:05' and `end` < '2025-04-10 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-04-10 21:53:18] Production.INFO: count ==862 [2025-04-10 21:53:18] Production.ERROR: pbx CDR StartTime 2025-04-10 18:53:05 - End Time 2025-04-10 21:53:05 [2025-04-10 21:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879758', 'tblTempUsageDetail_20' ) start [2025-04-10 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879758', 'tblTempUsageDetail_20' ) end [2025-04-10 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879758', 'tblTempVendorCDR_20' ) start [2025-04-10 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879758', 'tblTempVendorCDR_20' ) end [2025-04-10 21:53:18] Production.INFO: ProcessCDR(1,14879758,1,1,2) [2025-04-10 21:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879758', 'tblTempUsageDetail_20' ) start [2025-04-10 21:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879758', 'tblTempUsageDetail_20' ) end [2025-04-10 21:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 21:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 21:53:21] Production.INFO: ==2287== Releasing lock... [2025-04-10 21:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 21:53:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-10 21:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 18:54:06 [end_date_ymd] => 2025-04-10 21:54:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 18:54:06' and `end` < '2025-04-10 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-04-10 21:54:19] Production.INFO: count ==863 [2025-04-10 21:54:19] Production.ERROR: pbx CDR StartTime 2025-04-10 18:54:06 - End Time 2025-04-10 21:54:06 [2025-04-10 21:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879763', 'tblTempUsageDetail_20' ) start [2025-04-10 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879763', 'tblTempUsageDetail_20' ) end [2025-04-10 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879763', 'tblTempVendorCDR_20' ) start [2025-04-10 21:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879763', 'tblTempVendorCDR_20' ) end [2025-04-10 21:54:19] Production.INFO: ProcessCDR(1,14879763,1,1,2) [2025-04-10 21:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879763', 'tblTempUsageDetail_20' ) start [2025-04-10 21:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879763', 'tblTempUsageDetail_20' ) end [2025-04-10 21:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 21:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 21:54:23] Production.INFO: ==2357== Releasing lock... [2025-04-10 21:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 21:54:23] Production.INFO: 33.75 MB #Memory Used# [2025-04-10 21:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 18:55:04 [end_date_ymd] => 2025-04-10 21:55:04 [RateCDR] => 1 ) [2025-04-10 21:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 18:55:04' and `end` < '2025-04-10 21:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 21:55:17] Production.INFO: count ==861 [2025-04-10 21:55:17] Production.ERROR: pbx CDR StartTime 2025-04-10 18:55:04 - End Time 2025-04-10 21:55:04 [2025-04-10 21:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 21:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879768', 'tblTempUsageDetail_20' ) start [2025-04-10 21:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879768', 'tblTempUsageDetail_20' ) end [2025-04-10 21:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879768', 'tblTempVendorCDR_20' ) start [2025-04-10 21:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879768', 'tblTempVendorCDR_20' ) end [2025-04-10 21:55:17] Production.INFO: ProcessCDR(1,14879768,1,1,2) [2025-04-10 21:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879768', 'tblTempUsageDetail_20' ) start [2025-04-10 21:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879768', 'tblTempUsageDetail_20' ) end [2025-04-10 21:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 21:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 21:55:21] Production.INFO: ==2427== Releasing lock... [2025-04-10 21:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 21:55:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-10 21:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 18:56:05 [end_date_ymd] => 2025-04-10 21:56:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 18:56:05' and `end` < '2025-04-10 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-04-10 21:56:18] Production.INFO: count ==856 [2025-04-10 21:56:18] Production.ERROR: pbx CDR StartTime 2025-04-10 18:56:05 - End Time 2025-04-10 21:56:05 [2025-04-10 21:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879773', 'tblTempUsageDetail_20' ) start [2025-04-10 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879773', 'tblTempUsageDetail_20' ) end [2025-04-10 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879773', 'tblTempVendorCDR_20' ) start [2025-04-10 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879773', 'tblTempVendorCDR_20' ) end [2025-04-10 21:56:18] Production.INFO: ProcessCDR(1,14879773,1,1,2) [2025-04-10 21:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879773', 'tblTempUsageDetail_20' ) start [2025-04-10 21:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879773', 'tblTempUsageDetail_20' ) end [2025-04-10 21:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 21:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 21:56:23] Production.INFO: ==2499== Releasing lock... [2025-04-10 21:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 21:56:23] Production.INFO: 33.75 MB #Memory Used# [2025-04-10 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 18:57:05 [end_date_ymd] => 2025-04-10 21:57:05 [RateCDR] => 1 ) [2025-04-10 21:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 18:57:05' and `end` < '2025-04-10 21:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 21:57:18] Production.INFO: count ==853 [2025-04-10 21:57:18] Production.ERROR: pbx CDR StartTime 2025-04-10 18:57:05 - End Time 2025-04-10 21:57:05 [2025-04-10 21:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879778', 'tblTempUsageDetail_20' ) start [2025-04-10 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879778', 'tblTempUsageDetail_20' ) end [2025-04-10 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879778', 'tblTempVendorCDR_20' ) start [2025-04-10 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879778', 'tblTempVendorCDR_20' ) end [2025-04-10 21:57:18] Production.INFO: ProcessCDR(1,14879778,1,1,2) [2025-04-10 21:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879778', 'tblTempUsageDetail_20' ) start [2025-04-10 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879778', 'tblTempUsageDetail_20' ) end [2025-04-10 21:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 21:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 21:57:22] Production.INFO: ==2569== Releasing lock... [2025-04-10 21:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 21:57:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-10 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 18:58:05 [end_date_ymd] => 2025-04-10 21:58:05 [RateCDR] => 1 ) [2025-04-10 21:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 18:58:05' and `end` < '2025-04-10 21:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 21:58:18] Production.INFO: count ==855 [2025-04-10 21:58:18] Production.ERROR: pbx CDR StartTime 2025-04-10 18:58:05 - End Time 2025-04-10 21:58:05 [2025-04-10 21:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879783', 'tblTempUsageDetail_20' ) start [2025-04-10 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879783', 'tblTempUsageDetail_20' ) end [2025-04-10 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879783', 'tblTempVendorCDR_20' ) start [2025-04-10 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879783', 'tblTempVendorCDR_20' ) end [2025-04-10 21:58:18] Production.INFO: ProcessCDR(1,14879783,1,1,2) [2025-04-10 21:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879783', 'tblTempUsageDetail_20' ) start [2025-04-10 21:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879783', 'tblTempUsageDetail_20' ) end [2025-04-10 21:58:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 21:58:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 21:58:24] Production.INFO: ==2643== Releasing lock... [2025-04-10 21:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 21:58:24] Production.INFO: 33.75 MB #Memory Used# [2025-04-10 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 18:59:05 [end_date_ymd] => 2025-04-10 21:59:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 18:59:05' and `end` < '2025-04-10 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-04-10 21:59:18] Production.INFO: count ==838 [2025-04-10 21:59:18] Production.ERROR: pbx CDR StartTime 2025-04-10 18:59:05 - End Time 2025-04-10 21:59:05 [2025-04-10 21:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879788', 'tblTempUsageDetail_20' ) start [2025-04-10 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879788', 'tblTempUsageDetail_20' ) end [2025-04-10 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879788', 'tblTempVendorCDR_20' ) start [2025-04-10 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879788', 'tblTempVendorCDR_20' ) end [2025-04-10 21:59:18] Production.INFO: ProcessCDR(1,14879788,1,1,2) [2025-04-10 21:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 21:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 21:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879788', 'tblTempUsageDetail_20' ) start [2025-04-10 21:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879788', 'tblTempUsageDetail_20' ) end [2025-04-10 21:59:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 21:59:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 21:59:23] Production.INFO: ==2718== Releasing lock... [2025-04-10 21:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 21:59:23] Production.INFO: 33.5 MB #Memory Used# [2025-04-10 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 19:00:06 [end_date_ymd] => 2025-04-10 22:00:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 19:00:06' and `end` < '2025-04-10 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-04-10 22:00:19] Production.INFO: count ==836 [2025-04-10 22:00:19] Production.ERROR: pbx CDR StartTime 2025-04-10 19:00:06 - End Time 2025-04-10 22:00:06 [2025-04-10 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879794', 'tblTempUsageDetail_20' ) start [2025-04-10 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879794', 'tblTempUsageDetail_20' ) end [2025-04-10 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879794', 'tblTempVendorCDR_20' ) start [2025-04-10 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879794', 'tblTempVendorCDR_20' ) end [2025-04-10 22:00:19] Production.INFO: ProcessCDR(1,14879794,1,1,2) [2025-04-10 22:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879794', 'tblTempUsageDetail_20' ) start [2025-04-10 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879794', 'tblTempUsageDetail_20' ) end [2025-04-10 22:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 22:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 22:00:22] Production.INFO: ==2790== Releasing lock... [2025-04-10 22:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 22:00:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-10 22:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 19:01:06 [end_date_ymd] => 2025-04-10 22:01:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 19:01:06' and `end` < '2025-04-10 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-04-10 22:01:18] Production.INFO: count ==791 [2025-04-10 22:01:19] Production.ERROR: pbx CDR StartTime 2025-04-10 19:01:06 - End Time 2025-04-10 22:01:06 [2025-04-10 22:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879799', 'tblTempUsageDetail_20' ) start [2025-04-10 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879799', 'tblTempUsageDetail_20' ) end [2025-04-10 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879799', 'tblTempVendorCDR_20' ) start [2025-04-10 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879799', 'tblTempVendorCDR_20' ) end [2025-04-10 22:01:19] Production.INFO: ProcessCDR(1,14879799,1,1,2) [2025-04-10 22:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879799', 'tblTempUsageDetail_20' ) start [2025-04-10 22:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879799', 'tblTempUsageDetail_20' ) end [2025-04-10 22:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 22:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 22:01:22] Production.INFO: ==2881== Releasing lock... [2025-04-10 22:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 22:01:22] Production.INFO: 33 MB #Memory Used# [2025-04-10 22:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 19:02:05 [end_date_ymd] => 2025-04-10 22:02:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 19:02:05' and `end` < '2025-04-10 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-04-10 22:02:18] Production.INFO: count ==786 [2025-04-10 22:02:18] Production.ERROR: pbx CDR StartTime 2025-04-10 19:02:05 - End Time 2025-04-10 22:02:05 [2025-04-10 22:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879804', 'tblTempUsageDetail_20' ) start [2025-04-10 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879804', 'tblTempUsageDetail_20' ) end [2025-04-10 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879804', 'tblTempVendorCDR_20' ) start [2025-04-10 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879804', 'tblTempVendorCDR_20' ) end [2025-04-10 22:02:18] Production.INFO: ProcessCDR(1,14879804,1,1,2) [2025-04-10 22:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879804', 'tblTempUsageDetail_20' ) start [2025-04-10 22:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879804', 'tblTempUsageDetail_20' ) end [2025-04-10 22:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 22:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 22:02:23] Production.INFO: ==2950== Releasing lock... [2025-04-10 22:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 22:02:23] Production.INFO: 33 MB #Memory Used# [2025-04-10 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 19:03:05 [end_date_ymd] => 2025-04-10 22:03:05 [RateCDR] => 1 ) [2025-04-10 22:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 19:03:05' and `end` < '2025-04-10 22:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 22:03:18] Production.INFO: count ==783 [2025-04-10 22:03:19] Production.ERROR: pbx CDR StartTime 2025-04-10 19:03:05 - End Time 2025-04-10 22:03:05 [2025-04-10 22:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879809', 'tblTempUsageDetail_20' ) start [2025-04-10 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879809', 'tblTempUsageDetail_20' ) end [2025-04-10 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879809', 'tblTempVendorCDR_20' ) start [2025-04-10 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879809', 'tblTempVendorCDR_20' ) end [2025-04-10 22:03:19] Production.INFO: ProcessCDR(1,14879809,1,1,2) [2025-04-10 22:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879809', 'tblTempUsageDetail_20' ) start [2025-04-10 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879809', 'tblTempUsageDetail_20' ) end [2025-04-10 22:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 22:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 22:03:22] Production.INFO: ==3020== Releasing lock... [2025-04-10 22:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 22:03:22] Production.INFO: 33 MB #Memory Used# [2025-04-10 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 19:04:05 [end_date_ymd] => 2025-04-10 22:04:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 19:04:05' and `end` < '2025-04-10 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-04-10 22:04:18] Production.INFO: count ==784 [2025-04-10 22:04:18] Production.ERROR: pbx CDR StartTime 2025-04-10 19:04:05 - End Time 2025-04-10 22:04:05 [2025-04-10 22:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879814', 'tblTempUsageDetail_20' ) start [2025-04-10 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879814', 'tblTempUsageDetail_20' ) end [2025-04-10 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879814', 'tblTempVendorCDR_20' ) start [2025-04-10 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879814', 'tblTempVendorCDR_20' ) end [2025-04-10 22:04:18] Production.INFO: ProcessCDR(1,14879814,1,1,2) [2025-04-10 22:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879814', 'tblTempUsageDetail_20' ) start [2025-04-10 22:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879814', 'tblTempUsageDetail_20' ) end [2025-04-10 22:04:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 22:04:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 22:04:23] Production.INFO: ==3092== Releasing lock... [2025-04-10 22:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 22:04:23] Production.INFO: 33 MB #Memory Used# [2025-04-10 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 19:05:05 [end_date_ymd] => 2025-04-10 22:05:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 19:05:05' and `end` < '2025-04-10 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-04-10 22:05:18] Production.INFO: count ==781 [2025-04-10 22:05:18] Production.ERROR: pbx CDR StartTime 2025-04-10 19:05:05 - End Time 2025-04-10 22:05:05 [2025-04-10 22:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879819', 'tblTempUsageDetail_20' ) start [2025-04-10 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879819', 'tblTempUsageDetail_20' ) end [2025-04-10 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879819', 'tblTempVendorCDR_20' ) start [2025-04-10 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879819', 'tblTempVendorCDR_20' ) end [2025-04-10 22:05:18] Production.INFO: ProcessCDR(1,14879819,1,1,2) [2025-04-10 22:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879819', 'tblTempUsageDetail_20' ) start [2025-04-10 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879819', 'tblTempUsageDetail_20' ) end [2025-04-10 22:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 22:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 22:05:22] Production.INFO: ==3202== Releasing lock... [2025-04-10 22:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 22:05:22] Production.INFO: 33 MB #Memory Used# [2025-04-10 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 19:06:05 [end_date_ymd] => 2025-04-10 22:06:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 19:06:05' and `end` < '2025-04-10 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-04-10 22:06:18] Production.INFO: count ==778 [2025-04-10 22:06:18] Production.ERROR: pbx CDR StartTime 2025-04-10 19:06:05 - End Time 2025-04-10 22:06:05 [2025-04-10 22:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879824', 'tblTempUsageDetail_20' ) start [2025-04-10 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879824', 'tblTempUsageDetail_20' ) end [2025-04-10 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879824', 'tblTempVendorCDR_20' ) start [2025-04-10 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879824', 'tblTempVendorCDR_20' ) end [2025-04-10 22:06:18] Production.INFO: ProcessCDR(1,14879824,1,1,2) [2025-04-10 22:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879824', 'tblTempUsageDetail_20' ) start [2025-04-10 22:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879824', 'tblTempUsageDetail_20' ) end [2025-04-10 22:06:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 22:06:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 22:06:21] Production.INFO: ==3276== Releasing lock... [2025-04-10 22:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 22:06:21] Production.INFO: 33 MB #Memory Used# [2025-04-10 22:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 19:07:05 [end_date_ymd] => 2025-04-10 22:07:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 19:07:05' and `end` < '2025-04-10 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-04-10 22:07:18] Production.INFO: count ==771 [2025-04-10 22:07:18] Production.ERROR: pbx CDR StartTime 2025-04-10 19:07:05 - End Time 2025-04-10 22:07:05 [2025-04-10 22:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879829', 'tblTempUsageDetail_20' ) start [2025-04-10 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879829', 'tblTempUsageDetail_20' ) end [2025-04-10 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879829', 'tblTempVendorCDR_20' ) start [2025-04-10 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879829', 'tblTempVendorCDR_20' ) end [2025-04-10 22:07:18] Production.INFO: ProcessCDR(1,14879829,1,1,2) [2025-04-10 22:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879829', 'tblTempUsageDetail_20' ) start [2025-04-10 22:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879829', 'tblTempUsageDetail_20' ) end [2025-04-10 22:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 22:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 22:07:22] Production.INFO: ==3346== Releasing lock... [2025-04-10 22:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 22:07:22] Production.INFO: 33 MB #Memory Used# [2025-04-10 22:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 19:08:04 [end_date_ymd] => 2025-04-10 22:08:04 [RateCDR] => 1 ) [2025-04-10 22:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 19:08:04' and `end` < '2025-04-10 22:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 22:08:17] Production.INFO: count ==771 [2025-04-10 22:08:17] Production.ERROR: pbx CDR StartTime 2025-04-10 19:08:04 - End Time 2025-04-10 22:08:04 [2025-04-10 22:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 22:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879834', 'tblTempUsageDetail_20' ) start [2025-04-10 22:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879834', 'tblTempUsageDetail_20' ) end [2025-04-10 22:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879834', 'tblTempVendorCDR_20' ) start [2025-04-10 22:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879834', 'tblTempVendorCDR_20' ) end [2025-04-10 22:08:17] Production.INFO: ProcessCDR(1,14879834,1,1,2) [2025-04-10 22:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879834', 'tblTempUsageDetail_20' ) start [2025-04-10 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879834', 'tblTempUsageDetail_20' ) end [2025-04-10 22:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 22:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 22:08:21] Production.INFO: ==3416== Releasing lock... [2025-04-10 22:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 22:08:21] Production.INFO: 33 MB #Memory Used# [2025-04-10 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 19:09:05 [end_date_ymd] => 2025-04-10 22:09:05 [RateCDR] => 1 ) [2025-04-10 22:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 19:09:05' and `end` < '2025-04-10 22:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 22:09:18] Production.INFO: count ==772 [2025-04-10 22:09:18] Production.ERROR: pbx CDR StartTime 2025-04-10 19:09:05 - End Time 2025-04-10 22:09:05 [2025-04-10 22:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879839', 'tblTempUsageDetail_20' ) start [2025-04-10 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879839', 'tblTempUsageDetail_20' ) end [2025-04-10 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879839', 'tblTempVendorCDR_20' ) start [2025-04-10 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879839', 'tblTempVendorCDR_20' ) end [2025-04-10 22:09:18] Production.INFO: ProcessCDR(1,14879839,1,1,2) [2025-04-10 22:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879839', 'tblTempUsageDetail_20' ) start [2025-04-10 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879839', 'tblTempUsageDetail_20' ) end [2025-04-10 22:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 22:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 22:09:22] Production.INFO: ==3487== Releasing lock... [2025-04-10 22:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 22:09:22] Production.INFO: 33 MB #Memory Used# [2025-04-10 22:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 19:10:06 [end_date_ymd] => 2025-04-10 22:10:06 [RateCDR] => 1 ) [2025-04-10 22:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 19:10:06' and `end` < '2025-04-10 22:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 22:10:19] Production.INFO: count ==777 [2025-04-10 22:10:19] Production.ERROR: pbx CDR StartTime 2025-04-10 19:10:06 - End Time 2025-04-10 22:10:06 [2025-04-10 22:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879845', 'tblTempUsageDetail_20' ) start [2025-04-10 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879845', 'tblTempUsageDetail_20' ) end [2025-04-10 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879845', 'tblTempVendorCDR_20' ) start [2025-04-10 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879845', 'tblTempVendorCDR_20' ) end [2025-04-10 22:10:19] Production.INFO: ProcessCDR(1,14879845,1,1,2) [2025-04-10 22:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879845', 'tblTempUsageDetail_20' ) start [2025-04-10 22:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879845', 'tblTempUsageDetail_20' ) end [2025-04-10 22:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 22:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 22:10:24] Production.INFO: ==3558== Releasing lock... [2025-04-10 22:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 22:10:24] Production.INFO: 33 MB #Memory Used# [2025-04-10 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 19:11:05 [end_date_ymd] => 2025-04-10 22:11:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 19:11:05' and `end` < '2025-04-10 22:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 22:11:18] Production.INFO: count ==732 [2025-04-10 22:11:18] Production.ERROR: pbx CDR StartTime 2025-04-10 19:11:05 - End Time 2025-04-10 22:11:05 [2025-04-10 22:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879850', 'tblTempUsageDetail_20' ) start [2025-04-10 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879850', 'tblTempUsageDetail_20' ) end [2025-04-10 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879850', 'tblTempVendorCDR_20' ) start [2025-04-10 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879850', 'tblTempVendorCDR_20' ) end [2025-04-10 22:11:18] Production.INFO: ProcessCDR(1,14879850,1,1,2) [2025-04-10 22:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879850', 'tblTempUsageDetail_20' ) start [2025-04-10 22:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879850', 'tblTempUsageDetail_20' ) end [2025-04-10 22:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 22:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 22:11:22] Production.INFO: ==3634== Releasing lock... [2025-04-10 22:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 22:11:22] Production.INFO: 33 MB #Memory Used# [2025-04-10 22:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 19:12:05 [end_date_ymd] => 2025-04-10 22:12:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 19:12:05' and `end` < '2025-04-10 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-04-10 22:12:17] Production.INFO: count ==732 [2025-04-10 22:12:18] Production.ERROR: pbx CDR StartTime 2025-04-10 19:12:05 - End Time 2025-04-10 22:12:05 [2025-04-10 22:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879855', 'tblTempUsageDetail_20' ) start [2025-04-10 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879855', 'tblTempUsageDetail_20' ) end [2025-04-10 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879855', 'tblTempVendorCDR_20' ) start [2025-04-10 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879855', 'tblTempVendorCDR_20' ) end [2025-04-10 22:12:18] Production.INFO: ProcessCDR(1,14879855,1,1,2) [2025-04-10 22:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879855', 'tblTempUsageDetail_20' ) start [2025-04-10 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879855', 'tblTempUsageDetail_20' ) end [2025-04-10 22:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 22:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 22:12:21] Production.INFO: ==3704== Releasing lock... [2025-04-10 22:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 22:12:21] Production.INFO: 33 MB #Memory Used# [2025-04-10 22:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 19:13:05 [end_date_ymd] => 2025-04-10 22:13:05 [RateCDR] => 1 ) [2025-04-10 22:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 19:13:05' and `end` < '2025-04-10 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-04-10 22:13:18] Production.INFO: count ==732 [2025-04-10 22:13:18] Production.ERROR: pbx CDR StartTime 2025-04-10 19:13:05 - End Time 2025-04-10 22:13:05 [2025-04-10 22:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879860', 'tblTempUsageDetail_20' ) start [2025-04-10 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879860', 'tblTempUsageDetail_20' ) end [2025-04-10 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879860', 'tblTempVendorCDR_20' ) start [2025-04-10 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879860', 'tblTempVendorCDR_20' ) end [2025-04-10 22:13:18] Production.INFO: ProcessCDR(1,14879860,1,1,2) [2025-04-10 22:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879860', 'tblTempUsageDetail_20' ) start [2025-04-10 22:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879860', 'tblTempUsageDetail_20' ) end [2025-04-10 22:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 22:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 22:13:22] Production.INFO: ==3776== Releasing lock... [2025-04-10 22:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 22:13:22] Production.INFO: 33 MB #Memory Used# [2025-04-10 22:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 19:14:06 [end_date_ymd] => 2025-04-10 22:14:06 [RateCDR] => 1 ) [2025-04-10 22: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-04-10 19:14:06' and `end` < '2025-04-10 22: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-04-10 22:14:19] Production.INFO: count ==735 [2025-04-10 22:14:19] Production.ERROR: pbx CDR StartTime 2025-04-10 19:14:06 - End Time 2025-04-10 22:14:06 [2025-04-10 22:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879865', 'tblTempUsageDetail_20' ) start [2025-04-10 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879865', 'tblTempUsageDetail_20' ) end [2025-04-10 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879865', 'tblTempVendorCDR_20' ) start [2025-04-10 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879865', 'tblTempVendorCDR_20' ) end [2025-04-10 22:14:19] Production.INFO: ProcessCDR(1,14879865,1,1,2) [2025-04-10 22:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879865', 'tblTempUsageDetail_20' ) start [2025-04-10 22:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879865', 'tblTempUsageDetail_20' ) end [2025-04-10 22:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 22:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 22:14:22] Production.INFO: ==3850== Releasing lock... [2025-04-10 22:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 22:14:22] Production.INFO: 33 MB #Memory Used# [2025-04-10 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 19:15:05 [end_date_ymd] => 2025-04-10 22:15:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 19:15:05' and `end` < '2025-04-10 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-04-10 22:15:17] Production.INFO: count ==733 [2025-04-10 22:15:18] Production.ERROR: pbx CDR StartTime 2025-04-10 19:15:05 - End Time 2025-04-10 22:15:05 [2025-04-10 22:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879870', 'tblTempUsageDetail_20' ) start [2025-04-10 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879870', 'tblTempUsageDetail_20' ) end [2025-04-10 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879870', 'tblTempVendorCDR_20' ) start [2025-04-10 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879870', 'tblTempVendorCDR_20' ) end [2025-04-10 22:15:18] Production.INFO: ProcessCDR(1,14879870,1,1,2) [2025-04-10 22:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879870', 'tblTempUsageDetail_20' ) start [2025-04-10 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879870', 'tblTempUsageDetail_20' ) end [2025-04-10 22:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 22:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 22:15:21] Production.INFO: ==3928== Releasing lock... [2025-04-10 22:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 22:15:21] Production.INFO: 33 MB #Memory Used# [2025-04-10 22:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 19:16:06 [end_date_ymd] => 2025-04-10 22:16:06 [RateCDR] => 1 ) [2025-04-10 22:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 19:16:06' and `end` < '2025-04-10 22:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 22:16:19] Production.INFO: count ==728 [2025-04-10 22:16:19] Production.ERROR: pbx CDR StartTime 2025-04-10 19:16:06 - End Time 2025-04-10 22:16:06 [2025-04-10 22:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879875', 'tblTempUsageDetail_20' ) start [2025-04-10 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879875', 'tblTempUsageDetail_20' ) end [2025-04-10 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879875', 'tblTempVendorCDR_20' ) start [2025-04-10 22:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879875', 'tblTempVendorCDR_20' ) end [2025-04-10 22:16:19] Production.INFO: ProcessCDR(1,14879875,1,1,2) [2025-04-10 22:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879875', 'tblTempUsageDetail_20' ) start [2025-04-10 22:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879875', 'tblTempUsageDetail_20' ) end [2025-04-10 22:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 22:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 22:16:22] Production.INFO: ==3999== Releasing lock... [2025-04-10 22:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 22:16:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-10 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 19:17:05 [end_date_ymd] => 2025-04-10 22:17:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 19:17:05' and `end` < '2025-04-10 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-04-10 22:17:18] Production.INFO: count ==728 [2025-04-10 22:17:18] Production.ERROR: pbx CDR StartTime 2025-04-10 19:17:05 - End Time 2025-04-10 22:17:05 [2025-04-10 22:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879880', 'tblTempUsageDetail_20' ) start [2025-04-10 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879880', 'tblTempUsageDetail_20' ) end [2025-04-10 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879880', 'tblTempVendorCDR_20' ) start [2025-04-10 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879880', 'tblTempVendorCDR_20' ) end [2025-04-10 22:17:18] Production.INFO: ProcessCDR(1,14879880,1,1,2) [2025-04-10 22:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879880', 'tblTempUsageDetail_20' ) start [2025-04-10 22:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879880', 'tblTempUsageDetail_20' ) end [2025-04-10 22:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 22:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 22:17:22] Production.INFO: ==4070== Releasing lock... [2025-04-10 22:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 22:17:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-10 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 19:18:05 [end_date_ymd] => 2025-04-10 22:18:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 19:18:05' and `end` < '2025-04-10 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-04-10 22:18:18] Production.INFO: count ==724 [2025-04-10 22:18:18] Production.ERROR: pbx CDR StartTime 2025-04-10 19:18:05 - End Time 2025-04-10 22:18:05 [2025-04-10 22:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879885', 'tblTempUsageDetail_20' ) start [2025-04-10 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879885', 'tblTempUsageDetail_20' ) end [2025-04-10 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879885', 'tblTempVendorCDR_20' ) start [2025-04-10 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879885', 'tblTempVendorCDR_20' ) end [2025-04-10 22:18:18] Production.INFO: ProcessCDR(1,14879885,1,1,2) [2025-04-10 22:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879885', 'tblTempUsageDetail_20' ) start [2025-04-10 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879885', 'tblTempUsageDetail_20' ) end [2025-04-10 22:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 22:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 22:18:22] Production.INFO: ==4141== Releasing lock... [2025-04-10 22:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 22:18:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-10 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 19:19:05 [end_date_ymd] => 2025-04-10 22:19:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 19:19:05' and `end` < '2025-04-10 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-04-10 22:19:18] Production.INFO: count ==725 [2025-04-10 22:19:18] Production.ERROR: pbx CDR StartTime 2025-04-10 19:19:05 - End Time 2025-04-10 22:19:05 [2025-04-10 22:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879890', 'tblTempUsageDetail_20' ) start [2025-04-10 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879890', 'tblTempUsageDetail_20' ) end [2025-04-10 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879890', 'tblTempVendorCDR_20' ) start [2025-04-10 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879890', 'tblTempVendorCDR_20' ) end [2025-04-10 22:19:18] Production.INFO: ProcessCDR(1,14879890,1,1,2) [2025-04-10 22:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879890', 'tblTempUsageDetail_20' ) start [2025-04-10 22:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879890', 'tblTempUsageDetail_20' ) end [2025-04-10 22:19:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 22:19:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 22:19:23] Production.INFO: ==4212== Releasing lock... [2025-04-10 22:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 22:19:23] Production.INFO: 32.75 MB #Memory Used# [2025-04-10 22:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 19:20:06 [end_date_ymd] => 2025-04-10 22:20:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 19:20:06' and `end` < '2025-04-10 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-04-10 22:20:19] Production.INFO: count ==723 [2025-04-10 22:20:19] Production.ERROR: pbx CDR StartTime 2025-04-10 19:20:06 - End Time 2025-04-10 22:20:06 [2025-04-10 22:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879895', 'tblTempUsageDetail_20' ) start [2025-04-10 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879895', 'tblTempUsageDetail_20' ) end [2025-04-10 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879895', 'tblTempVendorCDR_20' ) start [2025-04-10 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879895', 'tblTempVendorCDR_20' ) end [2025-04-10 22:20:19] Production.INFO: ProcessCDR(1,14879895,1,1,2) [2025-04-10 22:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879895', 'tblTempUsageDetail_20' ) start [2025-04-10 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879895', 'tblTempUsageDetail_20' ) end [2025-04-10 22:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 22:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 22:20:22] Production.INFO: ==4287== Releasing lock... [2025-04-10 22:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 22:20:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-10 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 19:21:05 [end_date_ymd] => 2025-04-10 22:21:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 19:21:05' and `end` < '2025-04-10 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-04-10 22:21:17] Production.INFO: count ==708 [2025-04-10 22:21:17] Production.ERROR: pbx CDR StartTime 2025-04-10 19:21:05 - End Time 2025-04-10 22:21:05 [2025-04-10 22:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879901', 'tblTempUsageDetail_20' ) start [2025-04-10 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879901', 'tblTempUsageDetail_20' ) end [2025-04-10 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879901', 'tblTempVendorCDR_20' ) start [2025-04-10 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879901', 'tblTempVendorCDR_20' ) end [2025-04-10 22:21:17] Production.INFO: ProcessCDR(1,14879901,1,1,2) [2025-04-10 22:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879901', 'tblTempUsageDetail_20' ) start [2025-04-10 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879901', 'tblTempUsageDetail_20' ) end [2025-04-10 22:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 22:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 22:21:21] Production.INFO: ==4401== Releasing lock... [2025-04-10 22:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 22:21:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-10 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 19:22:05 [end_date_ymd] => 2025-04-10 22:22:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 19:22:05' and `end` < '2025-04-10 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-04-10 22:22:18] Production.INFO: count ==708 [2025-04-10 22:22:18] Production.ERROR: pbx CDR StartTime 2025-04-10 19:22:05 - End Time 2025-04-10 22:22:05 [2025-04-10 22:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879906', 'tblTempUsageDetail_20' ) start [2025-04-10 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879906', 'tblTempUsageDetail_20' ) end [2025-04-10 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879906', 'tblTempVendorCDR_20' ) start [2025-04-10 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879906', 'tblTempVendorCDR_20' ) end [2025-04-10 22:22:18] Production.INFO: ProcessCDR(1,14879906,1,1,2) [2025-04-10 22:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879906', 'tblTempUsageDetail_20' ) start [2025-04-10 22:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879906', 'tblTempUsageDetail_20' ) end [2025-04-10 22:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 22:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 22:22:21] Production.INFO: ==4471== Releasing lock... [2025-04-10 22:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 22:22:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-10 22:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 19:23:04 [end_date_ymd] => 2025-04-10 22:23:04 [RateCDR] => 1 ) [2025-04-10 22:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 19:23:04' and `end` < '2025-04-10 22:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 22:23:18] Production.INFO: count ==702 [2025-04-10 22:23:18] Production.ERROR: pbx CDR StartTime 2025-04-10 19:23:04 - End Time 2025-04-10 22:23:04 [2025-04-10 22:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879911', 'tblTempUsageDetail_20' ) start [2025-04-10 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879911', 'tblTempUsageDetail_20' ) end [2025-04-10 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879911', 'tblTempVendorCDR_20' ) start [2025-04-10 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879911', 'tblTempVendorCDR_20' ) end [2025-04-10 22:23:18] Production.INFO: ProcessCDR(1,14879911,1,1,2) [2025-04-10 22:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879911', 'tblTempUsageDetail_20' ) start [2025-04-10 22:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879911', 'tblTempUsageDetail_20' ) end [2025-04-10 22:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 22:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 22:23:21] Production.INFO: ==4541== Releasing lock... [2025-04-10 22:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 22:23:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-10 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 19:24:05 [end_date_ymd] => 2025-04-10 22:24:05 [RateCDR] => 1 ) [2025-04-10 22:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 19:24:05' and `end` < '2025-04-10 22:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 22:24:18] Production.INFO: count ==694 [2025-04-10 22:24:18] Production.ERROR: pbx CDR StartTime 2025-04-10 19:24:05 - End Time 2025-04-10 22:24:05 [2025-04-10 22:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879916', 'tblTempUsageDetail_20' ) start [2025-04-10 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879916', 'tblTempUsageDetail_20' ) end [2025-04-10 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879916', 'tblTempVendorCDR_20' ) start [2025-04-10 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879916', 'tblTempVendorCDR_20' ) end [2025-04-10 22:24:18] Production.INFO: ProcessCDR(1,14879916,1,1,2) [2025-04-10 22:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879916', 'tblTempUsageDetail_20' ) start [2025-04-10 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879916', 'tblTempUsageDetail_20' ) end [2025-04-10 22:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 22:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 22:24:22] Production.INFO: ==4621== Releasing lock... [2025-04-10 22:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 22:24:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-10 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 19:25:05 [end_date_ymd] => 2025-04-10 22:25:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 19:25:05' and `end` < '2025-04-10 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-04-10 22:25:18] Production.INFO: count ==691 [2025-04-10 22:25:18] Production.ERROR: pbx CDR StartTime 2025-04-10 19:25:05 - End Time 2025-04-10 22:25:05 [2025-04-10 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879921', 'tblTempUsageDetail_20' ) start [2025-04-10 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879921', 'tblTempUsageDetail_20' ) end [2025-04-10 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879921', 'tblTempVendorCDR_20' ) start [2025-04-10 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879921', 'tblTempVendorCDR_20' ) end [2025-04-10 22:25:18] Production.INFO: ProcessCDR(1,14879921,1,1,2) [2025-04-10 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879921', 'tblTempUsageDetail_20' ) start [2025-04-10 22:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879921', 'tblTempUsageDetail_20' ) end [2025-04-10 22:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 22:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 22:25:21] Production.INFO: ==4691== Releasing lock... [2025-04-10 22:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 22:25:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-10 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 19:26:05 [end_date_ymd] => 2025-04-10 22:26:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 19:26:05' and `end` < '2025-04-10 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-04-10 22:26:18] Production.INFO: count ==689 [2025-04-10 22:26:18] Production.ERROR: pbx CDR StartTime 2025-04-10 19:26:05 - End Time 2025-04-10 22:26:05 [2025-04-10 22:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879926', 'tblTempUsageDetail_20' ) start [2025-04-10 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879926', 'tblTempUsageDetail_20' ) end [2025-04-10 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879926', 'tblTempVendorCDR_20' ) start [2025-04-10 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879926', 'tblTempVendorCDR_20' ) end [2025-04-10 22:26:18] Production.INFO: ProcessCDR(1,14879926,1,1,2) [2025-04-10 22:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879926', 'tblTempUsageDetail_20' ) start [2025-04-10 22:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879926', 'tblTempUsageDetail_20' ) end [2025-04-10 22:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 22:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 22:26:22] Production.INFO: ==4766== Releasing lock... [2025-04-10 22:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 22:26:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-10 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 19:27:05 [end_date_ymd] => 2025-04-10 22:27:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 19:27:05' and `end` < '2025-04-10 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-04-10 22:27:18] Production.INFO: count ==689 [2025-04-10 22:27:18] Production.ERROR: pbx CDR StartTime 2025-04-10 19:27:05 - End Time 2025-04-10 22:27:05 [2025-04-10 22:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879931', 'tblTempUsageDetail_20' ) start [2025-04-10 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879931', 'tblTempUsageDetail_20' ) end [2025-04-10 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879931', 'tblTempVendorCDR_20' ) start [2025-04-10 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879931', 'tblTempVendorCDR_20' ) end [2025-04-10 22:27:18] Production.INFO: ProcessCDR(1,14879931,1,1,2) [2025-04-10 22:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879931', 'tblTempUsageDetail_20' ) start [2025-04-10 22:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879931', 'tblTempUsageDetail_20' ) end [2025-04-10 22:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 22:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 22:27:21] Production.INFO: ==4836== Releasing lock... [2025-04-10 22:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 22:27:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-10 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 19:28:05 [end_date_ymd] => 2025-04-10 22:28:05 [RateCDR] => 1 ) [2025-04-10 22:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 19:28:05' and `end` < '2025-04-10 22:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 22:28:18] Production.INFO: count ==682 [2025-04-10 22:28:18] Production.ERROR: pbx CDR StartTime 2025-04-10 19:28:05 - End Time 2025-04-10 22:28:05 [2025-04-10 22:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879936', 'tblTempUsageDetail_20' ) start [2025-04-10 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879936', 'tblTempUsageDetail_20' ) end [2025-04-10 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879936', 'tblTempVendorCDR_20' ) start [2025-04-10 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879936', 'tblTempVendorCDR_20' ) end [2025-04-10 22:28:18] Production.INFO: ProcessCDR(1,14879936,1,1,2) [2025-04-10 22:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879936', 'tblTempUsageDetail_20' ) start [2025-04-10 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879936', 'tblTempUsageDetail_20' ) end [2025-04-10 22:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 22:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 22:28:22] Production.INFO: ==4913== Releasing lock... [2025-04-10 22:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 22:28:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-10 22:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 19:29:06 [end_date_ymd] => 2025-04-10 22:29:06 [RateCDR] => 1 ) [2025-04-10 22: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-04-10 19:29:06' and `end` < '2025-04-10 22: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-04-10 22:29:19] Production.INFO: count ==682 [2025-04-10 22:29:19] Production.ERROR: pbx CDR StartTime 2025-04-10 19:29:06 - End Time 2025-04-10 22:29:06 [2025-04-10 22:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879941', 'tblTempUsageDetail_20' ) start [2025-04-10 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879941', 'tblTempUsageDetail_20' ) end [2025-04-10 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879941', 'tblTempVendorCDR_20' ) start [2025-04-10 22:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879941', 'tblTempVendorCDR_20' ) end [2025-04-10 22:29:19] Production.INFO: ProcessCDR(1,14879941,1,1,2) [2025-04-10 22:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879941', 'tblTempUsageDetail_20' ) start [2025-04-10 22:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879941', 'tblTempUsageDetail_20' ) end [2025-04-10 22:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 22:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 22:29:22] Production.INFO: ==4986== Releasing lock... [2025-04-10 22:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 22:29:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-10 22:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 19:30:06 [end_date_ymd] => 2025-04-10 22:30:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 19:30:06' and `end` < '2025-04-10 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-04-10 22:30:19] Production.INFO: count ==679 [2025-04-10 22:30:19] Production.ERROR: pbx CDR StartTime 2025-04-10 19:30:06 - End Time 2025-04-10 22:30:06 [2025-04-10 22:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879947', 'tblTempUsageDetail_20' ) start [2025-04-10 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879947', 'tblTempUsageDetail_20' ) end [2025-04-10 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879947', 'tblTempVendorCDR_20' ) start [2025-04-10 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879947', 'tblTempVendorCDR_20' ) end [2025-04-10 22:30:19] Production.INFO: ProcessCDR(1,14879947,1,1,2) [2025-04-10 22:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879947', 'tblTempUsageDetail_20' ) start [2025-04-10 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879947', 'tblTempUsageDetail_20' ) end [2025-04-10 22:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 22:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 22:30:22] Production.INFO: ==5059== Releasing lock... [2025-04-10 22:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 22:30:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-10 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 19:31:05 [end_date_ymd] => 2025-04-10 22:31:05 [RateCDR] => 1 ) [2025-04-10 22:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 19:31:05' and `end` < '2025-04-10 22:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 22:31:18] Production.INFO: count ==676 [2025-04-10 22:31:18] Production.ERROR: pbx CDR StartTime 2025-04-10 19:31:05 - End Time 2025-04-10 22:31:05 [2025-04-10 22:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879952', 'tblTempUsageDetail_20' ) start [2025-04-10 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879952', 'tblTempUsageDetail_20' ) end [2025-04-10 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879952', 'tblTempVendorCDR_20' ) start [2025-04-10 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879952', 'tblTempVendorCDR_20' ) end [2025-04-10 22:31:18] Production.INFO: ProcessCDR(1,14879952,1,1,2) [2025-04-10 22:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879952', 'tblTempUsageDetail_20' ) start [2025-04-10 22:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879952', 'tblTempUsageDetail_20' ) end [2025-04-10 22:31:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 22:31:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 22:31:23] Production.INFO: ==5137== Releasing lock... [2025-04-10 22:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 22:31:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-10 22:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 19:32:05 [end_date_ymd] => 2025-04-10 22:32:05 [RateCDR] => 1 ) [2025-04-10 22:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 19:32:05' and `end` < '2025-04-10 22:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 22:32:18] Production.INFO: count ==680 [2025-04-10 22:32:18] Production.ERROR: pbx CDR StartTime 2025-04-10 19:32:05 - End Time 2025-04-10 22:32:05 [2025-04-10 22:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879957', 'tblTempUsageDetail_20' ) start [2025-04-10 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879957', 'tblTempUsageDetail_20' ) end [2025-04-10 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879957', 'tblTempVendorCDR_20' ) start [2025-04-10 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879957', 'tblTempVendorCDR_20' ) end [2025-04-10 22:32:18] Production.INFO: ProcessCDR(1,14879957,1,1,2) [2025-04-10 22:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879957', 'tblTempUsageDetail_20' ) start [2025-04-10 22:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879957', 'tblTempUsageDetail_20' ) end [2025-04-10 22:32:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 22:32:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 22:32:23] Production.INFO: ==5208== Releasing lock... [2025-04-10 22:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 22:32:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-10 22:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 19:33:06 [end_date_ymd] => 2025-04-10 22:33:06 [RateCDR] => 1 ) [2025-04-10 22: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-04-10 19:33:06' and `end` < '2025-04-10 22: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-04-10 22:33:19] Production.INFO: count ==680 [2025-04-10 22:33:19] Production.ERROR: pbx CDR StartTime 2025-04-10 19:33:06 - End Time 2025-04-10 22:33:06 [2025-04-10 22:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879962', 'tblTempUsageDetail_20' ) start [2025-04-10 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879962', 'tblTempUsageDetail_20' ) end [2025-04-10 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879962', 'tblTempVendorCDR_20' ) start [2025-04-10 22:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879962', 'tblTempVendorCDR_20' ) end [2025-04-10 22:33:19] Production.INFO: ProcessCDR(1,14879962,1,1,2) [2025-04-10 22:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879962', 'tblTempUsageDetail_20' ) start [2025-04-10 22:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879962', 'tblTempUsageDetail_20' ) end [2025-04-10 22:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 22:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 22:33:22] Production.INFO: ==5280== Releasing lock... [2025-04-10 22:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 22:33:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-10 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 19:34:05 [end_date_ymd] => 2025-04-10 22:34:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 19:34:05' and `end` < '2025-04-10 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-04-10 22:34:18] Production.INFO: count ==680 [2025-04-10 22:34:18] Production.ERROR: pbx CDR StartTime 2025-04-10 19:34:05 - End Time 2025-04-10 22:34:05 [2025-04-10 22:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879967', 'tblTempUsageDetail_20' ) start [2025-04-10 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879967', 'tblTempUsageDetail_20' ) end [2025-04-10 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879967', 'tblTempVendorCDR_20' ) start [2025-04-10 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879967', 'tblTempVendorCDR_20' ) end [2025-04-10 22:34:18] Production.INFO: ProcessCDR(1,14879967,1,1,2) [2025-04-10 22:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879967', 'tblTempUsageDetail_20' ) start [2025-04-10 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879967', 'tblTempUsageDetail_20' ) end [2025-04-10 22:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 22:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 22:34:22] Production.INFO: ==5352== Releasing lock... [2025-04-10 22:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 22:34:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-10 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 19:35:05 [end_date_ymd] => 2025-04-10 22:35:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 19:35:05' and `end` < '2025-04-10 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-04-10 22:35:18] Production.INFO: count ==686 [2025-04-10 22:35:18] Production.ERROR: pbx CDR StartTime 2025-04-10 19:35:05 - End Time 2025-04-10 22:35:05 [2025-04-10 22:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879972', 'tblTempUsageDetail_20' ) start [2025-04-10 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879972', 'tblTempUsageDetail_20' ) end [2025-04-10 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879972', 'tblTempVendorCDR_20' ) start [2025-04-10 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879972', 'tblTempVendorCDR_20' ) end [2025-04-10 22:35:18] Production.INFO: ProcessCDR(1,14879972,1,1,2) [2025-04-10 22:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879972', 'tblTempUsageDetail_20' ) start [2025-04-10 22:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879972', 'tblTempUsageDetail_20' ) end [2025-04-10 22:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 22:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 22:35:22] Production.INFO: ==5422== Releasing lock... [2025-04-10 22:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 22:35:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-10 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 19:36:05 [end_date_ymd] => 2025-04-10 22:36:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 19:36:05' and `end` < '2025-04-10 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-04-10 22:36:18] Production.INFO: count ==686 [2025-04-10 22:36:18] Production.ERROR: pbx CDR StartTime 2025-04-10 19:36:05 - End Time 2025-04-10 22:36:05 [2025-04-10 22:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879977', 'tblTempUsageDetail_20' ) start [2025-04-10 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879977', 'tblTempUsageDetail_20' ) end [2025-04-10 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879977', 'tblTempVendorCDR_20' ) start [2025-04-10 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879977', 'tblTempVendorCDR_20' ) end [2025-04-10 22:36:19] Production.INFO: ProcessCDR(1,14879977,1,1,2) [2025-04-10 22:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879977', 'tblTempUsageDetail_20' ) start [2025-04-10 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879977', 'tblTempUsageDetail_20' ) end [2025-04-10 22:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 22:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 22:36:22] Production.INFO: ==5533== Releasing lock... [2025-04-10 22:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 22:36:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-10 22:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 19:37:06 [end_date_ymd] => 2025-04-10 22:37:06 [RateCDR] => 1 ) [2025-04-10 22: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-04-10 19:37:06' and `end` < '2025-04-10 22: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-04-10 22:37:19] Production.INFO: count ==686 [2025-04-10 22:37:19] Production.ERROR: pbx CDR StartTime 2025-04-10 19:37:06 - End Time 2025-04-10 22:37:06 [2025-04-10 22:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879982', 'tblTempUsageDetail_20' ) start [2025-04-10 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879982', 'tblTempUsageDetail_20' ) end [2025-04-10 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879982', 'tblTempVendorCDR_20' ) start [2025-04-10 22:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879982', 'tblTempVendorCDR_20' ) end [2025-04-10 22:37:19] Production.INFO: ProcessCDR(1,14879982,1,1,2) [2025-04-10 22:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879982', 'tblTempUsageDetail_20' ) start [2025-04-10 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879982', 'tblTempUsageDetail_20' ) end [2025-04-10 22:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 22:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 22:37:22] Production.INFO: ==5605== Releasing lock... [2025-04-10 22:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 22:37:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-10 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 19:38:05 [end_date_ymd] => 2025-04-10 22:38:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 19:38:05' and `end` < '2025-04-10 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-04-10 22:38:18] Production.INFO: count ==686 [2025-04-10 22:38:18] Production.ERROR: pbx CDR StartTime 2025-04-10 19:38:05 - End Time 2025-04-10 22:38:05 [2025-04-10 22:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879987', 'tblTempUsageDetail_20' ) start [2025-04-10 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879987', 'tblTempUsageDetail_20' ) end [2025-04-10 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879987', 'tblTempVendorCDR_20' ) start [2025-04-10 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879987', 'tblTempVendorCDR_20' ) end [2025-04-10 22:38:18] Production.INFO: ProcessCDR(1,14879987,1,1,2) [2025-04-10 22:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879987', 'tblTempUsageDetail_20' ) start [2025-04-10 22:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879987', 'tblTempUsageDetail_20' ) end [2025-04-10 22:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 22:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 22:38:22] Production.INFO: ==5677== Releasing lock... [2025-04-10 22:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 22:38:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-10 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 19:39:05 [end_date_ymd] => 2025-04-10 22:39:05 [RateCDR] => 1 ) [2025-04-10 22:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 19:39:05' and `end` < '2025-04-10 22:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 22:39:18] Production.INFO: count ==688 [2025-04-10 22:39:18] Production.ERROR: pbx CDR StartTime 2025-04-10 19:39:05 - End Time 2025-04-10 22:39:05 [2025-04-10 22:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879992', 'tblTempUsageDetail_20' ) start [2025-04-10 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879992', 'tblTempUsageDetail_20' ) end [2025-04-10 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879992', 'tblTempVendorCDR_20' ) start [2025-04-10 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879992', 'tblTempVendorCDR_20' ) end [2025-04-10 22:39:18] Production.INFO: ProcessCDR(1,14879992,1,1,2) [2025-04-10 22:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879992', 'tblTempUsageDetail_20' ) start [2025-04-10 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879992', 'tblTempUsageDetail_20' ) end [2025-04-10 22:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 22:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 22:39:21] Production.INFO: ==5746== Releasing lock... [2025-04-10 22:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 22:39:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-10 22:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 19:40:06 [end_date_ymd] => 2025-04-10 22:40:06 [RateCDR] => 1 ) [2025-04-10 22: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-04-10 19:40:06' and `end` < '2025-04-10 22: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-04-10 22:40:19] Production.INFO: count ==688 [2025-04-10 22:40:19] Production.ERROR: pbx CDR StartTime 2025-04-10 19:40:06 - End Time 2025-04-10 22:40:06 [2025-04-10 22:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879998', 'tblTempUsageDetail_20' ) start [2025-04-10 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14879998', 'tblTempUsageDetail_20' ) end [2025-04-10 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879998', 'tblTempVendorCDR_20' ) start [2025-04-10 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14879998', 'tblTempVendorCDR_20' ) end [2025-04-10 22:40:19] Production.INFO: ProcessCDR(1,14879998,1,1,2) [2025-04-10 22:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14879998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14879998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14879998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14879998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879998', 'tblTempUsageDetail_20' ) start [2025-04-10 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14879998', 'tblTempUsageDetail_20' ) end [2025-04-10 22:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 22:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 22:40:22] Production.INFO: ==5817== Releasing lock... [2025-04-10 22:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 22:40:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-10 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 19:41:05 [end_date_ymd] => 2025-04-10 22:41:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 19:41:05' and `end` < '2025-04-10 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-04-10 22:41:18] Production.INFO: count ==656 [2025-04-10 22:41:18] Production.ERROR: pbx CDR StartTime 2025-04-10 19:41:05 - End Time 2025-04-10 22:41:05 [2025-04-10 22:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880003', 'tblTempUsageDetail_20' ) start [2025-04-10 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880003', 'tblTempUsageDetail_20' ) end [2025-04-10 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880003', 'tblTempVendorCDR_20' ) start [2025-04-10 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880003', 'tblTempVendorCDR_20' ) end [2025-04-10 22:41:18] Production.INFO: ProcessCDR(1,14880003,1,1,2) [2025-04-10 22:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880003', 'tblTempUsageDetail_20' ) start [2025-04-10 22:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880003', 'tblTempUsageDetail_20' ) end [2025-04-10 22:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 22:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 22:41:22] Production.INFO: ==5894== Releasing lock... [2025-04-10 22:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 22:41:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-10 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 19:42:05 [end_date_ymd] => 2025-04-10 22:42:05 [RateCDR] => 1 ) [2025-04-10 22:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 19:42:05' and `end` < '2025-04-10 22:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 22:42:18] Production.INFO: count ==656 [2025-04-10 22:42:18] Production.ERROR: pbx CDR StartTime 2025-04-10 19:42:05 - End Time 2025-04-10 22:42:05 [2025-04-10 22:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880008', 'tblTempUsageDetail_20' ) start [2025-04-10 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880008', 'tblTempUsageDetail_20' ) end [2025-04-10 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880008', 'tblTempVendorCDR_20' ) start [2025-04-10 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880008', 'tblTempVendorCDR_20' ) end [2025-04-10 22:42:18] Production.INFO: ProcessCDR(1,14880008,1,1,2) [2025-04-10 22:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880008', 'tblTempUsageDetail_20' ) start [2025-04-10 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880008', 'tblTempUsageDetail_20' ) end [2025-04-10 22:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 22:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 22:42:22] Production.INFO: ==5973== Releasing lock... [2025-04-10 22:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 22:42:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-10 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 19:43:05 [end_date_ymd] => 2025-04-10 22:43:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 19:43:05' and `end` < '2025-04-10 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-04-10 22:43:18] Production.INFO: count ==656 [2025-04-10 22:43:18] Production.ERROR: pbx CDR StartTime 2025-04-10 19:43:05 - End Time 2025-04-10 22:43:05 [2025-04-10 22:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880013', 'tblTempUsageDetail_20' ) start [2025-04-10 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880013', 'tblTempUsageDetail_20' ) end [2025-04-10 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880013', 'tblTempVendorCDR_20' ) start [2025-04-10 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880013', 'tblTempVendorCDR_20' ) end [2025-04-10 22:43:18] Production.INFO: ProcessCDR(1,14880013,1,1,2) [2025-04-10 22:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880013', 'tblTempUsageDetail_20' ) start [2025-04-10 22:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880013', 'tblTempUsageDetail_20' ) end [2025-04-10 22:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 22:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 22:43:22] Production.INFO: ==6051== Releasing lock... [2025-04-10 22:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 22:43:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-10 22:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 19:44:05 [end_date_ymd] => 2025-04-10 22:44:05 [RateCDR] => 1 ) [2025-04-10 22:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 19:44:05' and `end` < '2025-04-10 22:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 22:44:18] Production.INFO: count ==656 [2025-04-10 22:44:18] Production.ERROR: pbx CDR StartTime 2025-04-10 19:44:05 - End Time 2025-04-10 22:44:05 [2025-04-10 22:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880018', 'tblTempUsageDetail_20' ) start [2025-04-10 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880018', 'tblTempUsageDetail_20' ) end [2025-04-10 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880018', 'tblTempVendorCDR_20' ) start [2025-04-10 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880018', 'tblTempVendorCDR_20' ) end [2025-04-10 22:44:18] Production.INFO: ProcessCDR(1,14880018,1,1,2) [2025-04-10 22:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880018', 'tblTempUsageDetail_20' ) start [2025-04-10 22:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880018', 'tblTempUsageDetail_20' ) end [2025-04-10 22:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 22:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 22:44:22] Production.INFO: ==6120== Releasing lock... [2025-04-10 22:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 22:44:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-10 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 19:45:05 [end_date_ymd] => 2025-04-10 22:45:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 19:45:05' and `end` < '2025-04-10 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-04-10 22:45:18] Production.INFO: count ==653 [2025-04-10 22:45:18] Production.ERROR: pbx CDR StartTime 2025-04-10 19:45:05 - End Time 2025-04-10 22:45:05 [2025-04-10 22:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880023', 'tblTempUsageDetail_20' ) start [2025-04-10 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880023', 'tblTempUsageDetail_20' ) end [2025-04-10 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880023', 'tblTempVendorCDR_20' ) start [2025-04-10 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880023', 'tblTempVendorCDR_20' ) end [2025-04-10 22:45:18] Production.INFO: ProcessCDR(1,14880023,1,1,2) [2025-04-10 22:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880023', 'tblTempUsageDetail_20' ) start [2025-04-10 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880023', 'tblTempUsageDetail_20' ) end [2025-04-10 22:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 22:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 22:45:21] Production.INFO: ==6195== Releasing lock... [2025-04-10 22:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 22:45:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-10 22:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 19:46:05 [end_date_ymd] => 2025-04-10 22:46:05 [RateCDR] => 1 ) [2025-04-10 22:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 19:46:05' and `end` < '2025-04-10 22:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 22:46:18] Production.INFO: count ==652 [2025-04-10 22:46:18] Production.ERROR: pbx CDR StartTime 2025-04-10 19:46:05 - End Time 2025-04-10 22:46:05 [2025-04-10 22:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880028', 'tblTempUsageDetail_20' ) start [2025-04-10 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880028', 'tblTempUsageDetail_20' ) end [2025-04-10 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880028', 'tblTempVendorCDR_20' ) start [2025-04-10 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880028', 'tblTempVendorCDR_20' ) end [2025-04-10 22:46:18] Production.INFO: ProcessCDR(1,14880028,1,1,2) [2025-04-10 22:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880028', 'tblTempUsageDetail_20' ) start [2025-04-10 22:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880028', 'tblTempUsageDetail_20' ) end [2025-04-10 22:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 22:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 22:46:22] Production.INFO: ==6269== Releasing lock... [2025-04-10 22:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 22:46:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-10 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 19:47:05 [end_date_ymd] => 2025-04-10 22:47:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 19:47:05' and `end` < '2025-04-10 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-04-10 22:47:18] Production.INFO: count ==650 [2025-04-10 22:47:18] Production.ERROR: pbx CDR StartTime 2025-04-10 19:47:05 - End Time 2025-04-10 22:47:05 [2025-04-10 22:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880033', 'tblTempUsageDetail_20' ) start [2025-04-10 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880033', 'tblTempUsageDetail_20' ) end [2025-04-10 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880033', 'tblTempVendorCDR_20' ) start [2025-04-10 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880033', 'tblTempVendorCDR_20' ) end [2025-04-10 22:47:18] Production.INFO: ProcessCDR(1,14880033,1,1,2) [2025-04-10 22:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880033', 'tblTempUsageDetail_20' ) start [2025-04-10 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880033', 'tblTempUsageDetail_20' ) end [2025-04-10 22:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 22:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 22:47:21] Production.INFO: ==6346== Releasing lock... [2025-04-10 22:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 22:47:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-10 22:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 19:48:05 [end_date_ymd] => 2025-04-10 22:48:05 [RateCDR] => 1 ) [2025-04-10 22:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 19:48:05' and `end` < '2025-04-10 22:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 22:48:18] Production.INFO: count ==649 [2025-04-10 22:48:18] Production.ERROR: pbx CDR StartTime 2025-04-10 19:48:05 - End Time 2025-04-10 22:48:05 [2025-04-10 22:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880038', 'tblTempUsageDetail_20' ) start [2025-04-10 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880038', 'tblTempUsageDetail_20' ) end [2025-04-10 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880038', 'tblTempVendorCDR_20' ) start [2025-04-10 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880038', 'tblTempVendorCDR_20' ) end [2025-04-10 22:48:18] Production.INFO: ProcessCDR(1,14880038,1,1,2) [2025-04-10 22:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880038', 'tblTempUsageDetail_20' ) start [2025-04-10 22:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880038', 'tblTempUsageDetail_20' ) end [2025-04-10 22:48:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 22:48:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 22:48:23] Production.INFO: ==6418== Releasing lock... [2025-04-10 22:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 22:48:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-10 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 19:49:05 [end_date_ymd] => 2025-04-10 22:49:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 19:49:05' and `end` < '2025-04-10 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-04-10 22:49:18] Production.INFO: count ==644 [2025-04-10 22:49:18] Production.ERROR: pbx CDR StartTime 2025-04-10 19:49:05 - End Time 2025-04-10 22:49:05 [2025-04-10 22:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880043', 'tblTempUsageDetail_20' ) start [2025-04-10 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880043', 'tblTempUsageDetail_20' ) end [2025-04-10 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880043', 'tblTempVendorCDR_20' ) start [2025-04-10 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880043', 'tblTempVendorCDR_20' ) end [2025-04-10 22:49:18] Production.INFO: ProcessCDR(1,14880043,1,1,2) [2025-04-10 22:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880043', 'tblTempUsageDetail_20' ) start [2025-04-10 22:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880043', 'tblTempUsageDetail_20' ) end [2025-04-10 22:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 22:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 22:49:22] Production.INFO: ==6489== Releasing lock... [2025-04-10 22:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 22:49:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-10 22:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 19:50:06 [end_date_ymd] => 2025-04-10 22:50:06 [RateCDR] => 1 ) [2025-04-10 22:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 19:50:06' and `end` < '2025-04-10 22:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 22:50:19] Production.INFO: count ==642 [2025-04-10 22:50:19] Production.ERROR: pbx CDR StartTime 2025-04-10 19:50:06 - End Time 2025-04-10 22:50:06 [2025-04-10 22:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880049', 'tblTempUsageDetail_20' ) start [2025-04-10 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880049', 'tblTempUsageDetail_20' ) end [2025-04-10 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880049', 'tblTempVendorCDR_20' ) start [2025-04-10 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880049', 'tblTempVendorCDR_20' ) end [2025-04-10 22:50:19] Production.INFO: ProcessCDR(1,14880049,1,1,2) [2025-04-10 22:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880049', 'tblTempUsageDetail_20' ) start [2025-04-10 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880049', 'tblTempUsageDetail_20' ) end [2025-04-10 22:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 22:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 22:50:23] Production.INFO: ==6576== Releasing lock... [2025-04-10 22:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 22:50:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-10 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 19:51:05 [end_date_ymd] => 2025-04-10 22:51:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 19:51:05' and `end` < '2025-04-10 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-04-10 22:51:18] Production.INFO: count ==640 [2025-04-10 22:51:18] Production.ERROR: pbx CDR StartTime 2025-04-10 19:51:05 - End Time 2025-04-10 22:51:05 [2025-04-10 22:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880054', 'tblTempUsageDetail_20' ) start [2025-04-10 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880054', 'tblTempUsageDetail_20' ) end [2025-04-10 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880054', 'tblTempVendorCDR_20' ) start [2025-04-10 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880054', 'tblTempVendorCDR_20' ) end [2025-04-10 22:51:18] Production.INFO: ProcessCDR(1,14880054,1,1,2) [2025-04-10 22:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880054', 'tblTempUsageDetail_20' ) start [2025-04-10 22:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880054', 'tblTempUsageDetail_20' ) end [2025-04-10 22:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 22:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 22:51:21] Production.INFO: ==6661== Releasing lock... [2025-04-10 22:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 22:51:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-10 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 19:52:05 [end_date_ymd] => 2025-04-10 22:52:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 19:52:05' and `end` < '2025-04-10 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-04-10 22:52:18] Production.INFO: count ==640 [2025-04-10 22:52:18] Production.ERROR: pbx CDR StartTime 2025-04-10 19:52:05 - End Time 2025-04-10 22:52:05 [2025-04-10 22:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880059', 'tblTempUsageDetail_20' ) start [2025-04-10 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880059', 'tblTempUsageDetail_20' ) end [2025-04-10 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880059', 'tblTempVendorCDR_20' ) start [2025-04-10 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880059', 'tblTempVendorCDR_20' ) end [2025-04-10 22:52:18] Production.INFO: ProcessCDR(1,14880059,1,1,2) [2025-04-10 22:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880059', 'tblTempUsageDetail_20' ) start [2025-04-10 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880059', 'tblTempUsageDetail_20' ) end [2025-04-10 22:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 22:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 22:52:22] Production.INFO: ==6784== Releasing lock... [2025-04-10 22:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 22:52:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-10 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 19:53:05 [end_date_ymd] => 2025-04-10 22:53:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 19:53:05' and `end` < '2025-04-10 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-04-10 22:53:18] Production.INFO: count ==635 [2025-04-10 22:53:18] Production.ERROR: pbx CDR StartTime 2025-04-10 19:53:05 - End Time 2025-04-10 22:53:05 [2025-04-10 22:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880064', 'tblTempUsageDetail_20' ) start [2025-04-10 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880064', 'tblTempUsageDetail_20' ) end [2025-04-10 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880064', 'tblTempVendorCDR_20' ) start [2025-04-10 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880064', 'tblTempVendorCDR_20' ) end [2025-04-10 22:53:18] Production.INFO: ProcessCDR(1,14880064,1,1,2) [2025-04-10 22:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880064', 'tblTempUsageDetail_20' ) start [2025-04-10 22:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880064', 'tblTempUsageDetail_20' ) end [2025-04-10 22:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 22:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 22:53:22] Production.INFO: ==6868== Releasing lock... [2025-04-10 22:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 22:53:22] Production.INFO: 32 MB #Memory Used# [2025-04-10 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 19:54:05 [end_date_ymd] => 2025-04-10 22:54:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 19:54:05' and `end` < '2025-04-10 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-04-10 22:54:18] Production.INFO: count ==634 [2025-04-10 22:54:18] Production.ERROR: pbx CDR StartTime 2025-04-10 19:54:05 - End Time 2025-04-10 22:54:05 [2025-04-10 22:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880069', 'tblTempUsageDetail_20' ) start [2025-04-10 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880069', 'tblTempUsageDetail_20' ) end [2025-04-10 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880069', 'tblTempVendorCDR_20' ) start [2025-04-10 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880069', 'tblTempVendorCDR_20' ) end [2025-04-10 22:54:18] Production.INFO: ProcessCDR(1,14880069,1,1,2) [2025-04-10 22:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880069', 'tblTempUsageDetail_20' ) start [2025-04-10 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880069', 'tblTempUsageDetail_20' ) end [2025-04-10 22:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 22:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 22:54:22] Production.INFO: ==6951== Releasing lock... [2025-04-10 22:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 22:54:22] Production.INFO: 32 MB #Memory Used# [2025-04-10 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 19:55:05 [end_date_ymd] => 2025-04-10 22:55:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 19:55:05' and `end` < '2025-04-10 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-04-10 22:55:18] Production.INFO: count ==636 [2025-04-10 22:55:18] Production.ERROR: pbx CDR StartTime 2025-04-10 19:55:05 - End Time 2025-04-10 22:55:05 [2025-04-10 22:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880074', 'tblTempUsageDetail_20' ) start [2025-04-10 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880074', 'tblTempUsageDetail_20' ) end [2025-04-10 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880074', 'tblTempVendorCDR_20' ) start [2025-04-10 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880074', 'tblTempVendorCDR_20' ) end [2025-04-10 22:55:18] Production.INFO: ProcessCDR(1,14880074,1,1,2) [2025-04-10 22:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880074', 'tblTempUsageDetail_20' ) start [2025-04-10 22:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880074', 'tblTempUsageDetail_20' ) end [2025-04-10 22:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 22:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 22:55:21] Production.INFO: ==7043== Releasing lock... [2025-04-10 22:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 22:55:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-10 22:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 19:56:06 [end_date_ymd] => 2025-04-10 22:56:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 19:56:06' and `end` < '2025-04-10 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-04-10 22:56:19] Production.INFO: count ==637 [2025-04-10 22:56:19] Production.ERROR: pbx CDR StartTime 2025-04-10 19:56:06 - End Time 2025-04-10 22:56:06 [2025-04-10 22:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880079', 'tblTempUsageDetail_20' ) start [2025-04-10 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880079', 'tblTempUsageDetail_20' ) end [2025-04-10 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880079', 'tblTempVendorCDR_20' ) start [2025-04-10 22:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880079', 'tblTempVendorCDR_20' ) end [2025-04-10 22:56:19] Production.INFO: ProcessCDR(1,14880079,1,1,2) [2025-04-10 22:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880079', 'tblTempUsageDetail_20' ) start [2025-04-10 22:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880079', 'tblTempUsageDetail_20' ) end [2025-04-10 22:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 22:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 22:56:22] Production.INFO: ==7132== Releasing lock... [2025-04-10 22:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 22:56:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-10 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 19:57:05 [end_date_ymd] => 2025-04-10 22:57:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 19:57:05' and `end` < '2025-04-10 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-04-10 22:57:18] Production.INFO: count ==635 [2025-04-10 22:57:18] Production.ERROR: pbx CDR StartTime 2025-04-10 19:57:05 - End Time 2025-04-10 22:57:05 [2025-04-10 22:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880084', 'tblTempUsageDetail_20' ) start [2025-04-10 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880084', 'tblTempUsageDetail_20' ) end [2025-04-10 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880084', 'tblTempVendorCDR_20' ) start [2025-04-10 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880084', 'tblTempVendorCDR_20' ) end [2025-04-10 22:57:18] Production.INFO: ProcessCDR(1,14880084,1,1,2) [2025-04-10 22:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880084', 'tblTempUsageDetail_20' ) start [2025-04-10 22:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880084', 'tblTempUsageDetail_20' ) end [2025-04-10 22:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 22:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 22:57:22] Production.INFO: ==7217== Releasing lock... [2025-04-10 22:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 22:57:22] Production.INFO: 32 MB #Memory Used# [2025-04-10 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 19:58:05 [end_date_ymd] => 2025-04-10 22:58:05 [RateCDR] => 1 ) [2025-04-10 22:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 19:58:05' and `end` < '2025-04-10 22:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 22:58:18] Production.INFO: count ==637 [2025-04-10 22:58:18] Production.ERROR: pbx CDR StartTime 2025-04-10 19:58:05 - End Time 2025-04-10 22:58:05 [2025-04-10 22:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880089', 'tblTempUsageDetail_20' ) start [2025-04-10 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880089', 'tblTempUsageDetail_20' ) end [2025-04-10 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880089', 'tblTempVendorCDR_20' ) start [2025-04-10 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880089', 'tblTempVendorCDR_20' ) end [2025-04-10 22:58:18] Production.INFO: ProcessCDR(1,14880089,1,1,2) [2025-04-10 22:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880089', 'tblTempUsageDetail_20' ) start [2025-04-10 22:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880089', 'tblTempUsageDetail_20' ) end [2025-04-10 22:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 22:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 22:58:22] Production.INFO: ==7302== Releasing lock... [2025-04-10 22:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 22:58:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-10 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 19:59:05 [end_date_ymd] => 2025-04-10 22:59:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 19:59:05' and `end` < '2025-04-10 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-04-10 22:59:18] Production.INFO: count ==636 [2025-04-10 22:59:18] Production.ERROR: pbx CDR StartTime 2025-04-10 19:59:05 - End Time 2025-04-10 22:59:05 [2025-04-10 22:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880094', 'tblTempUsageDetail_20' ) start [2025-04-10 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880094', 'tblTempUsageDetail_20' ) end [2025-04-10 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880094', 'tblTempVendorCDR_20' ) start [2025-04-10 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880094', 'tblTempVendorCDR_20' ) end [2025-04-10 22:59:18] Production.INFO: ProcessCDR(1,14880094,1,1,2) [2025-04-10 22:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 22:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880094', 'tblTempUsageDetail_20' ) start [2025-04-10 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880094', 'tblTempUsageDetail_20' ) end [2025-04-10 22:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 22:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 22:59:21] Production.INFO: ==7383== Releasing lock... [2025-04-10 22:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 22:59:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-10 23:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 20:00:07 [end_date_ymd] => 2025-04-10 23:00:07 [RateCDR] => 1 ) [2025-04-10 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-04-10 20:00:07' and `end` < '2025-04-10 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-04-10 23:00:20] Production.INFO: count ==636 [2025-04-10 23:00:20] Production.ERROR: pbx CDR StartTime 2025-04-10 20:00:07 - End Time 2025-04-10 23:00:07 [2025-04-10 23:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880100', 'tblTempUsageDetail_20' ) start [2025-04-10 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880100', 'tblTempUsageDetail_20' ) end [2025-04-10 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880100', 'tblTempVendorCDR_20' ) start [2025-04-10 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880100', 'tblTempVendorCDR_20' ) end [2025-04-10 23:00:20] Production.INFO: ProcessCDR(1,14880100,1,1,2) [2025-04-10 23:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880100', 'tblTempUsageDetail_20' ) start [2025-04-10 23:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880100', 'tblTempUsageDetail_20' ) end [2025-04-10 23:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 23:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 23:00:23] Production.INFO: ==7472== Releasing lock... [2025-04-10 23:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 23:00:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-10 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 20:01:05 [end_date_ymd] => 2025-04-10 23:01:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 20:01:05' and `end` < '2025-04-10 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-04-10 23:01:18] Production.INFO: count ==608 [2025-04-10 23:01:18] Production.ERROR: pbx CDR StartTime 2025-04-10 20:01:05 - End Time 2025-04-10 23:01:05 [2025-04-10 23:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880105', 'tblTempUsageDetail_20' ) start [2025-04-10 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880105', 'tblTempUsageDetail_20' ) end [2025-04-10 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880105', 'tblTempVendorCDR_20' ) start [2025-04-10 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880105', 'tblTempVendorCDR_20' ) end [2025-04-10 23:01:18] Production.INFO: ProcessCDR(1,14880105,1,1,2) [2025-04-10 23:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880105', 'tblTempUsageDetail_20' ) start [2025-04-10 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880105', 'tblTempUsageDetail_20' ) end [2025-04-10 23:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 23:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 23:01:21] Production.INFO: ==7613== Releasing lock... [2025-04-10 23:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 23:01:21] Production.INFO: 32 MB #Memory Used# [2025-04-10 23:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 20:02:06 [end_date_ymd] => 2025-04-10 23:02:06 [RateCDR] => 1 ) [2025-04-10 23:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 20:02:06' and `end` < '2025-04-10 23:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 23:02:18] Production.INFO: count ==605 [2025-04-10 23:02:18] Production.ERROR: pbx CDR StartTime 2025-04-10 20:02:06 - End Time 2025-04-10 23:02:06 [2025-04-10 23:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880110', 'tblTempUsageDetail_20' ) start [2025-04-10 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880110', 'tblTempUsageDetail_20' ) end [2025-04-10 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880110', 'tblTempVendorCDR_20' ) start [2025-04-10 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880110', 'tblTempVendorCDR_20' ) end [2025-04-10 23:02:18] Production.INFO: ProcessCDR(1,14880110,1,1,2) [2025-04-10 23:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880110', 'tblTempUsageDetail_20' ) start [2025-04-10 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880110', 'tblTempUsageDetail_20' ) end [2025-04-10 23:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 23:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 23:02:22] Production.INFO: ==7739== Releasing lock... [2025-04-10 23:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 23:02:22] Production.INFO: 32 MB #Memory Used# [2025-04-10 23:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 20:03:05 [end_date_ymd] => 2025-04-10 23:03:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 20:03:05' and `end` < '2025-04-10 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-04-10 23:03:18] Production.INFO: count ==604 [2025-04-10 23:03:18] Production.ERROR: pbx CDR StartTime 2025-04-10 20:03:05 - End Time 2025-04-10 23:03:05 [2025-04-10 23:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880114', 'tblTempUsageDetail_20' ) start [2025-04-10 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880114', 'tblTempUsageDetail_20' ) end [2025-04-10 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880114', 'tblTempVendorCDR_20' ) start [2025-04-10 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880114', 'tblTempVendorCDR_20' ) end [2025-04-10 23:03:18] Production.INFO: ProcessCDR(1,14880114,1,1,2) [2025-04-10 23:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880114', 'tblTempUsageDetail_20' ) start [2025-04-10 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880114', 'tblTempUsageDetail_20' ) end [2025-04-10 23:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 23:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 23:03:22] Production.INFO: ==7826== Releasing lock... [2025-04-10 23:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 23:03:22] Production.INFO: 32 MB #Memory Used# [2025-04-10 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 20:04:05 [end_date_ymd] => 2025-04-10 23:04:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 20:04:05' and `end` < '2025-04-10 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-04-10 23:04:18] Production.INFO: count ==604 [2025-04-10 23:04:18] Production.ERROR: pbx CDR StartTime 2025-04-10 20:04:05 - End Time 2025-04-10 23:04:05 [2025-04-10 23:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880120', 'tblTempUsageDetail_20' ) start [2025-04-10 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880120', 'tblTempUsageDetail_20' ) end [2025-04-10 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880120', 'tblTempVendorCDR_20' ) start [2025-04-10 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880120', 'tblTempVendorCDR_20' ) end [2025-04-10 23:04:18] Production.INFO: ProcessCDR(1,14880120,1,1,2) [2025-04-10 23:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880120', 'tblTempUsageDetail_20' ) start [2025-04-10 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880120', 'tblTempUsageDetail_20' ) end [2025-04-10 23:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 23:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 23:04:21] Production.INFO: ==7936== Releasing lock... [2025-04-10 23:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 23:04:21] Production.INFO: 32 MB #Memory Used# [2025-04-10 23:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 20:05:06 [end_date_ymd] => 2025-04-10 23:05:06 [RateCDR] => 1 ) [2025-04-10 23:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 20:05:06' and `end` < '2025-04-10 23:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 23:05:18] Production.INFO: count ==602 [2025-04-10 23:05:18] Production.ERROR: pbx CDR StartTime 2025-04-10 20:05:06 - End Time 2025-04-10 23:05:06 [2025-04-10 23:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880125', 'tblTempUsageDetail_20' ) start [2025-04-10 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880125', 'tblTempUsageDetail_20' ) end [2025-04-10 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880125', 'tblTempVendorCDR_20' ) start [2025-04-10 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880125', 'tblTempVendorCDR_20' ) end [2025-04-10 23:05:18] Production.INFO: ProcessCDR(1,14880125,1,1,2) [2025-04-10 23:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880125', 'tblTempUsageDetail_20' ) start [2025-04-10 23:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880125', 'tblTempUsageDetail_20' ) end [2025-04-10 23:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 23:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 23:05:22] Production.INFO: ==8135== Releasing lock... [2025-04-10 23:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 23:05:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-10 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 20:06:05 [end_date_ymd] => 2025-04-10 23:06:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 20:06:05' and `end` < '2025-04-10 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-04-10 23:06:18] Production.INFO: count ==602 [2025-04-10 23:06:18] Production.ERROR: pbx CDR StartTime 2025-04-10 20:06:05 - End Time 2025-04-10 23:06:05 [2025-04-10 23:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880130', 'tblTempUsageDetail_20' ) start [2025-04-10 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880130', 'tblTempUsageDetail_20' ) end [2025-04-10 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880130', 'tblTempVendorCDR_20' ) start [2025-04-10 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880130', 'tblTempVendorCDR_20' ) end [2025-04-10 23:06:18] Production.INFO: ProcessCDR(1,14880130,1,1,2) [2025-04-10 23:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880130', 'tblTempUsageDetail_20' ) start [2025-04-10 23:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880130', 'tblTempUsageDetail_20' ) end [2025-04-10 23:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 23:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 23:06:22] Production.INFO: ==8241== Releasing lock... [2025-04-10 23:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 23:06:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-10 23:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 20:07:05 [end_date_ymd] => 2025-04-10 23:07:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 20:07:05' and `end` < '2025-04-10 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-04-10 23:07:18] Production.INFO: count ==601 [2025-04-10 23:07:18] Production.ERROR: pbx CDR StartTime 2025-04-10 20:07:05 - End Time 2025-04-10 23:07:05 [2025-04-10 23:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880135', 'tblTempUsageDetail_20' ) start [2025-04-10 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880135', 'tblTempUsageDetail_20' ) end [2025-04-10 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880135', 'tblTempVendorCDR_20' ) start [2025-04-10 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880135', 'tblTempVendorCDR_20' ) end [2025-04-10 23:07:18] Production.INFO: ProcessCDR(1,14880135,1,1,2) [2025-04-10 23:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880135', 'tblTempUsageDetail_20' ) start [2025-04-10 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880135', 'tblTempUsageDetail_20' ) end [2025-04-10 23:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 23:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 23:07:22] Production.INFO: ==8368== Releasing lock... [2025-04-10 23:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 23:07:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-10 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 20:08:05 [end_date_ymd] => 2025-04-10 23:08:05 [RateCDR] => 1 ) [2025-04-10 23:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 20:08:05' and `end` < '2025-04-10 23:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 23:08:17] Production.INFO: count ==600 [2025-04-10 23:08:17] Production.ERROR: pbx CDR StartTime 2025-04-10 20:08:05 - End Time 2025-04-10 23:08:05 [2025-04-10 23:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880140', 'tblTempUsageDetail_20' ) start [2025-04-10 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880140', 'tblTempUsageDetail_20' ) end [2025-04-10 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880140', 'tblTempVendorCDR_20' ) start [2025-04-10 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880140', 'tblTempVendorCDR_20' ) end [2025-04-10 23:08:17] Production.INFO: ProcessCDR(1,14880140,1,1,2) [2025-04-10 23:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880140', 'tblTempUsageDetail_20' ) start [2025-04-10 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880140', 'tblTempUsageDetail_20' ) end [2025-04-10 23:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 23:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 23:08:21] Production.INFO: ==8533== Releasing lock... [2025-04-10 23:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 23:08:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-10 23:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 20:09:06 [end_date_ymd] => 2025-04-10 23:09:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 20:09:06' and `end` < '2025-04-10 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-04-10 23:09:19] Production.INFO: count ==597 [2025-04-10 23:09:19] Production.ERROR: pbx CDR StartTime 2025-04-10 20:09:06 - End Time 2025-04-10 23:09:06 [2025-04-10 23:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880145', 'tblTempUsageDetail_20' ) start [2025-04-10 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880145', 'tblTempUsageDetail_20' ) end [2025-04-10 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880145', 'tblTempVendorCDR_20' ) start [2025-04-10 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880145', 'tblTempVendorCDR_20' ) end [2025-04-10 23:09:19] Production.INFO: ProcessCDR(1,14880145,1,1,2) [2025-04-10 23:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880145', 'tblTempUsageDetail_20' ) start [2025-04-10 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880145', 'tblTempUsageDetail_20' ) end [2025-04-10 23:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 23:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 23:09:22] Production.INFO: ==8620== Releasing lock... [2025-04-10 23:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 23:09:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-10 23:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 20:10:06 [end_date_ymd] => 2025-04-10 23:10:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 20:10:06' and `end` < '2025-04-10 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-04-10 23:10:19] Production.INFO: count ==596 [2025-04-10 23:10:19] Production.ERROR: pbx CDR StartTime 2025-04-10 20:10:06 - End Time 2025-04-10 23:10:06 [2025-04-10 23:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880151', 'tblTempUsageDetail_20' ) start [2025-04-10 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880151', 'tblTempUsageDetail_20' ) end [2025-04-10 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880151', 'tblTempVendorCDR_20' ) start [2025-04-10 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880151', 'tblTempVendorCDR_20' ) end [2025-04-10 23:10:19] Production.INFO: ProcessCDR(1,14880151,1,1,2) [2025-04-10 23:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880151', 'tblTempUsageDetail_20' ) start [2025-04-10 23:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880151', 'tblTempUsageDetail_20' ) end [2025-04-10 23:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 23:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 23:10:24] Production.INFO: ==8706== Releasing lock... [2025-04-10 23:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 23:10:24] Production.INFO: 31.75 MB #Memory Used# [2025-04-10 23:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 20:11:05 [end_date_ymd] => 2025-04-10 23:11:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 20:11:05' and `end` < '2025-04-10 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-04-10 23:11:18] Production.INFO: count ==595 [2025-04-10 23:11:18] Production.ERROR: pbx CDR StartTime 2025-04-10 20:11:05 - End Time 2025-04-10 23:11:05 [2025-04-10 23:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880156', 'tblTempUsageDetail_20' ) start [2025-04-10 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880156', 'tblTempUsageDetail_20' ) end [2025-04-10 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880156', 'tblTempVendorCDR_20' ) start [2025-04-10 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880156', 'tblTempVendorCDR_20' ) end [2025-04-10 23:11:18] Production.INFO: ProcessCDR(1,14880156,1,1,2) [2025-04-10 23:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880156', 'tblTempUsageDetail_20' ) start [2025-04-10 23:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880156', 'tblTempUsageDetail_20' ) end [2025-04-10 23:11:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 23:11:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 23:11:23] Production.INFO: ==8797== Releasing lock... [2025-04-10 23:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 23:11:23] Production.INFO: 31.75 MB #Memory Used# [2025-04-10 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 20:12:05 [end_date_ymd] => 2025-04-10 23:12:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 20:12:05' and `end` < '2025-04-10 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-04-10 23:12:18] Production.INFO: count ==595 [2025-04-10 23:12:18] Production.ERROR: pbx CDR StartTime 2025-04-10 20:12:05 - End Time 2025-04-10 23:12:05 [2025-04-10 23:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880161', 'tblTempUsageDetail_20' ) start [2025-04-10 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880161', 'tblTempUsageDetail_20' ) end [2025-04-10 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880161', 'tblTempVendorCDR_20' ) start [2025-04-10 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880161', 'tblTempVendorCDR_20' ) end [2025-04-10 23:12:18] Production.INFO: ProcessCDR(1,14880161,1,1,2) [2025-04-10 23:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880161', 'tblTempUsageDetail_20' ) start [2025-04-10 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880161', 'tblTempUsageDetail_20' ) end [2025-04-10 23:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 23:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 23:12:21] Production.INFO: ==8958== Releasing lock... [2025-04-10 23:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 23:12:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-10 23:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 20:13:06 [end_date_ymd] => 2025-04-10 23:13:06 [RateCDR] => 1 ) [2025-04-10 23:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 20:13:06' and `end` < '2025-04-10 23:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 23:13:19] Production.INFO: count ==592 [2025-04-10 23:13:19] Production.ERROR: pbx CDR StartTime 2025-04-10 20:13:06 - End Time 2025-04-10 23:13:06 [2025-04-10 23:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 23:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880166', 'tblTempUsageDetail_20' ) start [2025-04-10 23:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880166', 'tblTempUsageDetail_20' ) end [2025-04-10 23:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880166', 'tblTempVendorCDR_20' ) start [2025-04-10 23:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880166', 'tblTempVendorCDR_20' ) end [2025-04-10 23:13:19] Production.INFO: ProcessCDR(1,14880166,1,1,2) [2025-04-10 23:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880166', 'tblTempUsageDetail_20' ) start [2025-04-10 23:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880166', 'tblTempUsageDetail_20' ) end [2025-04-10 23:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 23:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 23:13:22] Production.INFO: ==9041== Releasing lock... [2025-04-10 23:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 23:13:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-10 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 20:14:05 [end_date_ymd] => 2025-04-10 23:14:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 20:14:05' and `end` < '2025-04-10 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-04-10 23:14:18] Production.INFO: count ==592 [2025-04-10 23:14:18] Production.ERROR: pbx CDR StartTime 2025-04-10 20:14:05 - End Time 2025-04-10 23:14:05 [2025-04-10 23:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880171', 'tblTempUsageDetail_20' ) start [2025-04-10 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880171', 'tblTempUsageDetail_20' ) end [2025-04-10 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880171', 'tblTempVendorCDR_20' ) start [2025-04-10 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880171', 'tblTempVendorCDR_20' ) end [2025-04-10 23:14:18] Production.INFO: ProcessCDR(1,14880171,1,1,2) [2025-04-10 23:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880171', 'tblTempUsageDetail_20' ) start [2025-04-10 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880171', 'tblTempUsageDetail_20' ) end [2025-04-10 23:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 23:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 23:14:21] Production.INFO: ==9125== Releasing lock... [2025-04-10 23:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 23:14:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-10 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 20:15:05 [end_date_ymd] => 2025-04-10 23:15:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 20:15:05' and `end` < '2025-04-10 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-04-10 23:15:18] Production.INFO: count ==592 [2025-04-10 23:15:18] Production.ERROR: pbx CDR StartTime 2025-04-10 20:15:05 - End Time 2025-04-10 23:15:05 [2025-04-10 23:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880176', 'tblTempUsageDetail_20' ) start [2025-04-10 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880176', 'tblTempUsageDetail_20' ) end [2025-04-10 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880176', 'tblTempVendorCDR_20' ) start [2025-04-10 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880176', 'tblTempVendorCDR_20' ) end [2025-04-10 23:15:18] Production.INFO: ProcessCDR(1,14880176,1,1,2) [2025-04-10 23:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880176', 'tblTempUsageDetail_20' ) start [2025-04-10 23:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880176', 'tblTempUsageDetail_20' ) end [2025-04-10 23:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 23:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 23:15:22] Production.INFO: ==9288== Releasing lock... [2025-04-10 23:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 23:15:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-10 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 20:16:05 [end_date_ymd] => 2025-04-10 23:16:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 20:16:05' and `end` < '2025-04-10 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-04-10 23:16:18] Production.INFO: count ==588 [2025-04-10 23:16:18] Production.ERROR: pbx CDR StartTime 2025-04-10 20:16:05 - End Time 2025-04-10 23:16:05 [2025-04-10 23:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880181', 'tblTempUsageDetail_20' ) start [2025-04-10 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880181', 'tblTempUsageDetail_20' ) end [2025-04-10 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880181', 'tblTempVendorCDR_20' ) start [2025-04-10 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880181', 'tblTempVendorCDR_20' ) end [2025-04-10 23:16:18] Production.INFO: ProcessCDR(1,14880181,1,1,2) [2025-04-10 23:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880181', 'tblTempUsageDetail_20' ) start [2025-04-10 23:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880181', 'tblTempUsageDetail_20' ) end [2025-04-10 23:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 23:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 23:16:21] Production.INFO: ==9383== Releasing lock... [2025-04-10 23:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 23:16:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-10 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 20:17:05 [end_date_ymd] => 2025-04-10 23:17:05 [RateCDR] => 1 ) [2025-04-10 23:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 20:17:05' and `end` < '2025-04-10 23:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 23:17:18] Production.INFO: count ==588 [2025-04-10 23:17:18] Production.ERROR: pbx CDR StartTime 2025-04-10 20:17:05 - End Time 2025-04-10 23:17:05 [2025-04-10 23:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880186', 'tblTempUsageDetail_20' ) start [2025-04-10 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880186', 'tblTempUsageDetail_20' ) end [2025-04-10 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880186', 'tblTempVendorCDR_20' ) start [2025-04-10 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880186', 'tblTempVendorCDR_20' ) end [2025-04-10 23:17:18] Production.INFO: ProcessCDR(1,14880186,1,1,2) [2025-04-10 23:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880186', 'tblTempUsageDetail_20' ) start [2025-04-10 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880186', 'tblTempUsageDetail_20' ) end [2025-04-10 23:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 23:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 23:17:21] Production.INFO: ==9464== Releasing lock... [2025-04-10 23:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 23:17:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-10 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 20:18:05 [end_date_ymd] => 2025-04-10 23:18:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 20:18:05' and `end` < '2025-04-10 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-04-10 23:18:18] Production.INFO: count ==588 [2025-04-10 23:18:18] Production.ERROR: pbx CDR StartTime 2025-04-10 20:18:05 - End Time 2025-04-10 23:18:05 [2025-04-10 23:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880191', 'tblTempUsageDetail_20' ) start [2025-04-10 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880191', 'tblTempUsageDetail_20' ) end [2025-04-10 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880191', 'tblTempVendorCDR_20' ) start [2025-04-10 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880191', 'tblTempVendorCDR_20' ) end [2025-04-10 23:18:18] Production.INFO: ProcessCDR(1,14880191,1,1,2) [2025-04-10 23:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880191', 'tblTempUsageDetail_20' ) start [2025-04-10 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880191', 'tblTempUsageDetail_20' ) end [2025-04-10 23:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 23:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 23:18:22] Production.INFO: ==9557== Releasing lock... [2025-04-10 23:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 23:18:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-10 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 20:19:05 [end_date_ymd] => 2025-04-10 23:19:05 [RateCDR] => 1 ) [2025-04-10 23:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 20:19:05' and `end` < '2025-04-10 23:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 23:19:18] Production.INFO: count ==588 [2025-04-10 23:19:18] Production.ERROR: pbx CDR StartTime 2025-04-10 20:19:05 - End Time 2025-04-10 23:19:05 [2025-04-10 23:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880196', 'tblTempUsageDetail_20' ) start [2025-04-10 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880196', 'tblTempUsageDetail_20' ) end [2025-04-10 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880196', 'tblTempVendorCDR_20' ) start [2025-04-10 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880196', 'tblTempVendorCDR_20' ) end [2025-04-10 23:19:18] Production.INFO: ProcessCDR(1,14880196,1,1,2) [2025-04-10 23:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880196', 'tblTempUsageDetail_20' ) start [2025-04-10 23:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880196', 'tblTempUsageDetail_20' ) end [2025-04-10 23:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 23:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 23:19:21] Production.INFO: ==9644== Releasing lock... [2025-04-10 23:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 23:19:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-10 23:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 20:20:07 [end_date_ymd] => 2025-04-10 23:20:07 [RateCDR] => 1 ) [2025-04-10 23: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-04-10 20:20:07' and `end` < '2025-04-10 23: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-04-10 23:20:19] Production.INFO: count ==584 [2025-04-10 23:20:19] Production.ERROR: pbx CDR StartTime 2025-04-10 20:20:07 - End Time 2025-04-10 23:20:07 [2025-04-10 23:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880202', 'tblTempUsageDetail_20' ) start [2025-04-10 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880202', 'tblTempUsageDetail_20' ) end [2025-04-10 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880202', 'tblTempVendorCDR_20' ) start [2025-04-10 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880202', 'tblTempVendorCDR_20' ) end [2025-04-10 23:20:19] Production.INFO: ProcessCDR(1,14880202,1,1,2) [2025-04-10 23:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880202', 'tblTempUsageDetail_20' ) start [2025-04-10 23:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880202', 'tblTempUsageDetail_20' ) end [2025-04-10 23:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 23:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 23:20:23] Production.INFO: ==9732== Releasing lock... [2025-04-10 23:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 23:20:23] Production.INFO: 31.75 MB #Memory Used# [2025-04-10 23:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 20:21:05 [end_date_ymd] => 2025-04-10 23:21:05 [RateCDR] => 1 ) [2025-04-10 23:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 20:21:05' and `end` < '2025-04-10 23:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 23:21:18] Production.INFO: count ==607 [2025-04-10 23:21:18] Production.ERROR: pbx CDR StartTime 2025-04-10 20:21:05 - End Time 2025-04-10 23:21:05 [2025-04-10 23:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880207', 'tblTempUsageDetail_20' ) start [2025-04-10 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880207', 'tblTempUsageDetail_20' ) end [2025-04-10 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880207', 'tblTempVendorCDR_20' ) start [2025-04-10 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880207', 'tblTempVendorCDR_20' ) end [2025-04-10 23:21:18] Production.INFO: ProcessCDR(1,14880207,1,1,2) [2025-04-10 23:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880207', 'tblTempUsageDetail_20' ) start [2025-04-10 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880207', 'tblTempUsageDetail_20' ) end [2025-04-10 23:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 23:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 23:21:22] Production.INFO: ==9827== Releasing lock... [2025-04-10 23:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 23:21:22] Production.INFO: 32 MB #Memory Used# [2025-04-10 23:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 20:22:06 [end_date_ymd] => 2025-04-10 23:22:06 [RateCDR] => 1 ) [2025-04-10 23: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-04-10 20:22:06' and `end` < '2025-04-10 23: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-04-10 23:22:18] Production.INFO: count ==606 [2025-04-10 23:22:18] Production.ERROR: pbx CDR StartTime 2025-04-10 20:22:06 - End Time 2025-04-10 23:22:06 [2025-04-10 23:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880212', 'tblTempUsageDetail_20' ) start [2025-04-10 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880212', 'tblTempUsageDetail_20' ) end [2025-04-10 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880212', 'tblTempVendorCDR_20' ) start [2025-04-10 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880212', 'tblTempVendorCDR_20' ) end [2025-04-10 23:22:18] Production.INFO: ProcessCDR(1,14880212,1,1,2) [2025-04-10 23:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880212', 'tblTempUsageDetail_20' ) start [2025-04-10 23:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880212', 'tblTempUsageDetail_20' ) end [2025-04-10 23:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 23:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 23:22:22] Production.INFO: ==9910== Releasing lock... [2025-04-10 23:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 23:22:22] Production.INFO: 32 MB #Memory Used# [2025-04-10 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 20:23:05 [end_date_ymd] => 2025-04-10 23:23:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 20:23:05' and `end` < '2025-04-10 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-04-10 23:23:18] Production.INFO: count ==603 [2025-04-10 23:23:18] Production.ERROR: pbx CDR StartTime 2025-04-10 20:23:05 - End Time 2025-04-10 23:23:05 [2025-04-10 23:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880217', 'tblTempUsageDetail_20' ) start [2025-04-10 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880217', 'tblTempUsageDetail_20' ) end [2025-04-10 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880217', 'tblTempVendorCDR_20' ) start [2025-04-10 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880217', 'tblTempVendorCDR_20' ) end [2025-04-10 23:23:18] Production.INFO: ProcessCDR(1,14880217,1,1,2) [2025-04-10 23:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880217', 'tblTempUsageDetail_20' ) start [2025-04-10 23:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880217', 'tblTempUsageDetail_20' ) end [2025-04-10 23:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 23:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 23:23:22] Production.INFO: ==10039== Releasing lock... [2025-04-10 23:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 23:23:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-10 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 20:24:05 [end_date_ymd] => 2025-04-10 23:24:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 20:24:05' and `end` < '2025-04-10 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-04-10 23:24:18] Production.INFO: count ==603 [2025-04-10 23:24:18] Production.ERROR: pbx CDR StartTime 2025-04-10 20:24:05 - End Time 2025-04-10 23:24:05 [2025-04-10 23:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880222', 'tblTempUsageDetail_20' ) start [2025-04-10 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880222', 'tblTempUsageDetail_20' ) end [2025-04-10 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880222', 'tblTempVendorCDR_20' ) start [2025-04-10 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880222', 'tblTempVendorCDR_20' ) end [2025-04-10 23:24:18] Production.INFO: ProcessCDR(1,14880222,1,1,2) [2025-04-10 23:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880222', 'tblTempUsageDetail_20' ) start [2025-04-10 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880222', 'tblTempUsageDetail_20' ) end [2025-04-10 23:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 23:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 23:24:22] Production.INFO: ==10126== Releasing lock... [2025-04-10 23:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 23:24:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-10 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 20:25:05 [end_date_ymd] => 2025-04-10 23:25:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 20:25:05' and `end` < '2025-04-10 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-04-10 23:25:17] Production.INFO: count ==601 [2025-04-10 23:25:18] Production.ERROR: pbx CDR StartTime 2025-04-10 20:25:05 - End Time 2025-04-10 23:25:05 [2025-04-10 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880227', 'tblTempUsageDetail_20' ) start [2025-04-10 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880227', 'tblTempUsageDetail_20' ) end [2025-04-10 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880227', 'tblTempVendorCDR_20' ) start [2025-04-10 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880227', 'tblTempVendorCDR_20' ) end [2025-04-10 23:25:18] Production.INFO: ProcessCDR(1,14880227,1,1,2) [2025-04-10 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880227', 'tblTempUsageDetail_20' ) start [2025-04-10 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880227', 'tblTempUsageDetail_20' ) end [2025-04-10 23:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 23:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 23:25:21] Production.INFO: ==10211== Releasing lock... [2025-04-10 23:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 23:25:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-10 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 20:26:05 [end_date_ymd] => 2025-04-10 23:26:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 20:26:05' and `end` < '2025-04-10 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-04-10 23:26:18] Production.INFO: count ==601 [2025-04-10 23:26:18] Production.ERROR: pbx CDR StartTime 2025-04-10 20:26:05 - End Time 2025-04-10 23:26:05 [2025-04-10 23:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880232', 'tblTempUsageDetail_20' ) start [2025-04-10 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880232', 'tblTempUsageDetail_20' ) end [2025-04-10 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880232', 'tblTempVendorCDR_20' ) start [2025-04-10 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880232', 'tblTempVendorCDR_20' ) end [2025-04-10 23:26:18] Production.INFO: ProcessCDR(1,14880232,1,1,2) [2025-04-10 23:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880232', 'tblTempUsageDetail_20' ) start [2025-04-10 23:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880232', 'tblTempUsageDetail_20' ) end [2025-04-10 23:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 23:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 23:26:22] Production.INFO: ==10302== Releasing lock... [2025-04-10 23:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 23:26:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-10 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 20:27:05 [end_date_ymd] => 2025-04-10 23:27:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 20:27:05' and `end` < '2025-04-10 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-04-10 23:27:18] Production.INFO: count ==603 [2025-04-10 23:27:18] Production.ERROR: pbx CDR StartTime 2025-04-10 20:27:05 - End Time 2025-04-10 23:27:05 [2025-04-10 23:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880237', 'tblTempUsageDetail_20' ) start [2025-04-10 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880237', 'tblTempUsageDetail_20' ) end [2025-04-10 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880237', 'tblTempVendorCDR_20' ) start [2025-04-10 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880237', 'tblTempVendorCDR_20' ) end [2025-04-10 23:27:18] Production.INFO: ProcessCDR(1,14880237,1,1,2) [2025-04-10 23:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880237', 'tblTempUsageDetail_20' ) start [2025-04-10 23:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880237', 'tblTempUsageDetail_20' ) end [2025-04-10 23:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 23:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 23:27:22] Production.INFO: ==10385== Releasing lock... [2025-04-10 23:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 23:27:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-10 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 20:28:05 [end_date_ymd] => 2025-04-10 23:28:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 20:28:05' and `end` < '2025-04-10 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-04-10 23:28:18] Production.INFO: count ==604 [2025-04-10 23:28:18] Production.ERROR: pbx CDR StartTime 2025-04-10 20:28:05 - End Time 2025-04-10 23:28:05 [2025-04-10 23:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880242', 'tblTempUsageDetail_20' ) start [2025-04-10 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880242', 'tblTempUsageDetail_20' ) end [2025-04-10 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880242', 'tblTempVendorCDR_20' ) start [2025-04-10 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880242', 'tblTempVendorCDR_20' ) end [2025-04-10 23:28:18] Production.INFO: ProcessCDR(1,14880242,1,1,2) [2025-04-10 23:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880242', 'tblTempUsageDetail_20' ) start [2025-04-10 23:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880242', 'tblTempUsageDetail_20' ) end [2025-04-10 23:28:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 23:28:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 23:28:23] Production.INFO: ==10474== Releasing lock... [2025-04-10 23:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 23:28:23] Production.INFO: 32 MB #Memory Used# [2025-04-10 23:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 20:29:05 [end_date_ymd] => 2025-04-10 23:29:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 20:29:05' and `end` < '2025-04-10 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-04-10 23:29:18] Production.INFO: count ==605 [2025-04-10 23:29:18] Production.ERROR: pbx CDR StartTime 2025-04-10 20:29:05 - End Time 2025-04-10 23:29:05 [2025-04-10 23:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880247', 'tblTempUsageDetail_20' ) start [2025-04-10 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880247', 'tblTempUsageDetail_20' ) end [2025-04-10 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880247', 'tblTempVendorCDR_20' ) start [2025-04-10 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880247', 'tblTempVendorCDR_20' ) end [2025-04-10 23:29:18] Production.INFO: ProcessCDR(1,14880247,1,1,2) [2025-04-10 23:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880247', 'tblTempUsageDetail_20' ) start [2025-04-10 23:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880247', 'tblTempUsageDetail_20' ) end [2025-04-10 23:29:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 23:29:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 23:29:23] Production.INFO: ==10550== Releasing lock... [2025-04-10 23:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 23:29:23] Production.INFO: 32 MB #Memory Used# [2025-04-10 23:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 20:30:07 [end_date_ymd] => 2025-04-10 23:30:07 [RateCDR] => 1 ) [2025-04-10 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-04-10 20:30:07' and `end` < '2025-04-10 23:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 23:30:19] Production.INFO: count ==602 [2025-04-10 23:30:19] Production.ERROR: pbx CDR StartTime 2025-04-10 20:30:07 - End Time 2025-04-10 23:30:07 [2025-04-10 23:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880253', 'tblTempUsageDetail_20' ) start [2025-04-10 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880253', 'tblTempUsageDetail_20' ) end [2025-04-10 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880253', 'tblTempVendorCDR_20' ) start [2025-04-10 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880253', 'tblTempVendorCDR_20' ) end [2025-04-10 23:30:19] Production.INFO: ProcessCDR(1,14880253,1,1,2) [2025-04-10 23:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880253', 'tblTempUsageDetail_20' ) start [2025-04-10 23:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880253', 'tblTempUsageDetail_20' ) end [2025-04-10 23:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 23:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 23:30:23] Production.INFO: ==10625== Releasing lock... [2025-04-10 23:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 23:30:23] Production.INFO: 31.75 MB #Memory Used# [2025-04-10 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 20:31:05 [end_date_ymd] => 2025-04-10 23:31:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 20:31:05' and `end` < '2025-04-10 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-04-10 23:31:18] Production.INFO: count ==574 [2025-04-10 23:31:18] Production.ERROR: pbx CDR StartTime 2025-04-10 20:31:05 - End Time 2025-04-10 23:31:05 [2025-04-10 23:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880258', 'tblTempUsageDetail_20' ) start [2025-04-10 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880258', 'tblTempUsageDetail_20' ) end [2025-04-10 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880258', 'tblTempVendorCDR_20' ) start [2025-04-10 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880258', 'tblTempVendorCDR_20' ) end [2025-04-10 23:31:18] Production.INFO: ProcessCDR(1,14880258,1,1,2) [2025-04-10 23:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880258', 'tblTempUsageDetail_20' ) start [2025-04-10 23:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880258', 'tblTempUsageDetail_20' ) end [2025-04-10 23:31:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 23:31:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 23:31:23] Production.INFO: ==10701== Releasing lock... [2025-04-10 23:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 23:31:23] Production.INFO: 31.75 MB #Memory Used# [2025-04-10 23:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 20:32:06 [end_date_ymd] => 2025-04-10 23:32:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 20:32:06' and `end` < '2025-04-10 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-04-10 23:32:19] Production.INFO: count ==575 [2025-04-10 23:32:19] Production.ERROR: pbx CDR StartTime 2025-04-10 20:32:06 - End Time 2025-04-10 23:32:06 [2025-04-10 23:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880263', 'tblTempUsageDetail_20' ) start [2025-04-10 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880263', 'tblTempUsageDetail_20' ) end [2025-04-10 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880263', 'tblTempVendorCDR_20' ) start [2025-04-10 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880263', 'tblTempVendorCDR_20' ) end [2025-04-10 23:32:19] Production.INFO: ProcessCDR(1,14880263,1,1,2) [2025-04-10 23:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880263', 'tblTempUsageDetail_20' ) start [2025-04-10 23:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880263', 'tblTempUsageDetail_20' ) end [2025-04-10 23:32:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 23:32:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 23:32:24] Production.INFO: ==10771== Releasing lock... [2025-04-10 23:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 23:32:24] Production.INFO: 31.75 MB #Memory Used# [2025-04-10 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 20:33:05 [end_date_ymd] => 2025-04-10 23:33:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 20:33:05' and `end` < '2025-04-10 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-04-10 23:33:18] Production.INFO: count ==575 [2025-04-10 23:33:18] Production.ERROR: pbx CDR StartTime 2025-04-10 20:33:05 - End Time 2025-04-10 23:33:05 [2025-04-10 23:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880268', 'tblTempUsageDetail_20' ) start [2025-04-10 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880268', 'tblTempUsageDetail_20' ) end [2025-04-10 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880268', 'tblTempVendorCDR_20' ) start [2025-04-10 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880268', 'tblTempVendorCDR_20' ) end [2025-04-10 23:33:18] Production.INFO: ProcessCDR(1,14880268,1,1,2) [2025-04-10 23:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880268', 'tblTempUsageDetail_20' ) start [2025-04-10 23:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880268', 'tblTempUsageDetail_20' ) end [2025-04-10 23:33:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 23:33:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 23:33:23] Production.INFO: ==10843== Releasing lock... [2025-04-10 23:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 23:33:23] Production.INFO: 31.75 MB #Memory Used# [2025-04-10 23:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 20:34:06 [end_date_ymd] => 2025-04-10 23:34:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 20:34:06' and `end` < '2025-04-10 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-04-10 23:34:18] Production.INFO: count ==573 [2025-04-10 23:34:18] Production.ERROR: pbx CDR StartTime 2025-04-10 20:34:06 - End Time 2025-04-10 23:34:06 [2025-04-10 23:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880273', 'tblTempUsageDetail_20' ) start [2025-04-10 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880273', 'tblTempUsageDetail_20' ) end [2025-04-10 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880273', 'tblTempVendorCDR_20' ) start [2025-04-10 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880273', 'tblTempVendorCDR_20' ) end [2025-04-10 23:34:18] Production.INFO: ProcessCDR(1,14880273,1,1,2) [2025-04-10 23:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880273', 'tblTempUsageDetail_20' ) start [2025-04-10 23:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880273', 'tblTempUsageDetail_20' ) end [2025-04-10 23:34:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 23:34:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 23:34:23] Production.INFO: ==10915== Releasing lock... [2025-04-10 23:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 23:34:23] Production.INFO: 31.75 MB #Memory Used# [2025-04-10 23:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 20:35:04 [end_date_ymd] => 2025-04-10 23:35:04 [RateCDR] => 1 ) [2025-04-10 23:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 20:35:04' and `end` < '2025-04-10 23:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 23:35:17] Production.INFO: count ==572 [2025-04-10 23:35:17] Production.ERROR: pbx CDR StartTime 2025-04-10 20:35:04 - End Time 2025-04-10 23:35:04 [2025-04-10 23:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880278', 'tblTempUsageDetail_20' ) start [2025-04-10 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880278', 'tblTempUsageDetail_20' ) end [2025-04-10 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880278', 'tblTempVendorCDR_20' ) start [2025-04-10 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880278', 'tblTempVendorCDR_20' ) end [2025-04-10 23:35:17] Production.INFO: ProcessCDR(1,14880278,1,1,2) [2025-04-10 23:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880278', 'tblTempUsageDetail_20' ) start [2025-04-10 23:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880278', 'tblTempUsageDetail_20' ) end [2025-04-10 23:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 23:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 23:35:22] Production.INFO: ==10989== Releasing lock... [2025-04-10 23:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 23:35:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-10 23:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 20:36:06 [end_date_ymd] => 2025-04-10 23:36:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 20:36:06' and `end` < '2025-04-10 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-04-10 23:36:19] Production.INFO: count ==573 [2025-04-10 23:36:19] Production.ERROR: pbx CDR StartTime 2025-04-10 20:36:06 - End Time 2025-04-10 23:36:06 [2025-04-10 23:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880283', 'tblTempUsageDetail_20' ) start [2025-04-10 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880283', 'tblTempUsageDetail_20' ) end [2025-04-10 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880283', 'tblTempVendorCDR_20' ) start [2025-04-10 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880283', 'tblTempVendorCDR_20' ) end [2025-04-10 23:36:19] Production.INFO: ProcessCDR(1,14880283,1,1,2) [2025-04-10 23:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880283', 'tblTempUsageDetail_20' ) start [2025-04-10 23:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880283', 'tblTempUsageDetail_20' ) end [2025-04-10 23:36:24] Production.ERROR: pbx prc_insertCDR start [2025-04-10 23:36:24] Production.ERROR: pbx prc_insertCDR end [2025-04-10 23:36:24] Production.INFO: ==11069== Releasing lock... [2025-04-10 23:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 23:36:24] Production.INFO: 31.75 MB #Memory Used# [2025-04-10 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 20:37:05 [end_date_ymd] => 2025-04-10 23:37:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 20:37:05' and `end` < '2025-04-10 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-04-10 23:37:18] Production.INFO: count ==570 [2025-04-10 23:37:18] Production.ERROR: pbx CDR StartTime 2025-04-10 20:37:05 - End Time 2025-04-10 23:37:05 [2025-04-10 23:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880288', 'tblTempUsageDetail_20' ) start [2025-04-10 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880288', 'tblTempUsageDetail_20' ) end [2025-04-10 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880288', 'tblTempVendorCDR_20' ) start [2025-04-10 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880288', 'tblTempVendorCDR_20' ) end [2025-04-10 23:37:18] Production.INFO: ProcessCDR(1,14880288,1,1,2) [2025-04-10 23:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880288', 'tblTempUsageDetail_20' ) start [2025-04-10 23:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880288', 'tblTempUsageDetail_20' ) end [2025-04-10 23:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 23:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 23:37:22] Production.INFO: ==11141== Releasing lock... [2025-04-10 23:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 23:37:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 23:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 20:38:05 [end_date_ymd] => 2025-04-10 23:38:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 20:38:05' and `end` < '2025-04-10 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-04-10 23:38:18] Production.INFO: count ==570 [2025-04-10 23:38:18] Production.ERROR: pbx CDR StartTime 2025-04-10 20:38:05 - End Time 2025-04-10 23:38:05 [2025-04-10 23:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880293', 'tblTempUsageDetail_20' ) start [2025-04-10 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880293', 'tblTempUsageDetail_20' ) end [2025-04-10 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880293', 'tblTempVendorCDR_20' ) start [2025-04-10 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880293', 'tblTempVendorCDR_20' ) end [2025-04-10 23:38:18] Production.INFO: ProcessCDR(1,14880293,1,1,2) [2025-04-10 23:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880293', 'tblTempUsageDetail_20' ) start [2025-04-10 23:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880293', 'tblTempUsageDetail_20' ) end [2025-04-10 23:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 23:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 23:38:21] Production.INFO: ==11254== Releasing lock... [2025-04-10 23:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 23:38:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 20:39:05 [end_date_ymd] => 2025-04-10 23:39:05 [RateCDR] => 1 ) [2025-04-10 23:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 20:39:05' and `end` < '2025-04-10 23:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 23:39:18] Production.INFO: count ==570 [2025-04-10 23:39:18] Production.ERROR: pbx CDR StartTime 2025-04-10 20:39:05 - End Time 2025-04-10 23:39:05 [2025-04-10 23:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880298', 'tblTempUsageDetail_20' ) start [2025-04-10 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880298', 'tblTempUsageDetail_20' ) end [2025-04-10 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880298', 'tblTempVendorCDR_20' ) start [2025-04-10 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880298', 'tblTempVendorCDR_20' ) end [2025-04-10 23:39:18] Production.INFO: ProcessCDR(1,14880298,1,1,2) [2025-04-10 23:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880298', 'tblTempUsageDetail_20' ) start [2025-04-10 23:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880298', 'tblTempUsageDetail_20' ) end [2025-04-10 23:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 23:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 23:39:21] Production.INFO: ==11326== Releasing lock... [2025-04-10 23:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 23:39:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 20:40:06 [end_date_ymd] => 2025-04-10 23:40:06 [RateCDR] => 1 ) [2025-04-10 23:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 20:40:06' and `end` < '2025-04-10 23:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 23:40:18] Production.INFO: count ==571 [2025-04-10 23:40:18] Production.ERROR: pbx CDR StartTime 2025-04-10 20:40:06 - End Time 2025-04-10 23:40:06 [2025-04-10 23:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880304', 'tblTempUsageDetail_20' ) start [2025-04-10 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880304', 'tblTempUsageDetail_20' ) end [2025-04-10 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880304', 'tblTempVendorCDR_20' ) start [2025-04-10 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880304', 'tblTempVendorCDR_20' ) end [2025-04-10 23:40:18] Production.INFO: ProcessCDR(1,14880304,1,1,2) [2025-04-10 23:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880304', 'tblTempUsageDetail_20' ) start [2025-04-10 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880304', 'tblTempUsageDetail_20' ) end [2025-04-10 23:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 23:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 23:40:22] Production.INFO: ==11400== Releasing lock... [2025-04-10 23:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 23:40:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 23:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 20:41:04 [end_date_ymd] => 2025-04-10 23:41:04 [RateCDR] => 1 ) [2025-04-10 23:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 20:41:04' and `end` < '2025-04-10 23:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 23:41:17] Production.INFO: count ==543 [2025-04-10 23:41:17] Production.ERROR: pbx CDR StartTime 2025-04-10 20:41:04 - End Time 2025-04-10 23:41:04 [2025-04-10 23:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880309', 'tblTempUsageDetail_20' ) start [2025-04-10 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880309', 'tblTempUsageDetail_20' ) end [2025-04-10 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880309', 'tblTempVendorCDR_20' ) start [2025-04-10 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880309', 'tblTempVendorCDR_20' ) end [2025-04-10 23:41:17] Production.INFO: ProcessCDR(1,14880309,1,1,2) [2025-04-10 23:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880309', 'tblTempUsageDetail_20' ) start [2025-04-10 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880309', 'tblTempUsageDetail_20' ) end [2025-04-10 23:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 23:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 23:41:21] Production.INFO: ==11473== Releasing lock... [2025-04-10 23:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 23:41:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 23:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 20:42:06 [end_date_ymd] => 2025-04-10 23:42:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 20:42:06' and `end` < '2025-04-10 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-04-10 23:42:19] Production.INFO: count ==543 [2025-04-10 23:42:19] Production.ERROR: pbx CDR StartTime 2025-04-10 20:42:06 - End Time 2025-04-10 23:42:06 [2025-04-10 23:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880314', 'tblTempUsageDetail_20' ) start [2025-04-10 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880314', 'tblTempUsageDetail_20' ) end [2025-04-10 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880314', 'tblTempVendorCDR_20' ) start [2025-04-10 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880314', 'tblTempVendorCDR_20' ) end [2025-04-10 23:42:19] Production.INFO: ProcessCDR(1,14880314,1,1,2) [2025-04-10 23:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880314', 'tblTempUsageDetail_20' ) start [2025-04-10 23:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880314', 'tblTempUsageDetail_20' ) end [2025-04-10 23:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 23:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 23:42:22] Production.INFO: ==11547== Releasing lock... [2025-04-10 23:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 23:42:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 23:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 20:43:04 [end_date_ymd] => 2025-04-10 23:43:04 [RateCDR] => 1 ) [2025-04-10 23:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 20:43:04' and `end` < '2025-04-10 23:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 23:43:17] Production.INFO: count ==544 [2025-04-10 23:43:17] Production.ERROR: pbx CDR StartTime 2025-04-10 20:43:04 - End Time 2025-04-10 23:43:04 [2025-04-10 23:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880319', 'tblTempUsageDetail_20' ) start [2025-04-10 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880319', 'tblTempUsageDetail_20' ) end [2025-04-10 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880319', 'tblTempVendorCDR_20' ) start [2025-04-10 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880319', 'tblTempVendorCDR_20' ) end [2025-04-10 23:43:17] Production.INFO: ProcessCDR(1,14880319,1,1,2) [2025-04-10 23:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880319', 'tblTempUsageDetail_20' ) start [2025-04-10 23:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880319', 'tblTempUsageDetail_20' ) end [2025-04-10 23:43:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 23:43:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 23:43:23] Production.INFO: ==11618== Releasing lock... [2025-04-10 23:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 23:43:23] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 20:44:05 [end_date_ymd] => 2025-04-10 23:44:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 20:44:05' and `end` < '2025-04-10 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-04-10 23:44:18] Production.INFO: count ==544 [2025-04-10 23:44:18] Production.ERROR: pbx CDR StartTime 2025-04-10 20:44:05 - End Time 2025-04-10 23:44:05 [2025-04-10 23:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880324', 'tblTempUsageDetail_20' ) start [2025-04-10 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880324', 'tblTempUsageDetail_20' ) end [2025-04-10 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880324', 'tblTempVendorCDR_20' ) start [2025-04-10 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880324', 'tblTempVendorCDR_20' ) end [2025-04-10 23:44:18] Production.INFO: ProcessCDR(1,14880324,1,1,2) [2025-04-10 23:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880324', 'tblTempUsageDetail_20' ) start [2025-04-10 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880324', 'tblTempUsageDetail_20' ) end [2025-04-10 23:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 23:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 23:44:21] Production.INFO: ==11694== Releasing lock... [2025-04-10 23:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 23:44:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 20:45:05 [end_date_ymd] => 2025-04-10 23:45:05 [RateCDR] => 1 ) [2025-04-10 23:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 20:45:05' and `end` < '2025-04-10 23:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 23:45:18] Production.INFO: count ==545 [2025-04-10 23:45:18] Production.ERROR: pbx CDR StartTime 2025-04-10 20:45:05 - End Time 2025-04-10 23:45:05 [2025-04-10 23:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880329', 'tblTempUsageDetail_20' ) start [2025-04-10 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880329', 'tblTempUsageDetail_20' ) end [2025-04-10 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880329', 'tblTempVendorCDR_20' ) start [2025-04-10 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880329', 'tblTempVendorCDR_20' ) end [2025-04-10 23:45:18] Production.INFO: ProcessCDR(1,14880329,1,1,2) [2025-04-10 23:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880329', 'tblTempUsageDetail_20' ) start [2025-04-10 23:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880329', 'tblTempUsageDetail_20' ) end [2025-04-10 23:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 23:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 23:45:22] Production.INFO: ==11766== Releasing lock... [2025-04-10 23:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 23:45:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 20:46:05 [end_date_ymd] => 2025-04-10 23:46:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 20:46:05' and `end` < '2025-04-10 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-04-10 23:46:18] Production.INFO: count ==545 [2025-04-10 23:46:18] Production.ERROR: pbx CDR StartTime 2025-04-10 20:46:05 - End Time 2025-04-10 23:46:05 [2025-04-10 23:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880334', 'tblTempUsageDetail_20' ) start [2025-04-10 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880334', 'tblTempUsageDetail_20' ) end [2025-04-10 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880334', 'tblTempVendorCDR_20' ) start [2025-04-10 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880334', 'tblTempVendorCDR_20' ) end [2025-04-10 23:46:18] Production.INFO: ProcessCDR(1,14880334,1,1,2) [2025-04-10 23:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880334', 'tblTempUsageDetail_20' ) start [2025-04-10 23:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880334', 'tblTempUsageDetail_20' ) end [2025-04-10 23:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 23:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 23:46:22] Production.INFO: ==11837== Releasing lock... [2025-04-10 23:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 23:46:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 20:47:05 [end_date_ymd] => 2025-04-10 23:47:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 20:47:05' and `end` < '2025-04-10 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-04-10 23:47:18] Production.INFO: count ==544 [2025-04-10 23:47:18] Production.ERROR: pbx CDR StartTime 2025-04-10 20:47:05 - End Time 2025-04-10 23:47:05 [2025-04-10 23:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880339', 'tblTempUsageDetail_20' ) start [2025-04-10 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880339', 'tblTempUsageDetail_20' ) end [2025-04-10 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880339', 'tblTempVendorCDR_20' ) start [2025-04-10 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880339', 'tblTempVendorCDR_20' ) end [2025-04-10 23:47:18] Production.INFO: ProcessCDR(1,14880339,1,1,2) [2025-04-10 23:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880339', 'tblTempUsageDetail_20' ) start [2025-04-10 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880339', 'tblTempUsageDetail_20' ) end [2025-04-10 23:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 23:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 23:47:21] Production.INFO: ==11909== Releasing lock... [2025-04-10 23:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 23:47:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 20:48:05 [end_date_ymd] => 2025-04-10 23:48:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 20:48:05' and `end` < '2025-04-10 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-04-10 23:48:18] Production.INFO: count ==544 [2025-04-10 23:48:18] Production.ERROR: pbx CDR StartTime 2025-04-10 20:48:05 - End Time 2025-04-10 23:48:05 [2025-04-10 23:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880344', 'tblTempUsageDetail_20' ) start [2025-04-10 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880344', 'tblTempUsageDetail_20' ) end [2025-04-10 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880344', 'tblTempVendorCDR_20' ) start [2025-04-10 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880344', 'tblTempVendorCDR_20' ) end [2025-04-10 23:48:18] Production.INFO: ProcessCDR(1,14880344,1,1,2) [2025-04-10 23:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880344', 'tblTempUsageDetail_20' ) start [2025-04-10 23:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880344', 'tblTempUsageDetail_20' ) end [2025-04-10 23:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 23:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 23:48:21] Production.INFO: ==11983== Releasing lock... [2025-04-10 23:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 23:48:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 20:49:05 [end_date_ymd] => 2025-04-10 23:49:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 20:49:05' and `end` < '2025-04-10 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-04-10 23:49:18] Production.INFO: count ==542 [2025-04-10 23:49:18] Production.ERROR: pbx CDR StartTime 2025-04-10 20:49:05 - End Time 2025-04-10 23:49:05 [2025-04-10 23:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880349', 'tblTempUsageDetail_20' ) start [2025-04-10 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880349', 'tblTempUsageDetail_20' ) end [2025-04-10 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880349', 'tblTempVendorCDR_20' ) start [2025-04-10 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880349', 'tblTempVendorCDR_20' ) end [2025-04-10 23:49:18] Production.INFO: ProcessCDR(1,14880349,1,1,2) [2025-04-10 23:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880349', 'tblTempUsageDetail_20' ) start [2025-04-10 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880349', 'tblTempUsageDetail_20' ) end [2025-04-10 23:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 23:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 23:49:22] Production.INFO: ==12056== Releasing lock... [2025-04-10 23:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 23:49:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 23:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 20:50:05 [end_date_ymd] => 2025-04-10 23:50:05 [RateCDR] => 1 ) [2025-04-10 23:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 20:50:05' and `end` < '2025-04-10 23:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 23:50:19] Production.INFO: count ==541 [2025-04-10 23:50:19] Production.ERROR: pbx CDR StartTime 2025-04-10 20:50:05 - End Time 2025-04-10 23:50:05 [2025-04-10 23:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880354', 'tblTempUsageDetail_20' ) start [2025-04-10 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880354', 'tblTempUsageDetail_20' ) end [2025-04-10 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880354', 'tblTempVendorCDR_20' ) start [2025-04-10 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880354', 'tblTempVendorCDR_20' ) end [2025-04-10 23:50:19] Production.INFO: ProcessCDR(1,14880354,1,1,2) [2025-04-10 23:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880354', 'tblTempUsageDetail_20' ) start [2025-04-10 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880354', 'tblTempUsageDetail_20' ) end [2025-04-10 23:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 23:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 23:50:22] Production.INFO: ==12133== Releasing lock... [2025-04-10 23:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 23:50:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 20:51:05 [end_date_ymd] => 2025-04-10 23:51:05 [RateCDR] => 1 ) [2025-04-10 23:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 20:51:05' and `end` < '2025-04-10 23:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 23:51:18] Production.INFO: count ==535 [2025-04-10 23:51:18] Production.ERROR: pbx CDR StartTime 2025-04-10 20:51:05 - End Time 2025-04-10 23:51:05 [2025-04-10 23:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880360', 'tblTempUsageDetail_20' ) start [2025-04-10 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880360', 'tblTempUsageDetail_20' ) end [2025-04-10 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880360', 'tblTempVendorCDR_20' ) start [2025-04-10 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880360', 'tblTempVendorCDR_20' ) end [2025-04-10 23:51:18] Production.INFO: ProcessCDR(1,14880360,1,1,2) [2025-04-10 23:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880360', 'tblTempUsageDetail_20' ) start [2025-04-10 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880360', 'tblTempUsageDetail_20' ) end [2025-04-10 23:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 23:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 23:51:21] Production.INFO: ==12212== Releasing lock... [2025-04-10 23:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 23:51:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-10 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 20:52:05 [end_date_ymd] => 2025-04-10 23:52:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 20:52:05' and `end` < '2025-04-10 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-04-10 23:52:18] Production.INFO: count ==540 [2025-04-10 23:52:18] Production.ERROR: pbx CDR StartTime 2025-04-10 20:52:05 - End Time 2025-04-10 23:52:05 [2025-04-10 23:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880365', 'tblTempUsageDetail_20' ) start [2025-04-10 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880365', 'tblTempUsageDetail_20' ) end [2025-04-10 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880365', 'tblTempVendorCDR_20' ) start [2025-04-10 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880365', 'tblTempVendorCDR_20' ) end [2025-04-10 23:52:18] Production.INFO: ProcessCDR(1,14880365,1,1,2) [2025-04-10 23:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880365', 'tblTempUsageDetail_20' ) start [2025-04-10 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880365', 'tblTempUsageDetail_20' ) end [2025-04-10 23:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 23:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 23:52:21] Production.INFO: ==12286== Releasing lock... [2025-04-10 23:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 23:52:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 20:53:05 [end_date_ymd] => 2025-04-10 23:53:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 20:53:05' and `end` < '2025-04-10 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-04-10 23:53:18] Production.INFO: count ==540 [2025-04-10 23:53:18] Production.ERROR: pbx CDR StartTime 2025-04-10 20:53:05 - End Time 2025-04-10 23:53:05 [2025-04-10 23:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880370', 'tblTempUsageDetail_20' ) start [2025-04-10 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880370', 'tblTempUsageDetail_20' ) end [2025-04-10 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880370', 'tblTempVendorCDR_20' ) start [2025-04-10 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880370', 'tblTempVendorCDR_20' ) end [2025-04-10 23:53:18] Production.INFO: ProcessCDR(1,14880370,1,1,2) [2025-04-10 23:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880370', 'tblTempUsageDetail_20' ) start [2025-04-10 23:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880370', 'tblTempUsageDetail_20' ) end [2025-04-10 23:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-10 23:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-10 23:53:23] Production.INFO: ==12397== Releasing lock... [2025-04-10 23:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 23:53:23] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 20:54:05 [end_date_ymd] => 2025-04-10 23:54:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 20:54:05' and `end` < '2025-04-10 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-04-10 23:54:18] Production.INFO: count ==540 [2025-04-10 23:54:18] Production.ERROR: pbx CDR StartTime 2025-04-10 20:54:05 - End Time 2025-04-10 23:54:05 [2025-04-10 23:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880375', 'tblTempUsageDetail_20' ) start [2025-04-10 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880375', 'tblTempUsageDetail_20' ) end [2025-04-10 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880375', 'tblTempVendorCDR_20' ) start [2025-04-10 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880375', 'tblTempVendorCDR_20' ) end [2025-04-10 23:54:18] Production.INFO: ProcessCDR(1,14880375,1,1,2) [2025-04-10 23:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880375', 'tblTempUsageDetail_20' ) start [2025-04-10 23:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880375', 'tblTempUsageDetail_20' ) end [2025-04-10 23:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 23:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 23:54:21] Production.INFO: ==12468== Releasing lock... [2025-04-10 23:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 23:54:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 23:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 20:55:06 [end_date_ymd] => 2025-04-10 23:55:06 [RateCDR] => 1 ) [2025-04-10 23: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-04-10 20:55:06' and `end` < '2025-04-10 23: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-04-10 23:55:18] Production.INFO: count ==542 [2025-04-10 23:55:19] Production.ERROR: pbx CDR StartTime 2025-04-10 20:55:06 - End Time 2025-04-10 23:55:06 [2025-04-10 23:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880380', 'tblTempUsageDetail_20' ) start [2025-04-10 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880380', 'tblTempUsageDetail_20' ) end [2025-04-10 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880380', 'tblTempVendorCDR_20' ) start [2025-04-10 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880380', 'tblTempVendorCDR_20' ) end [2025-04-10 23:55:19] Production.INFO: ProcessCDR(1,14880380,1,1,2) [2025-04-10 23:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880380', 'tblTempUsageDetail_20' ) start [2025-04-10 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880380', 'tblTempUsageDetail_20' ) end [2025-04-10 23:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 23:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 23:55:22] Production.INFO: ==12540== Releasing lock... [2025-04-10 23:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 23:55:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 23:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 20:56:06 [end_date_ymd] => 2025-04-10 23:56:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 20:56:06' and `end` < '2025-04-10 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-04-10 23:56:19] Production.INFO: count ==542 [2025-04-10 23:56:19] Production.ERROR: pbx CDR StartTime 2025-04-10 20:56:06 - End Time 2025-04-10 23:56:06 [2025-04-10 23:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880385', 'tblTempUsageDetail_20' ) start [2025-04-10 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880385', 'tblTempUsageDetail_20' ) end [2025-04-10 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880385', 'tblTempVendorCDR_20' ) start [2025-04-10 23:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880385', 'tblTempVendorCDR_20' ) end [2025-04-10 23:56:19] Production.INFO: ProcessCDR(1,14880385,1,1,2) [2025-04-10 23:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880385', 'tblTempUsageDetail_20' ) start [2025-04-10 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880385', 'tblTempUsageDetail_20' ) end [2025-04-10 23:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 23:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 23:56:22] Production.INFO: ==12611== Releasing lock... [2025-04-10 23:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 23:56:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 20:57:05 [end_date_ymd] => 2025-04-10 23:57:05 [RateCDR] => 1 ) [2025-04-10 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-04-10 20:57:05' and `end` < '2025-04-10 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-04-10 23:57:17] Production.INFO: count ==540 [2025-04-10 23:57:18] Production.ERROR: pbx CDR StartTime 2025-04-10 20:57:05 - End Time 2025-04-10 23:57:05 [2025-04-10 23:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880390', 'tblTempUsageDetail_20' ) start [2025-04-10 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880390', 'tblTempUsageDetail_20' ) end [2025-04-10 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880390', 'tblTempVendorCDR_20' ) start [2025-04-10 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880390', 'tblTempVendorCDR_20' ) end [2025-04-10 23:57:18] Production.INFO: ProcessCDR(1,14880390,1,1,2) [2025-04-10 23:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880390', 'tblTempUsageDetail_20' ) start [2025-04-10 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880390', 'tblTempUsageDetail_20' ) end [2025-04-10 23:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 23:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 23:57:21] Production.INFO: ==12682== Releasing lock... [2025-04-10 23:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 23:57:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 23:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 20:58:06 [end_date_ymd] => 2025-04-10 23:58:06 [RateCDR] => 1 ) [2025-04-10 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-04-10 20:58:06' and `end` < '2025-04-10 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-04-10 23:58:19] Production.INFO: count ==540 [2025-04-10 23:58:19] Production.ERROR: pbx CDR StartTime 2025-04-10 20:58:06 - End Time 2025-04-10 23:58:06 [2025-04-10 23:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 23:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880395', 'tblTempUsageDetail_20' ) start [2025-04-10 23:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880395', 'tblTempUsageDetail_20' ) end [2025-04-10 23:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880395', 'tblTempVendorCDR_20' ) start [2025-04-10 23:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880395', 'tblTempVendorCDR_20' ) end [2025-04-10 23:58:19] Production.INFO: ProcessCDR(1,14880395,1,1,2) [2025-04-10 23:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880395', 'tblTempUsageDetail_20' ) start [2025-04-10 23:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880395', 'tblTempUsageDetail_20' ) end [2025-04-10 23:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-10 23:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-10 23:58:22] Production.INFO: ==12759== Releasing lock... [2025-04-10 23:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 23:58:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-10 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-10 20:59:05 [end_date_ymd] => 2025-04-10 23:59:05 [RateCDR] => 1 ) [2025-04-10 23:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-10 20:59:05' and `end` < '2025-04-10 23:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-10 23:59:17] Production.INFO: count ==540 [2025-04-10 23:59:17] Production.ERROR: pbx CDR StartTime 2025-04-10 20:59:05 - End Time 2025-04-10 23:59:05 [2025-04-10 23:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-10 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880400', 'tblTempUsageDetail_20' ) start [2025-04-10 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14880400', 'tblTempUsageDetail_20' ) end [2025-04-10 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880400', 'tblTempVendorCDR_20' ) start [2025-04-10 23:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14880400', 'tblTempVendorCDR_20' ) end [2025-04-10 23:59:17] Production.INFO: ProcessCDR(1,14880400,1,1,2) [2025-04-10 23:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14880400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14880400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-10 23:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14880400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14880400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-10 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880400', 'tblTempUsageDetail_20' ) start [2025-04-10 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14880400', 'tblTempUsageDetail_20' ) end [2025-04-10 23:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-10 23:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-10 23:59:21] Production.INFO: ==12831== Releasing lock... [2025-04-10 23:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-10 23:59:21] Production.INFO: 31.5 MB #Memory Used#