[2025-07-10 00:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-07-09 21:25:04 [end_date_ymd] => 2025-07-10 00:25:04 [RateCDR] => 1 ) [2025-07-10 00:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-09 21:25:04' and `end` < '2025-07-10 00:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-10 00:25:17] Production.INFO: count ==523 [2025-07-10 00:25:17] Production.ERROR: pbx CDR StartTime 2025-07-09 21:25:04 - End Time 2025-07-10 00:25:04 [2025-07-10 00:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-10 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15444194', 'tblTempUsageDetail_20' ) start [2025-07-10 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15444194', 'tblTempUsageDetail_20' ) end [2025-07-10 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15444194', 'tblTempVendorCDR_20' ) start [2025-07-10 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15444194', 'tblTempVendorCDR_20' ) end [2025-07-10 00:25:17] Production.INFO: ProcessCDR(1,15444194,1,1,2) [2025-07-10 00:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15444194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-10 00:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15444194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-10 00:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15444194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-10 00:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15444194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-10 00:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15444194', 'tblTempUsageDetail_20' ) start [2025-07-10 00:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15444194', 'tblTempUsageDetail_20' ) end [2025-07-10 00:25:23] Production.ERROR: pbx prc_insertCDR start [2025-07-10 00:25:23] Production.ERROR: pbx prc_insertCDR end [2025-07-10 00:25:25] Production.INFO: ==1081== Releasing lock... [2025-07-10 00:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-10 00:25:25] Production.INFO: 36 MB #Memory Used# [2025-07-10 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-09 22:25:05 [end_date_ymd] => 2025-07-10 01:25:05 [RateCDR] => 1 ) [2025-07-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-07-09 22:25:05' and `end` < '2025-07-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-07-10 01:25:17] Production.INFO: count ==596 [2025-07-10 01:25:17] Production.ERROR: pbx CDR StartTime 2025-07-09 22:25:05 - End Time 2025-07-10 01:25:05 [2025-07-10 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-10 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15444441', 'tblTempUsageDetail_20' ) start [2025-07-10 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15444441', 'tblTempUsageDetail_20' ) end [2025-07-10 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15444441', 'tblTempVendorCDR_20' ) start [2025-07-10 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15444441', 'tblTempVendorCDR_20' ) end [2025-07-10 01:25:17] Production.INFO: ProcessCDR(1,15444441,1,1,2) [2025-07-10 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15444441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-10 01:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15444441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-10 01:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15444441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-10 01:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15444441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-10 01:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15444441', 'tblTempUsageDetail_20' ) start [2025-07-10 01:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15444441', 'tblTempUsageDetail_20' ) end [2025-07-10 01:25:23] Production.ERROR: pbx prc_insertCDR start [2025-07-10 01:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-10 01:25:24] Production.INFO: ==5564== Releasing lock... [2025-07-10 01:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-10 01:25:24] Production.INFO: 33 MB #Memory Used# [2025-07-10 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-09 23:25:05 [end_date_ymd] => 2025-07-10 02:25:05 [RateCDR] => 1 ) [2025-07-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-07-09 23:25:05' and `end` < '2025-07-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-07-10 02:25:17] Production.INFO: count ==559 [2025-07-10 02:25:17] Production.ERROR: pbx CDR StartTime 2025-07-09 23:25:05 - End Time 2025-07-10 02:25:05 [2025-07-10 02:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-10 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15444688', 'tblTempUsageDetail_20' ) start [2025-07-10 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15444688', 'tblTempUsageDetail_20' ) end [2025-07-10 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15444688', 'tblTempVendorCDR_20' ) start [2025-07-10 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15444688', 'tblTempVendorCDR_20' ) end [2025-07-10 02:25:17] Production.INFO: ProcessCDR(1,15444688,1,1,2) [2025-07-10 02:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15444688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-10 02:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15444688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-10 02:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15444688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-10 02:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15444688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-10 02:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15444688', 'tblTempUsageDetail_20' ) start [2025-07-10 02:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15444688', 'tblTempUsageDetail_20' ) end [2025-07-10 02:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-10 02:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-10 02:25:24] Production.INFO: ==10084== Releasing lock... [2025-07-10 02:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-10 02:25:24] Production.INFO: 32.75 MB #Memory Used# [2025-07-10 03:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-10 00:25:06 [end_date_ymd] => 2025-07-10 03:25:06 [RateCDR] => 1 ) [2025-07-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-07-10 00:25:06' and `end` < '2025-07-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-07-10 03:25:18] Production.INFO: count ==490 [2025-07-10 03:25:18] Production.ERROR: pbx CDR StartTime 2025-07-10 00:25:06 - End Time 2025-07-10 03:25:06 [2025-07-10 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-10 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15444935', 'tblTempUsageDetail_20' ) start [2025-07-10 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15444935', 'tblTempUsageDetail_20' ) end [2025-07-10 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15444935', 'tblTempVendorCDR_20' ) start [2025-07-10 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15444935', 'tblTempVendorCDR_20' ) end [2025-07-10 03:25:18] Production.INFO: ProcessCDR(1,15444935,1,1,2) [2025-07-10 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15444935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-10 03:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15444935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-10 03:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15444935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-10 03:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15444935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-10 03:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15444935', 'tblTempUsageDetail_20' ) start [2025-07-10 03:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15444935', 'tblTempUsageDetail_20' ) end [2025-07-10 03:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-10 03:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-10 03:25:24] Production.INFO: ==15034== Releasing lock... [2025-07-10 03:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-10 03:25:24] Production.INFO: 32.5 MB #Memory Used# [2025-07-10 04:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-07-10 01:25:04 [end_date_ymd] => 2025-07-10 04:25:04 [RateCDR] => 1 ) [2025-07-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-07-10 01:25:04' and `end` < '2025-07-10 04:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-10 04:25:17] Production.INFO: count ==301 [2025-07-10 04:25:17] Production.ERROR: pbx CDR StartTime 2025-07-10 01:25:04 - End Time 2025-07-10 04:25:04 [2025-07-10 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-10 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15445183', 'tblTempUsageDetail_20' ) start [2025-07-10 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15445183', 'tblTempUsageDetail_20' ) end [2025-07-10 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15445183', 'tblTempVendorCDR_20' ) start [2025-07-10 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15445183', 'tblTempVendorCDR_20' ) end [2025-07-10 04:25:17] Production.INFO: ProcessCDR(1,15445183,1,1,2) [2025-07-10 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15445183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-10 04:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15445183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-10 04:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15445183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-10 04:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15445183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-10 04:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15445183', 'tblTempUsageDetail_20' ) start [2025-07-10 04:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15445183', 'tblTempUsageDetail_20' ) end [2025-07-10 04:25:23] Production.ERROR: pbx prc_insertCDR start [2025-07-10 04:25:23] Production.ERROR: pbx prc_insertCDR end [2025-07-10 04:25:23] Production.INFO: ==19927== Releasing lock... [2025-07-10 04:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-10 04:25:23] Production.INFO: 30.5 MB #Memory Used# [2025-07-10 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-10 02:25:05 [end_date_ymd] => 2025-07-10 05:25:05 [RateCDR] => 1 ) [2025-07-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-07-10 02:25:05' and `end` < '2025-07-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-07-10 05:25:18] Production.INFO: count ==241 [2025-07-10 05:25:18] Production.ERROR: pbx CDR StartTime 2025-07-10 02:25:05 - End Time 2025-07-10 05:25:05 [2025-07-10 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-10 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15445431', 'tblTempUsageDetail_20' ) start [2025-07-10 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15445431', 'tblTempUsageDetail_20' ) end [2025-07-10 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15445431', 'tblTempVendorCDR_20' ) start [2025-07-10 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15445431', 'tblTempVendorCDR_20' ) end [2025-07-10 05:25:18] Production.INFO: ProcessCDR(1,15445431,1,1,2) [2025-07-10 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15445431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-10 05:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15445431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-10 05:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15445431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-10 05:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15445431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-10 05:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15445431', 'tblTempUsageDetail_20' ) start [2025-07-10 05:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15445431', 'tblTempUsageDetail_20' ) end [2025-07-10 05:25:22] Production.ERROR: pbx prc_insertCDR start [2025-07-10 05:25:22] Production.ERROR: pbx prc_insertCDR end [2025-07-10 05:25:22] Production.INFO: ==24533== Releasing lock... [2025-07-10 05:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-10 05:25:22] Production.INFO: 30.25 MB #Memory Used# [2025-07-10 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-10 03:25:05 [end_date_ymd] => 2025-07-10 06:25:05 [RateCDR] => 1 ) [2025-07-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-07-10 03:25:05' and `end` < '2025-07-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-07-10 06:25:17] Production.INFO: count ==187 [2025-07-10 06:25:17] Production.ERROR: pbx CDR StartTime 2025-07-10 03:25:05 - End Time 2025-07-10 06:25:05 [2025-07-10 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-10 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15445678', 'tblTempUsageDetail_20' ) start [2025-07-10 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15445678', 'tblTempUsageDetail_20' ) end [2025-07-10 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15445678', 'tblTempVendorCDR_20' ) start [2025-07-10 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15445678', 'tblTempVendorCDR_20' ) end [2025-07-10 06:25:17] Production.INFO: ProcessCDR(1,15445678,1,1,2) [2025-07-10 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15445678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-10 06:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15445678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-10 06:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15445678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-10 06:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15445678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-10 06:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15445678', 'tblTempUsageDetail_20' ) start [2025-07-10 06:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15445678', 'tblTempUsageDetail_20' ) end [2025-07-10 06:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-10 06:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-10 06:25:24] Production.INFO: ==29649== Releasing lock... [2025-07-10 06:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-10 06:25:24] Production.INFO: 29.25 MB #Memory Used# [2025-07-10 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-10 04:25:05 [end_date_ymd] => 2025-07-10 07:25:05 [RateCDR] => 1 ) [2025-07-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-07-10 04:25:05' and `end` < '2025-07-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-07-10 07:25:17] Production.INFO: count ==180 [2025-07-10 07:25:17] Production.ERROR: pbx CDR StartTime 2025-07-10 04:25:05 - End Time 2025-07-10 07:25:05 [2025-07-10 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-10 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15445925', 'tblTempUsageDetail_20' ) start [2025-07-10 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15445925', 'tblTempUsageDetail_20' ) end [2025-07-10 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15445925', 'tblTempVendorCDR_20' ) start [2025-07-10 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15445925', 'tblTempVendorCDR_20' ) end [2025-07-10 07:25:17] Production.INFO: ProcessCDR(1,15445925,1,1,2) [2025-07-10 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15445925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-10 07:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15445925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-10 07:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15445925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-10 07:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15445925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-10 07:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15445925', 'tblTempUsageDetail_20' ) start [2025-07-10 07:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15445925', 'tblTempUsageDetail_20' ) end [2025-07-10 07:25:23] Production.ERROR: pbx prc_insertCDR start [2025-07-10 07:25:23] Production.ERROR: pbx prc_insertCDR end [2025-07-10 07:25:23] Production.INFO: ==1890== Releasing lock... [2025-07-10 07:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-10 07:25:23] Production.INFO: 29.75 MB #Memory Used# [2025-07-10 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-10 05:25:05 [end_date_ymd] => 2025-07-10 08:25:05 [RateCDR] => 1 ) [2025-07-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-07-10 05:25:05' and `end` < '2025-07-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-07-10 08:25:18] Production.INFO: count ==378 [2025-07-10 08:25:18] Production.ERROR: pbx CDR StartTime 2025-07-10 05:25:05 - End Time 2025-07-10 08:25:05 [2025-07-10 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-10 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15446172', 'tblTempUsageDetail_20' ) start [2025-07-10 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15446172', 'tblTempUsageDetail_20' ) end [2025-07-10 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15446172', 'tblTempVendorCDR_20' ) start [2025-07-10 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15446172', 'tblTempVendorCDR_20' ) end [2025-07-10 08:25:18] Production.INFO: ProcessCDR(1,15446172,1,1,2) [2025-07-10 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15446172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-10 08:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15446172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-10 08:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15446172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-10 08:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15446172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-10 08:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15446172', 'tblTempUsageDetail_20' ) start [2025-07-10 08:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15446172', 'tblTempUsageDetail_20' ) end [2025-07-10 08:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-10 08:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-10 08:25:25] Production.INFO: ==6234== Releasing lock... [2025-07-10 08:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-10 08:25:25] Production.INFO: 31.25 MB #Memory Used# [2025-07-10 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-10 06:25:05 [end_date_ymd] => 2025-07-10 09:25:05 [RateCDR] => 1 ) [2025-07-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-07-10 06:25:05' and `end` < '2025-07-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-07-10 09:25:17] Production.INFO: count ==1220 [2025-07-10 09:25:18] Production.ERROR: pbx CDR StartTime 2025-07-10 06:25:05 - End Time 2025-07-10 09:25:05 [2025-07-10 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-10 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15446419', 'tblTempUsageDetail_20' ) start [2025-07-10 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15446419', 'tblTempUsageDetail_20' ) end [2025-07-10 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15446419', 'tblTempVendorCDR_20' ) start [2025-07-10 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15446419', 'tblTempVendorCDR_20' ) end [2025-07-10 09:25:18] Production.INFO: ProcessCDR(1,15446419,1,1,2) [2025-07-10 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15446419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-10 09:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15446419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-10 09:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15446419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-10 09:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15446419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-10 09:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15446419', 'tblTempUsageDetail_20' ) start [2025-07-10 09:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15446419', 'tblTempUsageDetail_20' ) end [2025-07-10 09:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-10 09:25:26] Production.ERROR: pbx prc_insertCDR end [2025-07-10 09:25:26] Production.INFO: ==11523== Releasing lock... [2025-07-10 09:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-10 09:25:26] Production.INFO: 37.25 MB #Memory Used# [2025-07-10 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-10 07:25:05 [end_date_ymd] => 2025-07-10 10:25:05 [RateCDR] => 1 ) [2025-07-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-07-10 07:25:05' and `end` < '2025-07-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-07-10 10:25:19] Production.INFO: count ==2516 [2025-07-10 10:25:20] Production.ERROR: pbx CDR StartTime 2025-07-10 07:25:05 - End Time 2025-07-10 10:25:05 [2025-07-10 10:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-10 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15446666', 'tblTempUsageDetail_20' ) start [2025-07-10 10:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15446666', 'tblTempUsageDetail_20' ) end [2025-07-10 10:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15446666', 'tblTempVendorCDR_20' ) start [2025-07-10 10:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15446666', 'tblTempVendorCDR_20' ) end [2025-07-10 10:25:21] Production.INFO: ProcessCDR(1,15446666,1,1,2) [2025-07-10 10:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15446666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-10 10:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15446666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-10 10:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15446666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-10 10:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15446666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-10 10:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15446666', 'tblTempUsageDetail_20' ) start [2025-07-10 10:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15446666', 'tblTempUsageDetail_20' ) end [2025-07-10 10:25:29] Production.ERROR: pbx prc_insertCDR start [2025-07-10 10:25:30] Production.ERROR: pbx prc_insertCDR end [2025-07-10 10:25:30] Production.INFO: ==15910== Releasing lock... [2025-07-10 10:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-10 10:25:30] Production.INFO: 47.75 MB #Memory Used# [2025-07-10 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-10 08:25:05 [end_date_ymd] => 2025-07-10 11:25:05 [RateCDR] => 1 ) [2025-07-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-07-10 08:25:05' and `end` < '2025-07-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-07-10 11:25:18] Production.INFO: count ==4094 [2025-07-10 11:25:20] Production.ERROR: pbx CDR StartTime 2025-07-10 08:25:05 - End Time 2025-07-10 11:25:05 [2025-07-10 11:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-10 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15446913', 'tblTempUsageDetail_20' ) start [2025-07-10 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15446913', 'tblTempUsageDetail_20' ) end [2025-07-10 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15446913', 'tblTempVendorCDR_20' ) start [2025-07-10 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15446913', 'tblTempVendorCDR_20' ) end [2025-07-10 11:25:21] Production.INFO: ProcessCDR(1,15446913,1,1,2) [2025-07-10 11:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15446913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-10 11:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15446913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-10 11:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15446913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-10 11:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15446913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-10 11:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15446913', 'tblTempUsageDetail_20' ) start [2025-07-10 11:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15446913', 'tblTempUsageDetail_20' ) end [2025-07-10 11:25:29] Production.ERROR: pbx prc_insertCDR start [2025-07-10 11:25:31] Production.ERROR: pbx prc_insertCDR end [2025-07-10 11:25:31] Production.INFO: ==20345== Releasing lock... [2025-07-10 11:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-10 11:25:31] Production.INFO: 58.75 MB #Memory Used# [2025-07-10 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-10 09:25:05 [end_date_ymd] => 2025-07-10 12:25:05 [RateCDR] => 1 ) [2025-07-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-07-10 09:25:05' and `end` < '2025-07-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-07-10 12:25:23] Production.INFO: count ==4760 [2025-07-10 12:25:25] Production.ERROR: pbx CDR StartTime 2025-07-10 09:25:05 - End Time 2025-07-10 12:25:05 [2025-07-10 12:25:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-10 12:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15447160', 'tblTempUsageDetail_20' ) start [2025-07-10 12:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15447160', 'tblTempUsageDetail_20' ) end [2025-07-10 12:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15447160', 'tblTempVendorCDR_20' ) start [2025-07-10 12:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15447160', 'tblTempVendorCDR_20' ) end [2025-07-10 12:25:25] Production.INFO: ProcessCDR(1,15447160,1,1,2) [2025-07-10 12:25:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15447160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-10 12:25:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15447160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-10 12:25:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15447160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-10 12:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15447160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-10 12:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15447160', 'tblTempUsageDetail_20' ) start [2025-07-10 12:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15447160', 'tblTempUsageDetail_20' ) end [2025-07-10 12:25:33] Production.ERROR: pbx prc_insertCDR start [2025-07-10 12:25:36] Production.ERROR: pbx prc_insertCDR end [2025-07-10 12:25:36] Production.INFO: ==24874== Releasing lock... [2025-07-10 12:25:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-10 12:25:36] Production.INFO: 63.75 MB #Memory Used# [2025-07-10 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-10 10:25:05 [end_date_ymd] => 2025-07-10 13:25:05 [RateCDR] => 1 ) [2025-07-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-07-10 10:25:05' and `end` < '2025-07-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-07-10 13:25:19] Production.INFO: count ==5116 [2025-07-10 13:25:21] Production.ERROR: pbx CDR StartTime 2025-07-10 10:25:05 - End Time 2025-07-10 13:25:05 [2025-07-10 13:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-10 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15447407', 'tblTempUsageDetail_20' ) start [2025-07-10 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15447407', 'tblTempUsageDetail_20' ) end [2025-07-10 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15447407', 'tblTempVendorCDR_20' ) start [2025-07-10 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15447407', 'tblTempVendorCDR_20' ) end [2025-07-10 13:25:22] Production.INFO: ProcessCDR(1,15447407,1,1,2) [2025-07-10 13:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15447407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-10 13:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15447407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-10 13:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15447407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-10 13:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15447407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-10 13:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15447407', 'tblTempUsageDetail_20' ) start [2025-07-10 13:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15447407', 'tblTempUsageDetail_20' ) end [2025-07-10 13:25:30] Production.ERROR: pbx prc_insertCDR start [2025-07-10 13:25:33] Production.ERROR: pbx prc_insertCDR end [2025-07-10 13:25:33] Production.INFO: ==29368== Releasing lock... [2025-07-10 13:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-10 13:25:33] Production.INFO: 66.5 MB #Memory Used# [2025-07-10 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-10 11:25:05 [end_date_ymd] => 2025-07-10 14:25:05 [RateCDR] => 1 ) [2025-07-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-07-10 11:25:05' and `end` < '2025-07-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-07-10 14:25:20] Production.INFO: count ==5077 [2025-07-10 14:25:23] Production.ERROR: pbx CDR StartTime 2025-07-10 11:25:05 - End Time 2025-07-10 14:25:05 [2025-07-10 14:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-10 14:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15447654', 'tblTempUsageDetail_20' ) start [2025-07-10 14:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15447654', 'tblTempUsageDetail_20' ) end [2025-07-10 14:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15447654', 'tblTempVendorCDR_20' ) start [2025-07-10 14:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15447654', 'tblTempVendorCDR_20' ) end [2025-07-10 14:25:23] Production.INFO: ProcessCDR(1,15447654,1,1,2) [2025-07-10 14:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15447654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-10 14:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15447654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-10 14:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15447654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-10 14:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15447654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-10 14:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15447654', 'tblTempUsageDetail_20' ) start [2025-07-10 14:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15447654', 'tblTempUsageDetail_20' ) end [2025-07-10 14:25:32] Production.ERROR: pbx prc_insertCDR start [2025-07-10 14:25:34] Production.ERROR: pbx prc_insertCDR end [2025-07-10 14:25:34] Production.INFO: ==1308== Releasing lock... [2025-07-10 14:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-10 14:25:34] Production.INFO: 66.25 MB #Memory Used# [2025-07-10 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-10 12:25:05 [end_date_ymd] => 2025-07-10 15:25:05 [RateCDR] => 1 ) [2025-07-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-07-10 12:25:05' and `end` < '2025-07-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-07-10 15:25:19] Production.INFO: count ==5181 [2025-07-10 15:25:21] Production.ERROR: pbx CDR StartTime 2025-07-10 12:25:05 - End Time 2025-07-10 15:25:05 [2025-07-10 15:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-10 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15447901', 'tblTempUsageDetail_20' ) start [2025-07-10 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15447901', 'tblTempUsageDetail_20' ) end [2025-07-10 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15447901', 'tblTempVendorCDR_20' ) start [2025-07-10 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15447901', 'tblTempVendorCDR_20' ) end [2025-07-10 15:25:21] Production.INFO: ProcessCDR(1,15447901,1,1,2) [2025-07-10 15:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15447901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-10 15:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15447901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-10 15:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15447901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-10 15:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15447901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-10 15:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15447901', 'tblTempUsageDetail_20' ) start [2025-07-10 15:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15447901', 'tblTempUsageDetail_20' ) end [2025-07-10 15:25:30] Production.ERROR: pbx prc_insertCDR start [2025-07-10 15:25:32] Production.ERROR: pbx prc_insertCDR end [2025-07-10 15:25:32] Production.INFO: ==5712== Releasing lock... [2025-07-10 15:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-10 15:25:32] Production.INFO: 67 MB #Memory Used# [2025-07-10 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-10 13:25:05 [end_date_ymd] => 2025-07-10 16:25:05 [RateCDR] => 1 ) [2025-07-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-07-10 13:25:05' and `end` < '2025-07-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-07-10 16:25:21] Production.INFO: count ==5364 [2025-07-10 16:25:24] Production.ERROR: pbx CDR StartTime 2025-07-10 13:25:05 - End Time 2025-07-10 16:25:05 [2025-07-10 16:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-10 16:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15448148', 'tblTempUsageDetail_20' ) start [2025-07-10 16:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15448148', 'tblTempUsageDetail_20' ) end [2025-07-10 16:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15448148', 'tblTempVendorCDR_20' ) start [2025-07-10 16:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15448148', 'tblTempVendorCDR_20' ) end [2025-07-10 16:25:24] Production.INFO: ProcessCDR(1,15448148,1,1,2) [2025-07-10 16:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15448148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-10 16:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15448148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-10 16:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15448148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-10 16:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15448148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-10 16:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15448148', 'tblTempUsageDetail_20' ) start [2025-07-10 16:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15448148', 'tblTempUsageDetail_20' ) end [2025-07-10 16:25:33] Production.ERROR: pbx prc_insertCDR start [2025-07-10 16:25:35] Production.ERROR: pbx prc_insertCDR end [2025-07-10 16:25:35] Production.INFO: ==10489== Releasing lock... [2025-07-10 16:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-10 16:25:35] Production.INFO: 68.5 MB #Memory Used# [2025-07-10 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-10 14:25:05 [end_date_ymd] => 2025-07-10 17:25:05 [RateCDR] => 1 ) [2025-07-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-07-10 14:25:05' and `end` < '2025-07-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-07-10 17:25:18] Production.INFO: count ==5344 [2025-07-10 17:25:21] Production.ERROR: pbx CDR StartTime 2025-07-10 14:25:05 - End Time 2025-07-10 17:25:05 [2025-07-10 17:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-10 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15448395', 'tblTempUsageDetail_20' ) start [2025-07-10 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15448395', 'tblTempUsageDetail_20' ) end [2025-07-10 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15448395', 'tblTempVendorCDR_20' ) start [2025-07-10 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15448395', 'tblTempVendorCDR_20' ) end [2025-07-10 17:25:21] Production.INFO: ProcessCDR(1,15448395,1,1,2) [2025-07-10 17:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15448395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-10 17:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15448395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-10 17:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15448395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-10 17:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15448395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-10 17:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15448395', 'tblTempUsageDetail_20' ) start [2025-07-10 17:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15448395', 'tblTempUsageDetail_20' ) end [2025-07-10 17:25:30] Production.ERROR: pbx prc_insertCDR start [2025-07-10 17:25:32] Production.ERROR: pbx prc_insertCDR end [2025-07-10 17:25:32] Production.INFO: ==15043== Releasing lock... [2025-07-10 17:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-10 17:25:32] Production.INFO: 68.25 MB #Memory Used# [2025-07-10 18:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-10 15:25:06 [end_date_ymd] => 2025-07-10 18:25:06 [RateCDR] => 1 ) [2025-07-10 18: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-07-10 15:25:06' and `end` < '2025-07-10 18: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-07-10 18:25:19] Production.INFO: count ==4672 [2025-07-10 18:25:21] Production.ERROR: pbx CDR StartTime 2025-07-10 15:25:06 - End Time 2025-07-10 18:25:06 [2025-07-10 18:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-10 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15448642', 'tblTempUsageDetail_20' ) start [2025-07-10 18:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15448642', 'tblTempUsageDetail_20' ) end [2025-07-10 18:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15448642', 'tblTempVendorCDR_20' ) start [2025-07-10 18:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15448642', 'tblTempVendorCDR_20' ) end [2025-07-10 18:25:22] Production.INFO: ProcessCDR(1,15448642,1,1,2) [2025-07-10 18:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15448642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-10 18:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15448642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-10 18:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15448642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-10 18:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15448642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-10 18:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15448642', 'tblTempUsageDetail_20' ) start [2025-07-10 18:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15448642', 'tblTempUsageDetail_20' ) end [2025-07-10 18:25:29] Production.ERROR: pbx prc_insertCDR start [2025-07-10 18:25:31] Production.ERROR: pbx prc_insertCDR end [2025-07-10 18:25:31] Production.INFO: ==19780== Releasing lock... [2025-07-10 18:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-10 18:25:31] Production.INFO: 63.25 MB #Memory Used# [2025-07-10 19:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-10 16:25:06 [end_date_ymd] => 2025-07-10 19:25:06 [RateCDR] => 1 ) [2025-07-10 19:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-10 16:25:06' and `end` < '2025-07-10 19:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-10 19:25:19] Production.INFO: count ==3687 [2025-07-10 19:25:20] Production.ERROR: pbx CDR StartTime 2025-07-10 16:25:06 - End Time 2025-07-10 19:25:06 [2025-07-10 19:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-10 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15448886', 'tblTempUsageDetail_20' ) start [2025-07-10 19:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15448886', 'tblTempUsageDetail_20' ) end [2025-07-10 19:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15448886', 'tblTempVendorCDR_20' ) start [2025-07-10 19:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15448886', 'tblTempVendorCDR_20' ) end [2025-07-10 19:25:21] Production.INFO: ProcessCDR(1,15448886,1,1,2) [2025-07-10 19:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15448886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-10 19:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15448886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-10 19:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15448886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-10 19:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15448886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-10 19:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15448886', 'tblTempUsageDetail_20' ) start [2025-07-10 19:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15448886', 'tblTempUsageDetail_20' ) end [2025-07-10 19:25:28] Production.ERROR: pbx prc_insertCDR start [2025-07-10 19:25:29] Production.ERROR: pbx prc_insertCDR end [2025-07-10 19:25:29] Production.INFO: ==24690== Releasing lock... [2025-07-10 19:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-10 19:25:29] Production.INFO: 55.75 MB #Memory Used# [2025-07-10 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-10 17:25:05 [end_date_ymd] => 2025-07-10 20:25:05 [RateCDR] => 1 ) [2025-07-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-07-10 17:25:05' and `end` < '2025-07-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-07-10 20:25:17] Production.INFO: count ==2634 [2025-07-10 20:25:18] Production.ERROR: pbx CDR StartTime 2025-07-10 17:25:05 - End Time 2025-07-10 20:25:05 [2025-07-10 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-10 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15449133', 'tblTempUsageDetail_20' ) start [2025-07-10 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15449133', 'tblTempUsageDetail_20' ) end [2025-07-10 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15449133', 'tblTempVendorCDR_20' ) start [2025-07-10 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15449133', 'tblTempVendorCDR_20' ) end [2025-07-10 20:25:19] Production.INFO: ProcessCDR(1,15449133,1,1,2) [2025-07-10 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15449133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-10 20:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15449133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-10 20:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15449133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-10 20:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15449133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-10 20:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15449133', 'tblTempUsageDetail_20' ) start [2025-07-10 20:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15449133', 'tblTempUsageDetail_20' ) end [2025-07-10 20:25:26] Production.ERROR: pbx prc_insertCDR start [2025-07-10 20:25:26] Production.ERROR: pbx prc_insertCDR end [2025-07-10 20:25:26] Production.INFO: ==28920== Releasing lock... [2025-07-10 20:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-10 20:25:26] Production.INFO: 48 MB #Memory Used# [2025-07-10 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-10 18:25:05 [end_date_ymd] => 2025-07-10 21:25:05 [RateCDR] => 1 ) [2025-07-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-07-10 18:25:05' and `end` < '2025-07-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-07-10 21:25:18] Production.INFO: count ==2003 [2025-07-10 21:25:18] Production.ERROR: pbx CDR StartTime 2025-07-10 18:25:05 - End Time 2025-07-10 21:25:05 [2025-07-10 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-10 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15449380', 'tblTempUsageDetail_20' ) start [2025-07-10 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15449380', 'tblTempUsageDetail_20' ) end [2025-07-10 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15449380', 'tblTempVendorCDR_20' ) start [2025-07-10 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15449380', 'tblTempVendorCDR_20' ) end [2025-07-10 21:25:18] Production.INFO: ProcessCDR(1,15449380,1,1,2) [2025-07-10 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15449380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-10 21:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15449380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-10 21:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15449380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-10 21:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15449380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-10 21:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15449380', 'tblTempUsageDetail_20' ) start [2025-07-10 21:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15449380', 'tblTempUsageDetail_20' ) end [2025-07-10 21:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-10 21:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-10 21:25:25] Production.INFO: ==1200== Releasing lock... [2025-07-10 21:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-10 21:25:25] Production.INFO: 43.25 MB #Memory Used# [2025-07-10 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-10 19:25:05 [end_date_ymd] => 2025-07-10 22:25:05 [RateCDR] => 1 ) [2025-07-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-07-10 19:25:05' and `end` < '2025-07-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-07-10 22:25:17] Production.INFO: count ==1437 [2025-07-10 22:25:17] Production.ERROR: pbx CDR StartTime 2025-07-10 19:25:05 - End Time 2025-07-10 22:25:05 [2025-07-10 22:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-10 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15449627', 'tblTempUsageDetail_20' ) start [2025-07-10 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15449627', 'tblTempUsageDetail_20' ) end [2025-07-10 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15449627', 'tblTempVendorCDR_20' ) start [2025-07-10 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15449627', 'tblTempVendorCDR_20' ) end [2025-07-10 22:25:17] Production.INFO: ProcessCDR(1,15449627,1,1,2) [2025-07-10 22:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15449627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-10 22:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15449627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-10 22:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15449627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-10 22:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15449627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-10 22:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15449627', 'tblTempUsageDetail_20' ) start [2025-07-10 22:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15449627', 'tblTempUsageDetail_20' ) end [2025-07-10 22:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-10 22:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-10 22:25:24] Production.INFO: ==6227== Releasing lock... [2025-07-10 22:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-10 22:25:24] Production.INFO: 39 MB #Memory Used# [2025-07-10 23:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-10 20:25:06 [end_date_ymd] => 2025-07-10 23:25:06 [RateCDR] => 1 ) [2025-07-10 23:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-10 20:25:06' and `end` < '2025-07-10 23:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-10 23:25:18] Production.INFO: count ==1311 [2025-07-10 23:25:19] Production.ERROR: pbx CDR StartTime 2025-07-10 20:25:06 - End Time 2025-07-10 23:25:06 [2025-07-10 23:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-10 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15449874', 'tblTempUsageDetail_20' ) start [2025-07-10 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15449874', 'tblTempUsageDetail_20' ) end [2025-07-10 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15449874', 'tblTempVendorCDR_20' ) start [2025-07-10 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15449874', 'tblTempVendorCDR_20' ) end [2025-07-10 23:25:19] Production.INFO: ProcessCDR(1,15449874,1,1,2) [2025-07-10 23:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15449874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-10 23:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15449874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-10 23:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15449874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-10 23:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15449874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-10 23:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15449874', 'tblTempUsageDetail_20' ) start [2025-07-10 23:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15449874', 'tblTempUsageDetail_20' ) end [2025-07-10 23:25:26] Production.ERROR: pbx prc_insertCDR start [2025-07-10 23:25:26] Production.ERROR: pbx prc_insertCDR end [2025-07-10 23:25:26] Production.INFO: ==10903== Releasing lock... [2025-07-10 23:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-10 23:25:26] Production.INFO: 38 MB #Memory Used#